Application Development and Automation 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: 
Read only

BAPI_PO_CHANGE DELIVERY COMPLETE INDICATOR

Former Member
4,105

Hi experts ,

What are the parameters i need to pass in BAPI_PO_CHANGE To make the the ELIKZ(DELIVERY COMPLETE Indicator) As X in EKPO table.

regards

Prasun

Hi experts ,

What are the parameters i need to pass in BAPI_PO_CHANGE To make the the ELIKZ(DELIVERY COMPLETE Indicator) As X in EKPO table.

regards

Prasun

5 REPLIES 5
Read only

Former Member
2,354

Hello

POITEM-NO_MORE_GR = 'X'

POITEMX-NO_MORE_GR = 'X'

Read only

0 Likes
2,354

hi can you send some sample code, as i have done the same before but it is not working

regards

Prasun

Read only

2,354

Hello


DATA: xreturn  like BAPIRET2      occurs 0 with header line,
      xpoitem  like BAPIMEPOITEM  occurs 0 with header line,
      xpoitemx like BAPIMEPOITEMX occurs 0 with header line.

xpoitem-po_item = p_ebelp.  " set position here
xpoitem-no_more_gr = 'X'.
append xpoitem.
xpoitemx-po_item = p_ebelp. " set position here
xpoitemx-no_more_gr = 'X'.
append xpoitemx.

CALL FUNCTION 'BAPI_PO_CHANGE'
     EXPORTING
              purchaseorder    = p_ebeln "set ebeln here
     TABLES
              return           = xreturn
              poitem           = xpoitem
              poitemx          = xpoitemx.
if sy-subrc = 0.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING WAIT = 'X'.
endif.

Read only

0 Likes
2,354

thanks it worked

Read only

0 Likes
2,354

Hello

I have a similar requirment, can you please tell in which include of the program this code has to be written...

One more thing I observed is, it does not check the DCI indicater unless versions export parameter has been passed in BAPI_PO_CHANGE.

I got DYNPRO_ITAB_ERROR as short dump when I tried this code in INCLUDE LMLSRF0F.