cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate the fieldnames in the receiver file

Former Member
0 Kudos

HI All,

i got one requirement ie how to populate the fieldnames in the receiver file.

please give the fast response.

This is very urgent.

thanks and regards

sai

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer the below help link

http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm

If you want to poulate the fieldnames same as of u r XML strucutue in the receiver file give like

Record.addHeaderLine --- 1

If you want to populate Header FieldNames as you own, give like

Record.addHeaderLine --- 3 and add one more parameter

Record.headerLine -- give the field names how you want to populate by using the , 'comma' separator.

Cheers

Veera

Answers (3)

Answers (3)

prabhu_s2
Active Contributor
0 Kudos

yes....use FCC in recv file adapter.

recordset_structure.addHeaderLine = 1

where for "1" - field names from the XML doc will be added as header

ranjit_deshmukh
Active Participant
0 Kudos

in mapping u can try

<Source>abc</Source>

mapped to target as

caoncat("Source","abc")

and increase the size of the fields at the receiver adapter file to give space for field name also

like if the target.fieldFixedLengths was previously 3 then now it will become 3+6 (considering example above).

and for CSV file no need to worry about field lengths.

Ranjit

prabhu_s2
Active Contributor
0 Kudos

since u know the mapping field u can concatenate the source with a constant (field name) and map to taget. this is place the data with field name in the recv file.

Former Member
0 Kudos

Hi Prabu,

my question is "how to populate the field names in the receiver file as a header"

regards

sai