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

Do I need a custom authorization object for this?

Hi,

I want to implement a report. This report has 2 radio buttons on the selection screen. I want to program the report so that only certain group of users can run the report with first radion button selection and another group of user can run with second radion button selection.

I dont want to create 2 transaction code. My question is do I need to create a custom authorization object. If so can you guide how?

Thanks for reading

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 13, 2007 at 02:00 AM

    You can create your own Custom Authorisation Object from transaction SU20.

    After creating the Authorisation Object, use the code like this..

    authority-check object 'ZBUKRS'
                        id 'BUKRS'
                     field ZES_MAIL-BUKRS.
      if SY-SUBRC ne 0.
        message E138(ZSM) with SY-UNAME ' not authorized ' 'to use this transaction'.
      endif.

    Regards

    Gopi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2007 at 01:47 AM

    Yes ,you have to create custom auth object .

    check the below link for auth object :

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2007 at 03:33 AM

    It would really depend on whether you can distinguish those two groups of users some other way. For example, if you only want option "A" available to people who can (say) create sales orders then you could check in your code for access to the VA01 transaction via auth object S_TCODE.

    Jonathan

    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.