Skip to Content
avatar image
Former Member

How to populate first row of flat file with field names?

Hi all,

I am doing a ABAP Proxy to Flat file scenario, where I am receiveing a xml file through ABAP proxy and I am converting it to a flat file which is TAB delimited.

Now I have to pupulate flat file where 1st row of the file should always be field names.

My field length vary from 2 to 50.

How can this be achieved?

Please suggest.

Regards,

Sachi

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 02, 2010 at 02:37 PM

    Hi Sachi,

    >>Now I have to pupulate flat file where 1st row of the file should always be field names.

    Duplicate the target node and map you field names to the first instance and the mapping logic to the next instance

    eg:

    Suppose your target structure is:

    -root

    -->Details

    -


    >FName

    -


    >LName

    Do a Mapping like this:

    -root

    -->Details

    -


    ><FName>FName </FName>

    -


    ><LName>LName </LName>

    -->Details (use mapping logic hereafter)

    -


    ><FName>

    -


    ><LName>

    Regards

    Suraj

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02, 2010 at 02:42 PM

    >>How can this be achieved?

    Use content conversion parameter

    NameA.addHeaderLine = 1

    refer: http://help.sap.com/saphelp_nw04/Helpdata/EN/d2/bab440c97f3716e10000000a155106/content.htm

    ~SaNv...

    Add comment
    10|10000 characters needed characters exceeded