Mail Sending On PO Release
Earlier i made enhancements in user exit ZXM06U44 for sending mail to vendor when PO is made.
In that mail i am sending the PO data to vendor including Line item data also.
Now user wants the same only when PO is released and not on PO Creation.
I made the respective changes for the same.
Now the data in the mail is not comming and now i came to know that when we use Transaction ME29N to release PO, the user exit is triggered but as does not contains any line item data, it contains only Header data.
Thats why it is sending mail but with no data.
Now how could i get the data since my loop is on line item.
Can i make one Z Table and on PO creation, insert the data into that.
When ME29N Transaction triggered, get the data from that Z Table and put in ASN File and send that through mail.
Any other solution for this?
Please help in solving the problem.