Skip to Content
0
Former Member
Aug 28, 2010 at 12:53 PM

File2Idoc: File with Multiple Occurence

10 Views

Hi,

In File2 Idoc scenario: how to read a file with multiple structure/occurrence. I tried as per below links, it is picking only first structure i.e - (Data0).

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

http://wiki.sdn.sap.com/wiki/display/XI/FiletoMultipleIDOCSplittingwithoutBPM

My Input file as like :-

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

- <ns0:MT_SENDER xmlns:ns0="http://FileToIdoc">

- <DATA0>

<DOC_NUM>0017000374</DOC_NUM>

<POSITION_NUM>10</POSITION_NUM>

<DELVRY_ITEM>000000000000000014</DELVRY_ITEM>

<PLANT>1010</PLANT>

<QUANTITY>3</QUANTITY>

<DATE>2010.08.24</DATE>

<SERIAL>AAAA01E1123458</SERIAL>

</DATA0>

- <DATA1>

<DOC_NUM>0017000374</DOC_NUM>

<POSITION_NUM>10</POSITION_NUM>

<DELVRY_ITEM>000000000000000014</DELVRY_ITEM>

<PLANT>1010</PLANT>

<QUANTITY>3</QUANTITY>

<DATE>2010.08.24</DATE>

<SERIAL>AAAA01G1123456</SERIAL>

</DATA1>

- <DATA2>

<DOC_NUM>0017000374</DOC_NUM>

<POSITION_NUM>10</POSITION_NUM>

<DELVRY_ITEM>000000000000000014</DELVRY_ITEM>

<PLANT>1010</PLANT>

<QUANTITY>3</QUANTITY>

<DATE>2010.08.24</DATE>

<SERIAL>AAAA01G1123457</SERIAL>

</DATA2>

</ns0:MT_SENDER>

Please suggest concept.

Thanks.