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

Authority Problems

Authority Problems

Posted: Dec 16, 2008 6:36 PM E-mail this message

If anyone is particularly knowledgeable about how authorizations work in SAP ECC 6.0 please help me out.

I have copied a program from an old system ECC 4.6 into ECC 6.0 and got a dump because the parameters had changed in the subroutine Authority_Begin.

This is in the Functiongroup RSAQEXCE.

-

-


FORM AUTHORITY_BEGIN

-

-


Anfang der Berechtigungsprüfung

-

-


form authority_begin using p_auth_classname type AQS_CLSNA.

nicht bei generischen BW Extraktoren

if %memmode = 'D'.

exit.

endif.

perform authority_init using p_auth_classname.

call method iref->access_authority_begin.

endform. "AUTHORITY_BEGIN

I need to provide this subroutine, and a few others with p_auth_classname type AQS_CLSNA.

Which as I understand it is jsut the name of the authorization class. Since I only copied the program I have no idea who should or shouldn't be using it and also where to supply the name of this authorization class. Should I create my own authorization in transaction PRGN? OR can I somehow provide the authorization of the person who is calling the program?

Any help would be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2008 at 08:35 AM

    Hi John

    Try this code

    DATA: P_AUTH_CLASSNAME type AQS_CLSNA

    *PERFORM AUTHORITY_BEGIN(RSAQEXCE).

    *PERFORM AUTHORITY(RSAQEXCE) USING 'GLPCT'.

    *PERFORM AUTHORITY_END(RSAQEXCE).

    PERFORM AUTHORITY_BEGIN(RSAQEXCE) using p_auth_classname.

    PERFORM AUTHORITY(RSAQEXCE) USING 'GLPCT' p_auth_classname.

    PERFORM AUTHORITY_END(RSAQEXCE) using p_auth_classname.

    Thanks and Regards,

    Syf

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 10:50 AM

    Thanks for the advice! I have solved the problem already though. There was a default class hidden in the comments of the codeing that could be given as a parameter.

    Edited by: John Irving on Dec 19, 2008 11:50 AM

    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.