06-02-2006 10:02 PM
Hi All,
I need to block any item who comes from different cost center than initial one when creating a purchase requisition (me51n). In other word, I need to make sure all items in one PR belong to same cost center. What is the best way to do it? I did some research and figure out badi ME_PROCESS_REQ_CUST could be used.Could anyone here tell me how to use this badi to compare the costcenter of different item in one requisition before saving it? Or using User Exit is simpler? I am a neophyte for SAP programming so could you provide more details?
Thanks in advance.
06-02-2006 10:29 PM
Hi Biao,
Have you looked this user exits <b>M06E011</b> - Activation of requisition block?
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
06-02-2006 10:29 PM
Hi Biao,
Have you looked this user exits <b>M06E011</b> - Activation of requisition block?
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
06-05-2006 3:33 PM
Hi, Ferry,
Thanks for reply, are you sure that is the right name of the user exit? I can not find any thing like m06e011. Could you show me step by step?
Thanks
Biao
06-05-2006 3:39 PM
hi biao
just search for the string PERFORM USEREXIT in the main program of ME21N transaction.it will give you a list of user exits available.if none matches then search for the customer exits in the same main program by searching for the string CALL CUSTOMER.if found you can implement it in the transaction CMOD..
Cheers,
Abdul Hakim
mark all useful answers...
06-05-2006 3:45 PM
Hi, Abdul,
Thanks for reply
I need an exit for me51n not me21n. Second, how I can find the main program? Thanks.
Biao
Message was edited by: biao cai
06-05-2006 4:02 PM
Hi Biao,
Sorry ... typo error. It should be <b>MM06E011</b>.
You can use t/code SMOD and CMOD to find.
For other easy way to find user exits, please check this links.
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/ab038.htm
Regards,
Ferry Lianto
Please reward points if helpful.
06-06-2006 2:29 PM
Hi, Ferry
Thanks for your reply. I don't have this exit. My version is enterprise 4.7 set 20. Do you have other idea?
Biao
06-06-2006 2:29 PM
Hi, Ferry
Thanks for your reply. I don't have this exit. My version is enterprise 4.7 set 20. Do you have other idea?
Biao