Skip to Content
0
Former Member
Jan 02, 2008 at 08:16 PM

Simple content conversion

26 Views

Experts,

I have RFC to File scenario where RFC is sending one table parameter. Table is sent in the below format (note the <item> tag that is inserted when the table is converted into xml by the RFC sender adapter)

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

<ZPOSPAY>

<item>

<ZBUKR>1000</ZBUKR>

<HBKID>CHASE</HBKID>

<HKTID>12345</HKTID>

...

</item>

<item>

<ZBUKR>2000</ZBUKR>

<HBKID>BofA</HBKID>

<HKTID>67890</HKTID>

...

</item>

...

</ZPOSPAY>

</rfc:Z_SEND_PAY>

On the receiver side, I want to do a simple content conversion so that all fields are displayed in csv format. Can I do this without having to do a mapping to remove the <ZPOSPAY> tag that prevents using the same message interface as above at the receiver end? In other words can the <ZPOSPAY> tag be supressed at the communication channel so that the message is recognized as <root><item>...</item><item>...</item></root> as the required format for content conversion. Note that if I could do this in the ID, I have no development in the IR as the message structure is imported RFC and used as both sender and receiver interface.

Thanks

JB