Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

add leading spaces

Hello,

i have a char field with length = 30

in this field there is a 4 characters long value

i have to write this field in a file but with the 26 leading spaces ahead.

basically, i have XXXX and i would like to have ______________XXXX

i tried to concatenate spaces but it does not work.

How can i manage that please ?

Thanks

Tags:
Former Member
Former Member replied

Hi,

Try the following :

shift field right deleting trailing space

This should work.

Please reward points if this helps.

Regards,

Nicolas.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question