‎2008 May 05 9:37 PM
parameters num type string.
data : num1(16) type c,
num2 type i.
write:/ num.
if user enters this kind of input K12345777
then i should get the output as 12345777
means the character sholud get removed.
‎2008 May 05 9:40 PM
you can move the character type entry to a numeric field, then all 'characters' will automatically be removed.
Another option would be (probably more user friendly) is check the entry at selection screen.
After entering data, do a check on this field.
If num CA sy-abcde.
issue message.
endif.
Edited by: Micky Oestreich on May 5, 2008 10:43 PM
‎2008 May 05 9:46 PM
Micky is right. Declare num2 type n.
i.e. numeric type instead of integer(i).