cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver FCC parameter to preserve spaces

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (5)

Answers (5)

Former Member
0 Kudos

Solved by above fcc parameter

Former Member
0 Kudos

solved by using FCC parameter field "fixedLengthTooShortHandling = cut"

Shabarish_Nair
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

Try the option NameA.fieldContentFormatting = nothing in FCC.

also did you see this thread

regards,

francis

Former Member
0 Kudos

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