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

Authority check ( USER - TRANSACTION )

Hi guys .

I have to check if a SAP user is autorized to some transaction .

So i have to do an Authority-check for that transaction .

I don't know wich parameter i have to pass in the authority check .

Can someone help me please ???

ragards.

Dario

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Dec 06, 2004 at 09:08 AM

    The simple way is to debug standard transaction which work in the same domain.

    Or you can check the list of paramters with the transactions : SU20 SU21

    Frédéric

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2004 at 09:14 AM

    This help would be very useful for you :

    http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

    ABAP Programming Language --> Special Techniques --> Checking Authorisations

    All information is very nicely explained, here with screen shots. So how well, I try to explain , you will miss the screenshots.

    Regards,

    Subramanian V.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2004 at 09:16 AM

    If your particular need is checking authorization for a transaction code then you can use authorization object 'S_TCODE'. It has the only field TCD. Code snippet is:

    AUTHORITY-CHECK OBJECT 'S_TCODE'

    ID 'TCD' FIELD 'VF01'.

    Message was edited by: Sergei Korolev

    Message was edited by: Sergei Korolev

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 06, 2004 at 09:21 AM

    Hi,

    You need the following code in your program.

    authority-check object 'S_TCODE'

    id 'TCD' field '<transaction code>'.

    if sy-subrc <> 0.

    error message.

    endif.

    Regards

    Raja

    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.