0

I am wondering how a xstring should be retrieved from ABAP backend using RfcQuery.

final RfcQuery query = new RfcQuery(<myRFC>)...
Byte[] pdf = query.execute(erpEndpoint).get("EX_BLOB").getAs ??

Any ideas?

O. Merk
  • 113
  • 10
  • Found a workaround using base64 encoded string – O. Merk Jun 29 '18 at 12:03
  • 2
    Could you pls explain your workaround in more detail? – Emdee Jun 29 '18 at 12:53
  • To give other users with a similar problem a better chance of solving it, please be so kind to provide the answer you found for your problem. Thanks. – Florian Wilhelm Jul 03 '18 at 06:40
  • The "workaround" is the following: In ABAP: Export the xstring as a base64-encoded string. In Java: query.execute(erpEndpoint).get("EV_BLOB").asString(); Then you can decode it or do whatever you want. – O. Merk Jul 06 '18 at 12:26

1 Answers1

0

As of now retrieving XSTRING values from an remote-enabled function module is not supported.

I'll edit this question if there is an update.

Emdee
  • 1,689
  • 5
  • 22
  • 35