‎2009 Apr 16 7:03 AM
Hi,
I have a internal table with one field.
I have to check for each entry in table
Each value can contain only A - Z , 0 to 9 or - (dash) , if any other character , do not use it.
Is there any FM or some logic ..?
Thanks
Bijal
‎2009 Apr 16 7:09 AM
Hi,
code
data:
w_char(72) type c value 'AB----Z1--------9-'.
loop at internal table into wa.
if wa-field1 co w_char.
steps.
endif.
endloop.regards
ravi
‎2009 Apr 16 7:07 AM
Hi,
You can use the following logic.
DATA: number(11) TYPE C value '0123456789-'.
DATA: lv_string type string.
CONCATENATE sy-abcde number INTO lv_string.
*Assuming you have internal table with header line it_tab
loop at it_tab.
IF it_tab-field CO lv_string.
* satisfies your condition.
ENDIF.
endloop.Regards,
Sesh
‎2009 Apr 16 7:09 AM
Hi,
code
data:
w_char(72) type c value 'AB----Z1--------9-'.
loop at internal table into wa.
if wa-field1 co w_char.
steps.
endif.
endloop.regards
ravi
‎2009 Apr 16 7:18 AM
Hi bijal parmar ,
Make meaning ful subject line go thru Terms & condtions of SCN.
Regards,
Suneel G