cancel
Showing results for 
Search instead for 
Did you mean: 

XML payload and RFC

Former Member
0 Kudos

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 &gt, &lt etc. for the xml tags instead of the normal <header> , thus the output is shown as &ltheader&gt.

How to get the output as proper xml from the ABAP RFC

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

Hi Girish - Is that format causing an issue? i mean when you send that payload to PI is it failing.

I think the problem is, as you have used return as XML function in PI- the xml will be stored as CDATA.

(test the mapping in ESR-> go to xml view)