Enterprise Resource Planning Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Ravimm
Explorer
1,248

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

Ravimm_0-1720321044907.png

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.

Ravimm_1-1720321075930.png

@Sri_Sankara Thanks for helping with technical spot details.