Wednesday, February 22, 2012

Output Type MLGR - GR Message Configuration

Output type MLGR - GR Message gives us the ability to inform via SAP mail that goods have been delivered or returned to the Buyer of the Purchase Order. This is indeed a neat functionality so that user is aware straight away as soon as GR is posted in SAP. It can be sent to SBWP alone, or also sent as Express message, where a popup will appear at the buyer's screen. This is good in the sense that the buyer does not have to open SBWP Inbox from time to time to check if a receipt has been done.

In order to configure this follow the steps below.


IMG→ Materials Management→ Inventory Management and Physical Inventory→ Output Determination→ Maintain Output Types
Choose Display → Change.
Select message type MLGR and choose Copy as.
Enter the name (anything of your choice) and a text, for example, goods receipt mail.
For the access sequence, enter 0003, because in the condition table, the item print indicator is also entered for this access sequence.
In the dialog structure, choose Mail Title and Texts. Enter any document title and any text for the mail.
The new message type must be included in the schema (procedure) ME0001 and at least one condition record must be created.

IMG→ Materials Management→ Inventory Management and Physical Inventory→ Output Determination→ Maintain Output Determination Procedures
Choose Conditions: Procedure .
Select the partner schema ME0001 and choose Control in the dialog structure.
Choose New Entries.
Add a new entry: level, such as 26, counter 10 and message type (The one you previously configured).
Save your input.

IMG→ Materials Management→ Inventory Management and Physical Inventory→ Output  Determination→ Maintain Conditions
Choose Create Conditions: Inventory Management .
Enter your message type and choose Key Combination.
Choose Enter.
Create the condition record with transaction type GR, print version 1, item print indicator 1/2(1 for GR, 2 for return delivery), and partner role MP.

Finally, during Purchase Order creation, GR message checkbox must be checked, this checkbox is located at the Header Details --> Delivery / Invoice Tab. Print checkbox also has to be checked during MIGO GR creation. This can be defaulted via setting user parameter NDR = X.

By performing the above, Buyers will now be able to receive a message in SAP Inbox whenever there is a Goods Receipt. However, the message will only contain a note saying that there is a Goods Receipt for your Purchase Order. It does not contain vital information such as Purchase Order number, Quantity, Vendor, etc.
To fix this, do the following.

1. use variables '&' instead of '$'

2. In transaction M706 for output type MLGR, make sure you have maintained the include by going in the long text, Choose Goto -> Change Editior, and maintain the form here :

"A goods receipt for your purchase order &MSEG-EBELN&
item &MSEG-EBELP& has just been entered.

Material: &MSEG-MATNR& &EKPO-TXZ01&
Quantity delivered: &MSEG-ERFMG&

Vendor: &MSEG-LIFNR&, &AM07M-NAME1&

Posting date: &MKPF-BLDAT&

&MFG&
&MKPF-USNAM&"

Then in MN22, delete the earlier condition record and create a new condition record in MN21
Here in the Communication in the MENU select
Goto -> Execution Parameter. You reach the dialog box Change Execution Parameter. Here you maintain the following data for mail processing:

Execution type U Transaction with memory
Execution element MB03
Memory ID MBN
Par name: RM07M-MBLNR Parameter value: MSEG-EBELN

Save

Sample of this message can be seen below.

No comments:

Post a Comment