cancel
Showing results for 
Search instead for 
Did you mean: 

Fex fields length, align right

Former Member
0 Kudos

In file receiver with content conversion and fixed field length is there a way to align the data to he right of the fields?

Default the values are being aligned left so that if a field has length 10 and input is "1234" it becomes "1234______", i want to align left so it becomes" ______1234"

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member187339
Active Contributor
0 Kudos

Hi,

>>Default the values are being aligned left so that if a field has length 10 and input is "1234" it becomes "1234______", i want to align left so it becomes" ______1234"

You need to handle this in the mapping itself, if the length is less than required length then append space in the beginning

Regards

Suraj

Former Member
0 Kudos

Write the UDF as mentioned in this blog-

http://wiki.sdn.sap.com/wiki/display/Snippets/UDFforZeroPaddingon+Left

Add "" (space) instead of zero in the code.