on 05-18-2006 5:04 PM
Hi All,
Im 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
Ive designed and configured all the required objects, and the data successfully received by the R/3.
The payload on R/3s 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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Andy,
Please check the occurence of the first node of the target DT.
-Naveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.