Usage of GR Message in SAP ERP
Recently I got some requests from my local SAP users and SCN memebers in the forum, they want to let SAP system automatically send out an email with simple content after GR completed, just informs the suppliers what part and how many quantity were received on time, in order that suppliers could generate the correct invoices with actual GR Qty base on the email. Here I have a usage of GR message in SAP R/3 system as follows:
- Define the mail title and text
With transaction code NACE, select ME–Inventory Management to define the output type MLGR–GR message as following screen snapshot,Choose the language which you use to send out email, click the “Text” button to input mail title and simple text as follows:

P.S. As to the fields and symbols in the text, you can refer to the following explanation:
$SGF$ — Dear Ms.
$SGH$ — Dear Mr.
$EKKO-ERNAM$ — Name of Person who Created the purchasing document
$MSEG-EBELN$ — Purchase order number
$MSEG-EBELP$ — Item Number of Purchasing Document
$MSEG-ERFMG$ — Quantity received
$MSEG-LIFNR$ — Vendor number
$AM07M-NAME1$ — Vendor name
$MKPF-BLDAT$ — Document date
$MFG$ — Kind regards
$MKPF-USNAM$ — GR User name
BTW, you can find more symbols in the table TTDTG and freely change the content of text as you request! - Maintain the condition record of output type MLGR
With transaction code NACR to maintain the condition record of output type MLGR accordingly as follows:In the field of “Language” input the language key which you often want to send out the email to suppliers.
If your SAPconnect customizing works correctly, after GR the supplier will receive an email as follows:
This way is running in my SAP R/3 system correctly, hope can help you!



For the example in my blog, yes, the email is sent out to our buyers. As long as you maintain the vendor's mailbox in the vendor master data, and revise the GR message code as I mentioned, then the GR message will be sent to the vendor! That's it!
Thanks for your comment!
Good day
Tao
Very Good Blog.
Do you have similar details in case the mail needs to be triggered to be send to the buyer instead of vendor.
I haven't the case to buyer yet, but from my point of view, if you want to do, you should create a new dondition table for the case! Good luck.
Regards
Tao
Do you know what partner function do I need to enter in the condition record if I want to send email notification to the user who created the purchase requesition.
Thanks
Vijay
What does your processing routine look like for the MLGR ouput type? The same for you partner function.
I am curiuos if you had to implment any notes for this to work.