Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

i had a problem in this programme

hi,

this is pandu,i would like to enter the phone num of 10 digits, but it is not executed if we enter less than 10 digits. already i had written the programme the programme for this one. but is executing if we r entering the digits less than ten.

REPORT ZDF message-id zmsg-30.

data:num(10) type n.

data: i type i,

v_num(10) type n.

parameters:p_telno like num.

  • i = strlen( p_telno ).

if p_telno is not initial .

if i = 10.

v_num = p_telno.

write:/ ' the telephone no is',v_num.

else.

write:/ 'start with the no 99'.

endif.

else.

message s001 with 'enter the valid telno'.

endif.

regards,

pandu.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question