Skip to Content

Authority check

Can some body explain me the below code...







I know that Object is the authority object..

what is ACTVT ? field 01 02 03 for c / v / display

what is CUSTTYPE and field B?

how to code if I want to add authorization to some field say ' it_itab-cost'.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 14, 2007 at 01:06 AM

    The ACTVT field indicates what kind of authority you want to check for. In this case 02 indicates that you are checking to make sure that the user has been granted the authority to change.

    The custtype field is a field defined in the authorization object 'S_TRVL_BKS', in this case this looks like a standard SAP authorization object. The security people when they setup this authorization object will configure it so that only certain CUSTTYPE's have the ACTVT = 02 setup which means only certain user will have the authority to change.

    So to summarize when the statement you have given is executed, this statement will check the configuration of authorization object 'S_TRVL_BKS' to see if the current user has the authority to change for CUSTTYPE = B. If the user does have the authority to change the sy-subrc will be zero, else it will be non-zero, in which case a message will be shown. If this helps please give points

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 08:50 PM


    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.