cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC-XML to IDOC-Flat file conversion

Former Member
0 Kudos

Hi,

I have a scenario in which XI receives IDOCs from SAP system and XI has to convert these IDOC-XMLs to IDOC-Flatfiles and dump them in a FTP server. I followed the How-To guide below and it worked well.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a

But i have a problem when IDOCs are bundled together. When i get a message which has 2-3 idocs packed together the target flat file does'nt look the way it has to. The 2 EDIDC40 segments occur together at the top and the data segments occur later at the bottom. How do i overcome this?

This is how the flat file looks:

EDI_DC40 1350000000000007139700 3024 PEXR2002 PAYEXT SAPECD LS ECDCLNT135 XMLHTTP B 0061000052 20090825103921 1E2A88C091AC11DEC34B001A6463721E 000000000088815020090825103919

EDI_DC40 1350000000000007140700 3024 PEXR2002 PAYEXT SAPECD LS ECDCLNT135 XMLHTTP B 0061000052 20090825111050 1E2A88C091AC11DEC34B001A6463721E 000000000088815220090825111049

E2IDKU1 1350000000000007139 1 000000 PEXEXTENDED PAYMENT ORDER 2000000003 ORG001

E2EDK03 1350000000000007139 2 000000 01120090825103919

E2EDK03 1350000000000007139 3 000000 02820090825

E2EDK03 1350000000000007139 4 000000 01720090825

E2EDK02 1350000000000007139 5 000000 0222000000003

E2EDK12000 1350000000000007139 6 000000 0261000000000

E2IDKU2 1350000000000007139 7 000000 001DO 001

E2IDKU3002 1350000000000007139 8 000000 CUS1550TEST2 20090825 000000125311

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

closed