Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ME22N User Exit

Former Member
0 Likes
1,445

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,394

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

8 REPLIES 8
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,394

Hi Davis,

Check with badi this will trigger ME_PO_PROCESS_CUST .

Regards,

Madhu.

Read only

Former Member
0 Likes
1,395

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

Read only

Former Member
0 Likes
1,394

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.

Read only

eduardo_hinojosa
Active Contributor
0 Likes
1,394

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

Read only

surajarafath
Contributor
0 Likes
1,394

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

Read only

Former Member
0 Likes
1,394

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

Read only

0 Likes
1,394

You are correct we are wrong . Go to se18

BADI ME_PROCESS_PO_CUST

 IF_EX_ME_PROCESS_PO_CUST~PROCESS_ACCOUNT

Read only

0 Likes
1,394

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