on 02-25-2014 11:05 AM
How to distinguish between header and data field for fixed length file in sender FCC when key value is same for header and data record.
Sample data file attached before .Problem at present is that even data record are getting reflected as header in the payload as the key field value is same for header and data .
Thanks
Hi Anshu - What about that "EH" in your details? Can't you use it?
If you are getting everything into header then as suggested by Steve, you have to go for intermediate mapping..
Based on your sample file i don't see that "EH****" or "P8****" etc in your header line so you can easily convert it into nested stcrture using the intermediate grpahical mapping incase your third party is not ready to provide another key field..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anshu
You could create an intermediate data structure that works for both header and data records. Use FCC to load the file into the intermediate structure, and then map to the structure you wish to use.
regards
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anshu,
If you don't need the header, then specify the "Document Offset" as "1" in your sender FCC to ignore header. Converting Text Format in the Sender File/FTP Adapter to XML - Advanced Adapter Engine - SAP Library
Thanks & Regards,
Ankit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anshu
The easiest solution will be get the file changed from 3rd party so that the key field value will be different for header and data.
If your input file has 1 header and that is on the first line, then you can write an java mapping or adapter module to populate the structure.Read the file as it is and then generate structure inside java mapping.
Hi Anshu
I think the key field value should be different for both header and data record. Otherwise the standard content conversion will not work as the way it should be.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.