cancel
Showing results for 
Search instead for 
Did you mean: 

Imported RFC with problem in converting to XML

Former Member
0 Kudos

Hello,

another nice issue:

I have an aRFC with this import parameter from ABAP:

data: p_data type tab512 occurs 0.

Call function.......

Tables

DATA = p_data

This is the XML source from the mapping test in Int.Rep.

<?xml version="1.0" encoding="UTF-8"?>

<ns:Z_BI_SEND_DATA_512 xmlns:ns="urn:sap-com:document:sap:rfc:functions">

<SYSID_HOME>AAA</SYSID_HOME>

<TARGETSYS>BBB</TARGETSYS>

<DATA>

<item>test1</item>

<item>test2</item>

<item>test3</item>

</DATA>

</ns:Z_BI_SEND_DATA_512>

This is the payload from SXMB_MONI:

<?xml version="1.0" encoding="UTF-8" ?>

- <rfc:Z_BI_SEND_DATA_512 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<SYSID_HOME>AAA</SYSID_HOME>

<TARGETSYS>BBB</TARGETSYS>

- <DATA>

- <item>

<WA>test1</WA>

</item>

- <item>

<WA>test2</WA>

</item>

- <item>

<WA>test3</WA>

</item>

</DATA>

</rfc:Z_BI_SEND_DATA_512>

Looks like there is a difference (imported RFC in mapping does not show the work area WA)(so: mapping requires

<DATA>

<item>test1</item>

but RFC generates

- <DATA>

- <item>

<WA>test1</WA>

which hinders the mapping from moving the item lines into the destination file because in mapping the WA area cannot be linked as it is not recognized in mapping.

Any ideas are welcome!

Regards

Dirk

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi everyone

My problem is related to Dirk's one in that I am using an RFC to send XML data from CRM to XI.

I am trying to send the following string:

<TEST>GREG</TEST>

However on XI the payload looks like this:

<xml version="1.0" encoding="UTF-8"?>

<rfc:_-MARS_-CPE_IMPORT_CRM_CATALOG xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<IV_CATALOG>&#60;TEST&#62;GREG&#60;/TEST&#62;</IV_CATALOG></rfc:_-MARS_-CPE_IMPORT_CRM_CATALOG>

As you can see < is converted into &#60;

Where and how do I specify that the content of the parameter must not be interpreted?

Thanks

Greg

Former Member
0 Kudos

Hi Gregory,

oh, that looks quite different to my simple problem!

I have no idea how to help!

Please, open your own threat because usually nobody will look at threats marked as answered except someone looks for a solution! And you are not offering a solution but a question!

regards

Dirk

Former Member
0 Kudos

OK, solved.

Forgot to activate in SAP BASIS SWCV the element for the substructure "WA" which is the table reference for the data element "item" in our RFC.

Looks like it is easy to loose overview in XI when doing too much at the same time.