on 02-04-2011 3:15 PM
Hi experts,
Iu2019m trying to add a header line using the module and not in the FCC. As specified in SAP HELP. I need only to add:
xml.addHeaderLine 3
xml.headerLine u2018TESTu2019
But is not working. It generate the file but without the headerline. This is an structXML2Plain
EX
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentType text/xml;charset=utf-8
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.addHeaderLine 3
XML2Plain xml.headerLine u2018TESTu2019
XML2Plain xml.recordsetStructure NameA,NameB,NameC
XML2Plain xml.NameA.fieldFixedLengths 3,3
XML2Plain xml.NameB.fieldFixedLengths 3,3,3
XML2Plain xml.NameC.fieldFixedLengths 5
the links of help:
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/686e687f2a6d12e10000000a1553f6/content.htm
Thanks
Hi,
It seems to the problem in XML2Plain xml.headerLine u2018TESTu2019.
Please write like XML2Plain xml.NameA.headerLine TEST instead of XML2Plain xml.headerLine u2018TESTu2019.
Hopefully, it will work fine.
Regards,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Example: Recordset Structure: Recordset * (Root node structure )
RecordSet.addHeaderLine = 3
Recordset.headerLine = TEST
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, that was just a typo in the example. For some reason this works great when a simple is structure but when is an structXML it doesnu2019t work the same way in Module (Not in FCC).
Any idea on how to do this? I have multiples nodes repeating the structure multiples times. If I add header in the mapping it will also repeat with the complete structure (which I doesn't want):
For example:
Header (I want a unique Header here for the complete structure, only for testing)
Name of the employee1 -> Header (1 to 1)
Info1 -> Detail ( 1 to unbounded )
Info2 -> Detail
(End of RECORD )
Name of the employee 2-> (1 to 1)
Info1 -> detail
info2 -> detail
info2 -> detail
infor3 -> detail
info4 -> detail
(End of Record)
.... it continues this way
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.