07-24-2007 4:15 AM
Hello Friends,
I have a PO no wihich is starting with charactor "32" that is >> "32A2000023".
In my condition I want to check the first 2 charactors as "32" and if it is true I am executing my remaining code.
How do I check the 1st 2 charactors of a given PO.
Thanks,
Shreekant
07-24-2007 4:19 AM
take all the data to itab. then loop like this...
loop at itab.
if itab-po+0(2) = '32'.
<proceed>
endif.
endloop.
regards
shiba dutta
07-24-2007 4:19 AM
take all the data to itab. then loop like this...
loop at itab.
if itab-po+0(2) = '32'.
<proceed>
endif.
endloop.
regards
shiba dutta
07-24-2007 4:27 AM
loop at it_po into is_po.
if is_po-po_number+0(2) = '32'.
<do your coding here>
endif.
clear : is_po.
endloop.
Regards
Gopi
07-24-2007 4:30 AM
hi,
do this way....
loop at itab.
if itab-ebeln+0(2) = '32'.
<Continue with further code>
endif.
endloop.