Skip to Content
0
Former Member
Oct 23, 2006 at 02:30 PM

Problem with file content conversion

21 Views

Hello,

I have the following scenario file-XI-Proxy ABAP, I pick up one text file and send it to XI, the txt file has to be converted to the following xml structure:

<REGISTRO_TIPO_1>

<TIPO_REG></TIPO_REG>

<COMPANY></COMPANY>

<COD_ERROR></COD_ERROR>

<BLANCOS></BLANCOS>

<RECORD_TYPE_2>

<COMPANY></COMPANY>

<ORDEN></ORDEN>

<NUMBER></NUMBER>

</RECORD_TYPE_2>

<RECORD_TYPE_2>

<COMPANY></COMPANY>

<ORDEN></ORDEN>

<NUMBER></NUMBER>

</RECORD_TYPE_2>

<RECORD_TYPE_1>

RECORD_TYPE_2(0..unbounded) is a substructure of RECORD_TYPE_1(0..unbounded), and RECORD_TYPE_1 has another fields as well as RECORD_TYPE_2.

My problem is that i dont know how to achieve this complex structure with file content conversion. I would be very glad if someone could help me, with the content conversion parameters I should use.

Thank you very much.

Luis