Hi
I have a mapping case where I am using return as xml on the source payload. I am sending the XML as string to RFC.
There I am converting string to xstring using SCMS_STRING_TO_XSTRING and then getting the xml into an internal table using SMUM_XML_PARSE.
After that I am adding some elements into the xml data present in the internal table.
The data is then converted back to xml using SMUM_XML_CREATE_X, then to binary using SCMS_XSTRING_TO_BINARY and then to string SCMS_BINARY_TO_STRING which is the output of rfc.
I want this RFC output into PI as xml. But my target field shows >, < etc. for the xml tags instead of the normal <header> , thus the output is shown as <header>.
How to get the output as proper xml from the ABAP RFC