What are the differences between a BAPI (Business Application Programming Interface), BAdI (Business Add-Ins), customer enhancement and customer modification?
abap - What is the difference between BAPI, BAdI, enhancement and ...
It seems that this BADI doesn't work but I made my research and most people use this BADI to update EKPO fields in ME21n. Is there any problem with my code? Is there other exit I can use to update fields WEORA and BSTAE in transaction code ME21N upon saving?
To activate your own BAdI implementation, go to SPRO -> Cross-Application Components -> Master Data Synchronization -> Custom/Vendor Integration -> Business Partner Settings -> Business Add-Ins (BAdIs). There, deactivate the standard BAdI CVI_MAP_LEGAL_ENTITY and activate your own implementation.
Every BADI in SAP has example implementation, and MB_MIGO_BADI is not an exclusion. It also has pre-delivered and pre-defined implementation CL_EXM_IM_MB_MIGO_BADI. In the SE20 transaction you have handy button Copy sample class, which helps you to accomplish this little plagiarism. In addition to MB_MIGO_BADI you can also try MB_DOCUMENT_BADI.
TL;DR: I'm looking for a BADI / User exit that would allow me to update a PO's custom field by deriving its value from confirmation data. Reading confirmation data from the database is not possible because the currently edited PO might not be committed yet.
I need to update the delivery date of the purchase order. I used the ME_PROCESS_PO_CUST BAdI in the POST method but it does not update the dates in the EKET table, only the dates on the screen are
I strongly recommend not to use MESSAGE statement in any User-Exit or BAdI implementation. The MESSAGE statement will implicit call a COMMIT WORK which could cause database inconsistencies (happens very often by the way).