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

left padding zeroes

Former Member
0 Likes
967

hello...

can u plz tell me the code to left-pad zeroes to char data.

thanx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
440

try this..


DATA: l_var(3) TYPE P VALUE 123,
           l_char(6) TYPE C.
UNPACK l_var TO l_char.

2 REPLIES 2
Read only

Former Member
0 Likes
440

Hi,

Use the FM CONVERSION_EXIT_ALPHA_INPUT

Thanks

Naren

Read only

Former Member
0 Likes
441

try this..


DATA: l_var(3) TYPE P VALUE 123,
           l_char(6) TYPE C.
UNPACK l_var TO l_char.