on 07-20-2011 1:44 PM
Hi,
I have target file having structure as below. In the text file I want to display all header and item field names along with value.
The Item fields should display on new line. Can anybody tell me whether it is possible using FCC parameter? If yes, which parameter should I use on receiver side.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_File_receive xmlns:ns0="http://mahindra.com/xi/idoc_to_file">
<Records>
<Header>
<Header1/>
<Header2/>
</Header>
<Item>
<Item1/>
<Iitem2/>
</Item>
</Records>
</ns0:MT_File_receive>
The file should disply as below
Header1 header2
headervalue1 headervalue2
Item1 Item2
Ival1 Ival2
Regards,
Sari
Hi Sari
You can use parameter addHeaderLine with value 1 for each segment:
Header.addHeaderLine 1
Item.addHeaderLine 1
Values of header will be taken from XML message.
Otherwise, using value 3, you can specify the names of each field using paramater headerLine (Header.headerline, Item.headerLine...)
Check this link:
http://help.sap.com/saphelp_nw70/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Giuseppe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NameA.addHeaderLine = 1
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.