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: 

How Range Table use BAPI_PO_GETITEMS

former_member213491
Participant
0 Kudos

Hallo Expert,

I want to use range table use bapi_po_getitems.

  ls_range-sign = 'I'.

  ls_range-option = 'BT'.

  ls_range-low =  '20140101'.  " Fest Datum 2015 Aktuel

  ls_range-high = '20141231'.

  APPEND ls_range TO it_range1.

CALL FUNCTION 'BAPI_PO_GETITEMS'

   EXPORTING

*   PURCHASEORDER                =

     doc_date                    =  it_range1

     vendor                      =  lifnr

    TABLES

*   PO_HEADERS                   =

      po_items                     = lt_bapeko

*   RETURN                       =

In this case give type conflict error.

1 REPLY 1

Former Member
0 Kudos

You can not use a range for this parameter as it accepts only one value .

If you want to get multiple PO details based on the document date you can call the FM BAPI_PO_GETITEMS  inside a loop (on document date ) and get the value in your internal table.