on 08-31-2011 2:36 PM
Hi All,
I am having an issue in reciever FCC, where my last field being 10 space and each record is separeted by a new line, the last field gets trimmed for the space, Could you provide your inputs.
For example, my output record shd be like, without trimming the spaces at the end.
1 2 3 4 5 6 <10 spaces>
1 2 3 4 5 6 <10 spaces>
1 2 3 4 5 6 <10 spaces>
1 2 3 4 5 6 <10 spaces>
Regards,
Nithiyanandam
Hi,
are you using fieldFixedLenghts in FCC?
Fabio
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 only using Records.fieldFixedLengths specifying the lengths of all fields including the last field which contain spaces and Records.endSeparator as nl.
This works fine if i provide the last field with some characters instead of spaces. Also I have tried checking the same by providing blank spaces in the mapping, it works fine and provides the necessary blank spaces in the target payload, but when the file is written in the target folder as flat file, the space gets trimmed. Should there be any change in the processing type (binary/test) and File encoding.
please provide some inputs.
Regards,
Nithiyanandam
Hi Nithiyanandam,
Can u please change in the mapping use concat function with spaces and in configuration use fixed fieldlenghts as last column value 10. U will get the taget file with spaces.
Its working fine for me. Place the courser at the end of the record and count the spaces.
Thanks,
Enivass
Hi,
Thanks for your reply, Could you please provide more details. Do you want me to concat an constant (empty value) with another constant (10 spaces) and map to the target field.
Also could you please let me know the other parameter which you have specfied in receiver file adapter (FCC), under the processing tab (file type and encoding), Content conversion parameters (i have used only (Records.fieldFixedLengths and Records.endSeparator)
Also have you specified any other module like localejbs/AF_Modules/MessageTransformBean (under processing sequence), if so please provide the details.
Regards,
Nithiyanandam
Hello,
Did you specified <message>.fieldSeparator in your receiver adapter?
Meybe the parameter <message>.absoluteRowWidth=<noOfColumns> can help you.
Take a look at this document:
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm
Regards,
Diego Estanguini Gabriel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.