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

authorization issue

HI,

How to assign the authorization group to program.How to put authorization check in the program?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 06, 2009 at 06:17 AM

    You mean to say ZProgram or Standard Program

    For Standard Program, you wil have inputs for PA,PSA, EG, ESG so simple authorization is sufficient

    But for Z PRograms,

    AUTHORITY-CHECK OBJECT 'P_ORGIN' FOR USER sy-uname

    ID 'PERSA' FIELD p_prarea.

    IF sy-subrc <> 0.

    DELETE git_select_option.

    CONTINUE.

    Regards

    ...Sadhu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 06, 2009 at 02:00 PM

    Authorization group is assigned to an ABAP object by going into program 'Attribute' and populate 'Authorization Group' field . Users would need to have the program name included in 'S_PROGRAM' authorization object to execute. You don't need to put authorization check for this within the program.

    Rgds.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 06, 2009 at 03:42 PM

    Is it a Customized program..? If so Does it uses the Logical database..??

    If it is a Customized program and uses the Logical database, then you do not need to maintain any authorization group for the program as the logical database would by default takes care of the authorization aspect.

    If it is a customized program which does not uses the logical database, then you are required to maintain the Auth grp.

    How it is maintained - SE38 > Enter Program and then goto Change Mode > The from the menu click on GOTO and then select the attributes > You will then have this field before you to maintain the Auth grp.

    The Authorization Check that you need to maintain in the program shall be as below :

    AUTHORITY-CHECK OBJECT 'P_ORGIN'

    ID 'INFTY' FIELD '*'

    ID 'SUBTY' FIELD '*'

    ID 'AUTHC' FIELD 'R' "read

    ID 'PERSA' FIELD XXXXXX (Where XXXXXX will be variable where the Personnel areas passed to the output are captured)

    ID 'PERSG' DUMMY

    ID 'PERSK' DUMMY

    ID 'VDSK1' DUMMY.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 05:41 AM

    Thanks experts

    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.