Currently only the PR to PO converter ( MRP controller, PO creator) can see the logs of PO failure via either ME59N screen or either looking in to the job log via SM37,when we execute it via background mode.
There was no any detailed blog that was showing how to write a enhancement in ME59N T code
This blog will explain the spot to write a enhancement in ME59N t code to send email while the PO creation fails both via test and production mode.
Enhancement spot can be found in Include Program: RM06BB30F02
The spot for writing the change is at the end of form- PROCESS_PURCHASE_ORDER
At this spot we have a bapi return in the internal table of IS_TODO
The LS_TODO brings the return message from BAPI execution in both test and production mode
Get the return message that has “I” or “E” and make it to a tabular format.
Get the PR creator/ requestor from BAPI_REQUISITION_GETDETAIL and send the email.
@Sri_Sankara Thanks for helping with technical spot details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |