cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP Proxy Table Parameter

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi All,

Thanks for the advices......

I've tried to set the occurence before, but I guess I forgot to regenerate the proxy, that's why it's not working and I began to think that setting the occurence won't solve the problem.

After reading your answers, I set the occurence again and regenerate the proxy, all works fine now.....

Thanks for the help.

Regards,

Andy

Former Member
0 Kudos

Andy,

Good to know that it worked.

Answers (1)

Answers (1)

Former Member
0 Kudos

Andy,

Please check the occurence of the first node of the target DT.

-Naveen.