Skip to Content
0
Former Member
Jul 21, 2008 at 10:00 AM

File-to-RFC Scenario Table Param are empty

229 Views

Hello,

I create a file adapter to rfc adapter scenario. Thereto I implemented a RFC in SAP which has only a table param. Furthemore I mapped the XML-File, that will be read by the File Adapter sender, to the SAP RFC Table structure. However the scenario works in PI, that mean the xml file will be read by the file adapter and will be send to the RFC Adapter receiver which makes a rfc call to the SAP destination. However my rfc function in the SAP destination will be called, but the table param is empty. Hereto I call the statement in my rfc function:

if MORDERNOTIFY is not initial . I do not know what the reason is that the table param is empty? I also checked in the runtime workbench of the PI system and there is no error in the communication channels, the message will be send correctly, here is also an example message of the table structure:

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

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

- <MORDERNOTIFY>

- <item>

<ZMELDUNGSTYP>ARU</ZMELDUNGSTYP>

<ZPARTNER>HUP</ZPARTNER>

<ZMELDUNGSNR>1</ZMELDUNGSNR>

<ZMELDUNGSDATUM>20080822</ZMELDUNGSDATUM>

<ZAUFTRAGSNR>5079440</ZAUFTRAGSNR>

<ZKONTAKT>Test</ZKONTAKT>

<ZWAGNNR>1211</ZWAGNNR>

<ZAUFTRAGSSTUFE>GP.1</ZAUFTRAGSSTUFE>

<ZSTATUS>1</ZSTATUS>

<ZABFAHRTSORT>Zug</ZABFAHRTSORT>

<ZBESTIMMUNGSORT>Bonn</ZBESTIMMUNGSORT>

<ZBEREITDATUM>20080822</ZBEREITDATUM>

<ZSCHADENSCODE>232</ZSCHADENSCODE>

<ZEINGRIFFSFRAGE>1</ZEINGRIFFSFRAGE>

<ZSMI>2</ZSMI>

<ZGEPLEINGANG>20080822</ZGEPLEINGANG>

<ZAUFTRAGSSTATUS>1</ZAUFTRAGSSTATUS>

<ZGEPLENDE>20080822</ZGEPLENDE>

<ZBEMERKUNGEN>Tes</ZBEMERKUNGEN>

</item>

</MORDERNOTIFY>

</ns1:Z_RFB_ORDERCONFIRM>

The SXMB_MONI also shows that everything is ok. I assume that there is a problem by mapping RFC-XML to binary RFC. I do not know what the reason is why the table above is empty sended to my system.

Kind regards,

Erkan