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

authorization check

hi everybody

i have to allow only some of the users to change the checkbox 'Check'.I created the authorization object 'Zsample'.Plese tell me how to write the code to stop the other users to change this checkbox.

thanx in advance.

Giri.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 07:24 AM

    Hi giri,

    i use it in this way:

    AUTHORITY-CHECK OBJECT 'Z_REPORT'

    ID 'PROGRAM' FIELD 'ZS'

    ID 'ACTVT' FIELD '16'.

    IF SY-SUBRC <> 0.

    MESSAGE E010 WITH 'Sie haben keine Berechtigung!'.

    EXIT.

    ENDIF.

    Regards, Dieter

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 07:38 AM

    It can look as follows:

    tables SSCRFIELDS.

    PARAMETERS: p_chxbox as checkbox USER-COMMAND CHCK.

    at selection-screen.

    if SSCRFIELDS-ucomm eq 'CHCK'.

    authority-check....

    ....

    if sy-subrc ne 0.

    message e(...)

    endif.

    endif

    start-of-selection.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2006 at 07:28 AM

    Hi giri,

    try like this..

    AUTHORITY-CHECK OBJECT 'ZSAMPLE'

    ID 'TCD' FIELD '*'

    ID 'Check box' FIELD 'p_chk'.

    regards,

    Nagaraj

    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.