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

Problem in using bapi_po_change

Former Member
0 Likes
1,085

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
Read only

Former Member
0 Likes
910

Are you also updating the poitemx structure.

Read only

Former Member
0 Likes
910

No

REgards

Read only

0 Likes
910

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

Read only

Former Member
0 Likes
910

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.

Read only

0 Likes
910

Hi,

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

Regards

Sandipan

Read only

Former Member
0 Likes
910

Dear Sandipan,

Can u tell me the way.

Regards