Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function CONVERSION_EXIT_ALPHA_INPUT does not works if characters are prefixed with digits

Former Member
0 Likes
591

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

1 REPLY 1
Read only

Former Member
0 Likes
385

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' .