Showing results for 
Search instead for 
Did you mean: 

Attach copy of purchase order when it's changed in ME22N

0 Kudos

Hello all,

When a change is made to a Purchase order, ME22N, a copy of the print version of the po is saved under the Attachment List in the po Services for Objects area.  This only works when we use the standard SAP processing routine, SAPFM06P, set up in the NACE transaction. 

We copied and modified this program and the copy of the po doesn't attach when we use the custom program. We found that the update is done in a call to FM RV_MESSAGE_UPDATE.  I have debugged the code and I can't find a difference between using the SAP program as a processing routine and using our custom version.  The update, as I mention in an answer below, is done in Include MM06EF0B_BUCHEN, FORM BUCHEN. 

So, any ideas as to why this won't work when using a custom processing routine? 

Points will be awarded and eternal gratitude given.  🙂 



Thank you 

#Services for Objects
#Attachment List




View Entire Topic
0 Kudos

The code where the attachment occurs is in Include MM06EF0B_BUCHEN in SAPLMEPO.  In Form BUCHEN, there is a function module, ME_MESSAGES_UPDATE, that adds a copy of a PDF of the purchase order to the attachment list when a change is made, in this case it was ME22N.

Points to my coworker for finding it. 

Hope this helps someone else someday.