Application Development 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: 

Checking first 2 charactors for a PO no.

former_member248300
Participant
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

gopi_narendra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi,

do this way....


loop at itab.
   if itab-ebeln+0(2) = '32'.
    <Continue with further code>
  endif.
endloop.