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: 

BAPI for Purchase Order Confirmation and update EKES table

Former Member
0 Kudos

Hi all,

I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.

I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.

I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.

Please help me out on this.

Thanks & Regards

Pavan

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.

Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.

Regards,

Raymond

PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

NB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.

Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.

Regards,

Raymond

PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it