Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP Proxy Table Parameter

Hi All,

I’m developing a File->XI->R/3 interface.

The Flat File content looks like this :

0001,0001,03.05.2003

0001,0002,03.05.2006

0001,0003,03.05.2006

I need to insert the data to an R/3 table ZTEST, and if the interface runs well I imagine that the table content will look like this :

ZTEST

Header ID Item ID Posting Date

0001 0001 03.05.2003

0001 0002 03.05.2006

0001 0003 03.05.2006

I’ve designed and configured all the required objects, and the data successfully received by the R/3.

The payload on R/3’s SXMB_MONI looks like this :

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

<ns0:Data1 xmlns:ns0=”http://mycomp.com/data1”>

<Data>

<HeaderID>0001</HeaderID>

<ItemID>0001</ItemID>

<PostingDate>03.05.2003</PostingDate>

</Data>

<Data>

<HeaderID>0001</HeaderID>

<ItemID>0002</ItemID>

<PostingDate>03.05.2006</PostingDate>

</Data>

<Data>

<HeaderID>0001</HeaderID>

<ItemID>0003</ItemID>

<PostingDate>03.05.2006</PostingDate>

</Data>

</ns0:Data1>

But when I check my ZTEST table, it only contains the first row :

0001 0001 03.05.2003

I suppose this because my implementation on the proxy only runs once, and the parameter type is a structure.

Can we define a table parameter for ABAP Proxy instead of flat structure parameter ? So that I can loop through the

internal table and insert the row one by one.

Or is there a more common way to do this kind of interfacing ? Please advise me on this matter.

Thanks in advance,

Andy

Former Member
Former Member replied

Andy,

change the Target Structure for the multiple occurences and activate the same.. Make sure that new data type is reflected in Target Message Type/Inbound Message Interface.

After that recreate the Proxy and Actiavate the same. Then check the structure of the message type in the ABAP write code accordingly..

Hope this helps,

Regards,

Moorthy

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question