Skip to Content
0
Former Member
Apr 21, 2009 at 08:50 AM

IN operator error

35 Views

hi gurus.....

below is my code where i want to add another document type too ,

initially i had to check only one document type

so checked as blart = 'AA' and query is working fine

now need to check for the document type AB too but when i tried

plzzz help me to solve

Thank you ...

SELECT bukrs belnr xblnr blart xreversal FROM bkpf
                              INTO CORRESPONDING FIELDS OF TABLE it_bkpf
                               for all entries in it_pos
                                  WHERE bukrs = it_pos-bukrs
                                     AND  blart= 'AA'  AND
                                     belnr =  it_pos-belnr and
                                     gjahr = it_pos-gjahr
                                     AND  xreversal = ' '
                                  .