on 11-04-2010 12:20 AM
Hi Gurus,
Our scenario is using Outbound (IDoc to Fixed Field Length Flat File) and we are using File Content Conversion
However upon testing, the spaces are not being preserved in the flat file. We tried to map fields with Constant number of spaces (e.g. 5 char field mapped with Constant having value 5 spaces) but it is not working, space is still not preserved in the flat file generated.
For those that have encountered this scenario, what did you do with this issue? As i've said the scenario is fixed field length flat file so the field lengths still have to be in the flat file even if the field has no value
Hoping for your kind response
After every mapping.. use mapWithDefault(give a space in it)
It will make sure that the all elements are generated in the target xml. FCC will automatically take length from fieldFixedLengths.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved by above fcc parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved by using FCC parameter field "fixedLengthTooShortHandling = cut"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ideally if you have forced the spaces to be created as part of your mapping, they will be retained during FCC also.
did you check the output file after it was created?
NameA.fieldContentFormatting = nothing - this will not help you since it is for the sender adapter and not for the receiver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It may happen that the spaces are coming and u cannot see in the editor.
Goto SXMB_MONI of PI system and check the payload after mapping(Target Payload).
Right click on the payload and open it... then see if spaces are coming in the payload or not
Babu
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 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.