Skip to Content
0
Former Member
Sep 13, 2005 at 01:28 PM

Imported RFC with problem in converting to XML

38 Views

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