cancel
Showing results for 
Search instead for 
Did you mean: 

Flat file should have source field name and value

Former Member
0 Kudos

Hi Friends

I have a scenario of Idoc to Flat file , where in the target structure the field name and value should be present, generally only the value is available in a flat file.The target structure is as below:

for e.g RECTYPE is the Field Name and A is the value.

RECTYPE,A

DATEH,20111101

TIMEH,173125

RECTYPE,B

ORDNUM,4500054536

ORDITM,150

SUPDAT,20090218

PLNQTY,000000006

MATNR,14B300

BATCH,5697

PLANT,3026

DELIVTYPE,PO

SUPPLIER,0000023305

SUPNAME,Deutsche BP AG

SUPADRS,Erkelenzer Strasse 20

SUPCITY,Monchengladbach

SUPPOST,41179

SUPCOUN,DE

TRUCK_NBR,7589

BOND_FLG,X

STG_LOC,PLCL

LINE_ACTION,CRE

RECTYPE,B

ORDNUM,4500056721

ORDITM,10

SUPDAT,20090218

PLNQTY,000000013

MATNR,116703

BATCH,6589

PLANT,3026

DELIVTYPE,PO

SUPPLIER,0000023380

SUPNAME,DOW Belgium NV

SUPADRS,Havenlaan 7

SUPCITY,Tessenderlo

SUPPOST,3980

SUPCOUN,BE

TRUCK_NBR,7589

BOND_FLG,X

STG_LOC,PLCL

LINE_ACTION,CHG

RECTYPE,X

DATEH,20111101

TIMEH,173125

RECORDS,3

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

NameA.addHeaderLine

Specify whether the text file will have a header line with column names. The following values are permitted:

■ 0 u2013 No header line

■ 1 u2013 Header line with column names from the XML document

■ 2 u2013 As for 1, followed by a blank line

■ 3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied

■ 4 u2013 As for 3, followed by a blank line

This specification is only permitted if exactly one structure is defined.

regards,

ganesh.