Skip to Content
Former Member
Jul 02, 2007 at 09:03 AM

Replacing sapces with 0 in character variables.



Can anyone suggest a method to replace zeros instead of characters at left side.

I have a component of internal table which accepts character data --> size 10, however before it gets uploaded I want it to look like '0000000012' instead of 12.

I used replace and replace all occurances, I also tried using first SHIFT and later REPLACE but no use.

Can anyone help ?

Appropirate rewards for good answers.

Thank you,

Dipesh Jhala.