‎2011 Nov 18 3:16 PM
Hello all,
I'm currently doing a project that whenever a person goes in and makes a change to a purchase order via ME22N, I need to read the change log and email a group of people about the change. The problem I'm having is finding the user exit. I've tried researching and putting breakpoints in at several SAPMM06E exit FMs. I've tried looking for ME_GUI_PO_CUST but am not having much luck. I haven't worked with purchase orders much. Every place I try to put a breakpoint, it never gets triggered. Can someone please point me in the right direction?
Thanks,
Curtis
‎2011 Nov 18 3:48 PM
Hi,
If it is not possible the way you are trying, why don't you schedule a background job programatically. This job would run after, may b 5-10 seconds of sy-uzeit. Check the change log in the table CDHDR and CDPOS and trigger the mails as desired.
Regards,
Sagar
‎2011 Nov 18 3:43 PM
Hi Davis,
Check with badi this will trigger ME_PO_PROCESS_CUST .
Regards,
Madhu.
‎2011 Nov 18 3:48 PM
Hi,
If it is not possible the way you are trying, why don't you schedule a background job programatically. This job would run after, may b 5-10 seconds of sy-uzeit. Check the change log in the table CDHDR and CDPOS and trigger the mails as desired.
Regards,
Sagar
‎2011 Nov 18 4:05 PM
Perhaps you can think of other ways, than doing such a custom logic in a general transaction like purch order change transaction?
Like say monitoring CDHDR/CDPOS for purchase order object?
Just saw, Sagar gave the same suggestion. I had this window opened for long while I got engaged into something else.
‎2011 Nov 18 4:50 PM
HI
Use pointers (tcodes BD50, BD52 and so on). See for instance SAP Note 1139020 - Checklist: Change pointer in the material master as an example. Use the records in table BDCP and use the FM 'ME_CHANGEDOC_SHOW' to list the changes. You can use jobs (SM36) using distribution lists to send the lists by email.
I hope this helps you
Regards
Eduardo
‎2011 Nov 18 5:43 PM
Ue the badi ME_PO_PROCESS_CUST and method is process_account . Then put the break point there, it will get triggered. When user changes the item of the PO
‎2011 Nov 18 6:17 PM
Lots of good ideas everyone. If I can't figure out the user exit, I'll definitely look into the change log monitoring.
For those mentioning ME_PO_PROCESS_CUST, I went to both SE18 and SE19 and put that in. It says that it does not exist. We are running an ECC 6.0 with NW 7.00 system if that matters. Am I using the wrong Tcode to get to it?
Thanks,
Curtis
‎2011 Nov 19 4:19 AM
You are correct we are wrong . Go to se18
BADI ME_PROCESS_PO_CUST
IF_EX_ME_PROCESS_PO_CUST~PROCESS_ACCOUNT
‎2011 Nov 19 6:10 AM
Hi Curtis,
I think the best solution to your case is using workflow Event management,
1) BUS2012 is the purchase order business object
2) CREATED event is triggered for every change made to the purchase order
3) you can create your own event under a extended business object of BUS2012 using SWO1 txn and you can use SWEC trxn for choosing the fields which you want to consider for triggering the email.
4) Create a mail step/task using PFTC txn and attach the event as triggering event.
If you are new to workflows and business object this may sound bit of complex solution, but this is the solution without any coding and best and recommended solution for your requirement.
Cheers,
Edited by: prasanna j on Nov 19, 2011 11:40 AM