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

Authorization object

Hi !

please guide , i am required to add an authorization object in the custmized report .

Reagrds

Sheetal

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 09:37 AM

    Hi,

    Use the logic below:

    AUTHORITY-CHECK OBJECT <Authorization Object>

    ID <field name> FIELD <value>.

    IF sy-subrc 0.

    • Take action for no Authorization

    ENDIF.

    Regards,

    Dİlek

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      AUTHORITY-CHECK OBJECT 'P_ORGIN' for user sy-uname

      ID 'INFTY' FIELD '*'

      ID 'SUBTY' FIELD '*'

      ID 'AUTHC' FIELD '*'

      ID 'PERSA' FIELD '*'

      ID 'VDSK1' FIELD '*'

      ID 'PROFL' FIELD '*'

      ID 'PERSG' FIELD '*'.

      If sy-subrc NE 0 .

      leave to screen 0.

      endif.

      PERSA can be used for personnel area restriction.

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.