Skip to Content
author's profile photo Former Member
Former Member

Problem with file content conversion

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Oct 24, 2006 at 02:57 AM

    Hi,

    The nested strcuture shown in your question is not supprted by the file adapter's content conversion.

    2 options,

    1. Either write an Adapter Module and write the logic to convert the source TXT file into the XML strcuture you want. ( Would not recommend this though as making any changes can become cumbersome )

    2. Change the Datatype format to the format shown in the online SAP library as that is the format in which you can create the datatype using File adapters.

    Regards,

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2006 at 03:27 PM

    Does really anybody never have to do a xml-structure like that one?? I cant find any kind of documentation with examples of complex structures, only there is some documentation in the online help, and doesnt help too much...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2006 at 05:35 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.