Skip to Content

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

XML to PLAIN - urgent help needed

Hello everybody!

I have a ftp receiver adapter; in this adapter a xml file should be converted to a plain text file.

The structure looks like this:

<ns0:MFG_ORDERS xmlns:ns0="urn:test.com:edi:test">

<HEADER>

<So_recordtype>SOHD</So_recordtype>

<So_nbr>07096111</So_nbr>

<So_cust>0210</So_cust>

<So_bill>0210</So_bill>

<So_ship>0210</So_ship>

<So_date>20060516</So_date>

</HEADER>

<LINEITEMS>

<Sod_recordtype>SOLI</Sod_recordtype>

<Sod_line>001</Sod_line>

<Sod_part>BO2224-88916000</Sod_part>

<Sod_qty_ord>000100,00</Sod_qty_ord>

<Sod_um>PCE</Sod_um>

<LINEITEMTEXTS>

<Solt_recordtype>SOLT</Solt_recordtype>

<Solt_nbr>07096111</Solt_nbr>

<Solt_line>00001</Solt_line>

<Solt_counter>01</Solt_counter>

<Solt_text>001 1 Line Item Text Example</Solt_text>

</LINEITEMTEXTS>

<LINEITEMTEXTS>

<Solt_recordtype>SOLT</Solt_recordtype>

<Solt_nbr>07096111</Solt_nbr>

<Solt_line>00001</Solt_line>

<Solt_counter>02</Solt_counter>

<Solt_text>001 2 Line Item Text Example</Solt_text>

</LINEITEMTEXTS>

</LINEITEMS>

</ns0:MFG_ORDERS>

After conversion it should look like this:

SOHD......

SOLI....

SOLT...

SOLT...

My problem is that the "LINEITEMTEXTS"-segments are subsegments of the "LINEITEMS"-segment which is not converted properly.

Can anybody help me?

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question