Skip to Content
0
Former Member
Oct 09, 2008 at 03:18 PM

ABAP question..

18 Views

Hello,

I have a requieremnt where I have makde data two characters. For ex: If I enter 23, the output should be 23, if I enter 2 in paramater, the output should be 02. But following code gives one digit when input is one digit.

Parameter: p_num(10) TYPE c.

Data: l_code TYPE char2.

If p_num < 99.

l_code = p_num(2).

endif.