on 05-31-2012 12:48 PM
Hi All,
My target file will be like this...its a pipe delimited file.
Main Header
Header1 Header2 Header3 Header4 Header5
63747|1J27|005|1159.000|EA
63747|1J27|005|1159.000|EA
63747|1J27|005|1159.000|EA
Now I have achieved 2nd line by using record.AddHeaderLine = 3 and giving record.headerLine values as Header1,Header2 etc.
How can i write Main Header in my target file?...Pls help.
Thanks,
Praveen.
Just a thought.. Can you try this way...
record1.headerLine = MainHeader
record1.addHeaderLine = 1
record2.headerLine = Header1,Header2,...Header5
record2.addHeaderLine = 3 or so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm afraid it won't work, unless record1 and record2 exist as nodes in the message payload. Here is what SAP Help says about the Recordset Structure:
If you want to convert all substructures using the same parameters, you only have to specify one structure. The entries are automatically applied to all substructures.
If you specify more than one structure, the list must contain all the structures occurring in the document. The list must be complete, otherwise a processing error will be triggered at runtime.
Regards,
Greg
Hi Praveen,
Try putting it all as the headerLine:
record.headerLine = Main Header '0x0D''0x0A'Header1 Header2 Header3 Header4 Header5
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.