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: 

Using BAPI_PO_CHANGE to change only one PO item

Former Member
0 Kudos

Dear all,

I have a question regarding the use of BAPI_PO_CHANGE.

Indeed I have my PO which has got 2 items (item 10 and item 20) and I would like only to change the asset (under account assignment tab) of the item 20 and leave the item 10 unchanged.

Unfortunately as my fund on item 10 is no more available for the period on which I am making the change, I can not modify the item 20 of my PO using BAPI_PO_CHANGE.

Anyone knows how could I use BAPI_PO_CHANGE to make changes only on required items and not on all the items of my PO?

Thanks in advance for your help.

Best Regards,

Destiné

1 ACCEPTED SOLUTION

Former Member
0 Kudos

What happens when you try this with the online transaction?

In any event, if the BAPI won't let you do the change because of the expired fund, go to the fund, extend the end date (to today) and run the BAPI. After the BAPI has completed successfully, reset the fund end data.

Rob

3 REPLIES 3

Former Member
0 Kudos

What happens when you try this with the online transaction?

In any event, if the BAPI won't let you do the change because of the expired fund, go to the fund, extend the end date (to today) and run the BAPI. After the BAPI has completed successfully, reset the fund end data.

Rob

Former Member
0 Kudos

Hi Rob,

Thanks for your answer.

I can not do the change using ME22N T-code because our setup does not allow to change the asset once the item has been cretaed. But when I change some permitted field on item 20 like the item title, I am not blocked by the item 10 fund.

Changing the fund validity could be an option but it implies making other changes to the program, which I think would not be validated by the project team.

So should I understand that we could not use BAPI_PO_CHANGE only for one item on a multiple item PO?

Best regards,

Destiné

Former Member
0 Kudos

Dear all,

Thanks for your help. I have been able to solve the issue.

When using BAPI_PO_CHANGE, TL_ACCOUNT, TL_ACCOUNTX, TL_ITEM and TL_ITEMX shall be filled only with the items to be modified.

Best regards,

Destiné