cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

santhosh_kumarv
Active Contributor
0 Kudos

>>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...

former_member187339
Active Contributor
0 Kudos

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