cancel
Showing results for 
Search instead for 
Did you mean: 

Can XI create file output like IDoc appears written to file port

Former Member
0 Kudos

When an Idoc is written to the file port the structure has the segment names and control info in addition to the Idoc contents.

Is there a way to pass the Idoc to XI directly and have the file adapter create the the Idoc so it looks just like the Idoc written directly from sap via the file port?

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Mark, In the Content Conversion in the Receievr File adapter, add the field,

SegmentName.addHeaderLine with value as 1. This will add the column name to the field value.

+NameA.addHeaderLine

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

· 0 – No header line

· 1 – Header line with column names from the XML document

· 2 – As for 1, followed by a blank line

· 3 – Header line is stored as NameA.headerLine in the configuration and is applied

· 4 – As for 3, followed by a blank line

Note

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

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

regards

Bhavesh

Former Member
0 Kudos

Thanks for the reply, but I don't think we are adding a header line to the file, especially since there are multiple segments each having different names (PAYEXT Idoc).

What I need is the data that prefixes the data when the Idoc is written to the file port to be geneated by the file adapter. There are no column names written in from the file port.

For example:

E2IDKU1 210000000000086247000000100000001PEXEXTENDED E2EDK03 2100000000086247000000200000002011200703021551