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: 

ME_CONFIRMATION_UPDATE: create one item

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi All,

I am using ME_CONFIRMATION_UPDATE to update EKES table for mass PO confirmation and facing a problem . When we update it using the above FM used in our program after confirmation we are getting 2 records in transaction MD04 one for Shipping notification and other for PO item but when we confirm a PO manually

then the PO item record gets replaced with shipping notification record.

Thanks with Regards,

Vallamuthu M

1 ACCEPTED SOLUTION

Former Member

Hi,

After  FM ME_CONFIRMATION_UPDATE call FM ME_CONFIRMATION_REDISTR_ITEMS by passing PO number and line item number.

Thanks and regards,

Greeshma.

5 REPLIES 5

Former Member

Hi,

After  FM ME_CONFIRMATION_UPDATE call FM ME_CONFIRMATION_REDISTR_ITEMS by passing PO number and line item number.

Thanks and regards,

Greeshma.

0 Kudos

Hi Greeshma,

Thanks for your update.

It's creating both Shipping notification and PO item.

Thanks with Regards,

Vallamuthu M.

0 Kudos

Hi Greeshma,

I Have wrongly placed the code. Now My problem is solved.

Thanks with Regards,

Vallamuthu M.

raymond_giuseppi
Active Contributor
0 Kudos

Don't forget that use of update task FM (*) may trigger database inconsistencies (**) and is definitely not good practices.

Did you try to use standard BAPI_PO_CHANGE (***)?

Regards,

Raymond

(*) Those FM are called at end of transaction, after error check and in whole batch, and executed in update task after the COMMIT WORK.

(**) Even if a full analyze of standard transaction usage of those FM is performed, you won't prevent loss of warranty in case of database problem (7 - Error caused by customer modification/development.)

(***) Read also 197958 - BAPIs for purchase orders: Missing functions

0 Kudos

Raymond,

Unfortunately SAP did not care about confirmations with these BAPI.

Thanks