Skip to Content
0
Former Member
Mar 10, 2006 at 02:28 PM

Conversion between RAW and Strings

684 Views

Hey all,

Im accessing some RFC functions from XI which return and take parameters in the RAW format.

From http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f2e5446011d189700000e8322d00/content.htm:

RAW: Uninterpreted byte string. Fields of type RAW may have only a maximum length of 255 in tables. If longer raw fields are required in tables, you should select data type LRAW.

If I for example execute a RFC from the abap system (using transaction se37), one of the results is "5ECD6F4D6C6E3242921025FE74AC5153" while when i call the RFC from XI the result with the same input parameters is "Xs1vTWxuMkKSECX+dKxRUw==".

Is it possible to convert these (in both directions) between strings and raw format, preferably with java mapping ?

Greetings,

Hannes