Skip to Content
0
Former Member
Nov 08, 2007 at 10:02 AM

i had a problem in this programme

31 Views

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.