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: 

Problem in using bapi_po_change

Former Member
0 Kudos

Dear Friends,

I am using BAPI_PO_CHANGE and trying to set the delivery completed Indicator in the Purchase order.

Code is as below.

poitem-no_MORE_GR = 'X'.

poitem-deliv_compl = 'X'.

I am using BAPI_PO_CHANGE and BAPI_TRANSACTION_COMMIT both.

But even after running this, my Delivery completed Indicator in PO does'nt get checked.

Kindly help.

Thanks & Regards

6 REPLIES 6

Former Member
0 Kudos

Are you also updating the poitemx structure.

Former Member
0 Kudos

No

REgards

0 Kudos

Hi,

You need to pass the poitemx structure and pass the value as 'X' .

poitemx-no_MORE_GR = 'X'.

poitemx-deliv_compl = 'X'.

So that it will change the value of indicator. Otherwise just passing the value to poitem structure doesn't help.

-Umesh

Former Member
0 Kudos

I have changed poItemx and it's working for the POs without release strategy but if POs are with release strategy and release indicator is 4(Approved), this bapi is not working even after putting poheader release indicator to '1' and 'X' in the POheaderX. Kindly help.

0 Kudos

Hi,

I think we cant change a PO which is already released.

Regards

Sandipan

Former Member
0 Kudos

Dear Sandipan,

Can u tell me the way.

Regards