cancel
Showing results for 
Search instead for 
Did you mean: 

xstring to XI through proxy

Former Member
0 Kudos

Hi.

I am experiencing problems when trying to send a binary file through a proxy to XI. It seems that the generated proxy implicitely transforms the xstring from hexadecimal to base64, but this transformation does not seem to be correct.

Therefore I am trying to do the conversion before calling the proxy-class, however I am uncertain how to do this.

I have found a small example that explains how to do a conversion from an ABAP string to base64-format: [https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/encodingBASE64in+ABAP], but I cannot find a similar way to convert an xstring.

When searching further it seems that I have to make a "transformation" and use in able to do it, however I can't get this to work. I have read this: [http://www.sap-hefte.de/download/dateien/1112/076_leseprobe.pdf]

I would very much like a small example that converts xstring = 'ABCDEFG' to base64, which should be something like "q83v".

Thanks for any help in advance.

Jesper.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> I would very much like a small example that converts xstring = 'ABCDEFG' to base64, which should be something like "q83v".

FM: SSFC_BASE64_ENCODE

note that 'G' is not allowed in xstring.

ABCDEF -> q83v