Application Development 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: 

check costcenter in me51n

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

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.

7 REPLIES 7

ferry_lianto
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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...

Former Member
0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

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