‎2012 Dec 13 4:20 PM
Hi,
I have a variable defined of character type & length 16. I have stored 3 digits which are prefixed with 3 characters. Ex: ABC123. Now I want to add leading zeroes to make it 16 digit long. Ex: 0000000000ABC123. I tried using function CONVERSION_EXIT_ALPHA_INPUT, but it does not worked. Can anyone suggest me some other function module or way to tackle this.
Regards
Randhir Jha
‎2012 Dec 13 4:37 PM
Hi
That code resolved your issue .
DATA: lv_char(16) TYPE c.
lv_char = 'ABC123'.
SHIFT lv_char RIGHT DELETING TRAILING SPACE.
OVERLAY lv_char WITH '0000000000000000' .