Skip to Content
avatar image
-1
Former Member

in loop where condition is not working

Dear all

i have an query that in loop where condition is not working , plz find below code.

DATA : IT_GETSTATEMENT TYPE STANDARD TABLE OF BAPI3008_2 WITH HEADER LINE.

CALL FUNCTION 'BAPI_AP_ACC_GETSTATEMENT'
EXPORTING
companycode = T_BUKRS
vendor = T_LIFNR
date_from = t_date-low
date_to = t_date-high
* NOTEDITEMS = ' '
* IMPORTING
* RETURN =
TABLES

lineitems = IT_GETSTATEMENT.

LOOP AT IT_GETSTATEMENT where doc_type = 'AB'.

endloop.

My question is in above loop where condition doc_type = 'AB'. is not working.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 17, 2017 at 07:35 AM

    Your first loop should be AT RETURN table for error message(s)...

    And please remove this ugly HEADER LINE.

    Add comment
    10|10000 characters needed characters exceeded