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

authority-check object 'A_S_GSBER'

Hi,

Can samebody send me an example how to use this object ?

authority-check object 'A_S_GSBER'

id 'BUKRS'

id 'GSBER'

Rimas

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 06:56 AM

    Hi,

    Here i am sending authority check for plant checking. same u can check for ur fields also. all authority checks are available in SU21 transaction....

    reward me a points if is it use full answer

    AUTHORITY-CHECK OBJECT 'M_MATE_WRK'

    ID 'WERKS' FIELD WA_PLANT-WERKS "plant

    ID 'ACTVT' FIELD '01'. "activity

    *

    IF sy-subrc <> 0. "User has no auth. for & &

    <FS>-MESSAGE = 'You are not authorized for this Plant'(004).

    V_ERRORS = V_ERRORS + 1.

    CONTINUE.

    ENDIF.

    ELSE.

    <FS>-MESSAGE = 'Invalid Plant'(005).

    V_ERRORS = V_ERRORS + 1.

    CONTINUE.

    ENDIF.

    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.