Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 14, 2007 at 11:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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