Skip to Content
0
Former Member
Dec 18, 2006 at 06:56 AM

BAPI_PO_CHANGE

17 Views

hi i am using finction BAPI_PO_CHANGE i am trying to change the stauts of Delvery comple or want to delete the line item whatever i give the input but when i run this bapi no change is done.

my PO is unreleased at the time of run.

LOOP AT i_pr.
     REFRESH i_poitem. CLEAR i_poitem.
**
     LOOP AT i_prpo WHERE ebeln = i_pr-ebeln.
       i_poitem-po_item    = i_prpo-ebelp.
       i_poitem-delete_ind = i_prpo-loekz.
       i_poitem-no_more_gr = i_prpo-ebakz.
**
       APPEND i_poitem. CLEAR : i_poitem, i_prpo.
     ENDLOOP.
**
     CALL FUNCTION 'BAPI_PO_CHANGE'
       EXPORTING
         purchaseorder = i_pr-ebeln
       TABLES
         poitem        = i_poitem.
   ENDLOOP.

abhishek