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

report

Former Member
0 Likes
315

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.

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
297

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

Read only

Former Member
0 Likes
297

Micky is right. Declare num2 type n.

i.e. numeric type instead of integer(i).