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

Authorization check

What is wrong? Even if the parameter pa_car is set to a person who does not exist, the system does not write "Not authority". Why???

AT SELECTION-SCREEN.

AUTHORITY-CHECK OBJECT 'S_CARRID'

ID 'CARRID' FIELD pa_car

ID 'ACTVT' FIELD '03'.

IF sy-subrc <> 0.

MESSAGE i398(00) with 'Not authority!'.

ENDIF.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 05, 2005 at 02:31 PM

    So far it is working good in my system.

    Regards,

    RIch Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2005 at 02:50 PM

    Hi Can you place that in Initialization event.

    regards

    vijay

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2005 at 06:48 PM

    You are doing this in AT SELECTION-SCREEN event and issuing an information message. Could it be that this message is overwritten by some other message that is happening later.

    Put a break-point at 'IF SY-SUBRC <> 0.' statement and see what the value is.

    I think this will not validate whether the carrier is valid or not. You have to do that in your code. This will only check if the user has permission to create/update/display the carrier.

    Srinivas

    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.