Skip to Content
author's profile photo Former Member
Former Member

Authorization object not to allow certain user to enter sloc PO

Dear All,

i have manage to go su21 to create under mm purchasing authorization object called Y_BEST_LOC with Acty and LGORT field. other than that i have insert check item under program RM06ENHI. after that i go to su24 to assign the transaction code check for me21 and me22. under field value for me21, my new object i want to assign value (interval) = $LGORT, but don;t know how so i leave it blank.

Come to user profile i adding this object into the authorization to check, and put in only allow for 0001 and 0002 location. But the user still can save the PO when choose 0004 without error. I want to know missing step that should be done to prevent certain user to order under 0004 storage location.

Kindly suggest and guide me. thanks in advance

Regards

Aishah

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jan 20, 2012 at 05:28 AM

    ME21/ME21N doesn't even check if the material is extended to the storage location entered in the PO. I don't think what you did is enough to restrict users per storage location, you need to find a user exit or BAdi and do the authorization check in the your custom code

    AUTHORITY-CHECK OBJECT 'Y_BEST_LOC'
             ID 'ACTVT' FIELD '01'  "Create
             ID 'LGORT' FIELD '0002'. "Storage Location 0002
    
    IF SY-SUBRC = 0.
     " User has authorization
    ELSE.
    message 'Not authorized for storage location' type E
    ENDIF.
    

    You may have to use the following Business Add-in (TCode SE18)

    ME_CHECK_ALL_ITEMS : Run Through Items Again in the Event of Changes in EKKO

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2012 at 04:39 AM

    hi

    check is there any user exit or badi can be used.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 20, 2012 at 05:14 AM

    Hi Aisha,

    After Changing the Authorization have you Generated the role once again?

    Regards,

    Yawar Khan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.