12-17-2008 8:23 AM
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.
12-17-2008 8: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
12-17-2008 8: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
12-19-2008 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