06-05-2015 6:06 AM
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
06-05-2015 8:30 AM
Hi,
After FM ME_CONFIRMATION_UPDATE call FM ME_CONFIRMATION_REDISTR_ITEMS by passing PO number and line item number.
Thanks and regards,
Greeshma.
06-05-2015 8:30 AM
Hi,
After FM ME_CONFIRMATION_UPDATE call FM ME_CONFIRMATION_REDISTR_ITEMS by passing PO number and line item number.
Thanks and regards,
Greeshma.
06-05-2015 9:53 AM
Hi Greeshma,
Thanks for your update.
It's creating both Shipping notification and PO item.
Thanks with Regards,
Vallamuthu M.
06-05-2015 10:00 AM
Hi Greeshma,
I Have wrongly placed the code. Now My problem is solved.
Thanks with Regards,
Vallamuthu M.
06-05-2015 10:22 AM
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
01-10-2021 6:47 AM
Raymond,
Unfortunately SAP did not care about confirmations with these BAPI.
Thanks