2009 Feb 18 3:02 PM
Hi,
I need to create an authorization check for a report. It means that I need to restrict the usage of the report to couple of users ( 'USER1' and 'USER2' ). How can I do that? I did read through a lot of threads regarding this piece got a bit confused and stuck while creating the authorization object.
Say the report name is ZHR_TIMEABC.
Can anyone explain how to create an authorization object and how are they tied to the object and call them in the abap code?
Thanks in advance,
VG
2009 Feb 18 3:06 PM
Check whether this is useful
You can have the authorisation for the particular program and check against this code below for the object S_C_FUNCT
AUTHORITY-CHECK OBJECT 'S_C_FUNCT'
ID 'PROGRAM'
FIELD sy-repid
ID 'ACTVT'
FIELD '16'
ID 'CFUNCNAME'
FIELD 'SYSTEM'.
Hi,
I need to create an authorization check for a report. It means that I need to restrict the usage of the report to couple of users ( 'USER1' and 'USER2' ). How can I do that? I did read through a lot of threads regarding this piece got a bit confused and stuck while creating the authorization object.
Say the report name is ZHR_TIMEABC.
Can anyone explain how to create an authorization object and how are they tied to the object and call them in the abap code?
Thanks in advance,
VG
2009 Feb 18 3:05 PM
Hi,
Refer to the link.
http://help.sap.com/saphelp_nw04s/helpdata/en/44/353d4bbae848a1e10000000a114a6b/frameset.htm
Regards
Rajesh Kumar
2009 Feb 18 3:06 PM
Check whether this is useful
You can have the authorisation for the particular program and check against this code below for the object S_C_FUNCT
AUTHORITY-CHECK OBJECT 'S_C_FUNCT'
ID 'PROGRAM'
FIELD sy-repid
ID 'ACTVT'
FIELD '16'
ID 'CFUNCNAME'
FIELD 'SYSTEM'.
2009 Feb 18 3:31 PM
Hi,
Thanks for the response. The link did not help me. From the threads, I read that we use transactions SU20, SU21 to create authorization objects and assign them to a group and then use the object in the abap code. It looks like the link gives a different info.
Correct me if I am wrong, I am new to this topic.
Thanks,
VG
2009 Feb 18 3:34 PM
S_C_FUNCT C calls in ABAP programs is the authorization object for programs
2009 Feb 18 3:40 PM
Hi,
Does this mean that I need not create any obijects using SU20 or 21 and just call this function in the program for authorization check?
VG
2009 Feb 18 3:45 PM
No, you dont have to create any authorization. Just use that as it is
2009 Feb 18 3:45 PM
2009 Feb 18 4:16 PM
Hi,
Thanks. Here is my understanding, S_C_FUNCT calls a system generated function module to make an authority check. So, if different users say USER1 and USER2 have different authroization levels, defined in their user profile, just adding this piece code will take care of authroization check for the program OR do I need to take care of something else?
If so, when do we need to create the authorization objects using SU20 and assign the group and follo this process? When do we use this approach ( lot of threads on authority check have mentioned this procedure)?
Your inputs will be helpful to understand this concept.
Thanks,
VG
2009 Feb 18 4:22 PM
[SAP HELP|http://help.sap.com/saphelp_40b/helpdata/es/34/55cada98482bc0e10000009b38f91f/content.htm]
2009 Feb 18 5:05 PM
Hi,
Thanks. I got the info. In that case when do you create custom authorization objects and assign the group to it?
VG
2009 Feb 18 5:47 PM
for some data elements for which you donnot have a SAP standard Object... maybe a zfield...etc..
2009 Feb 18 5:59 PM
Thanks for your continued help. In that case, if I understand this right, if we need to do authorization check for some custom tables or custom data fields you need to create custom authorization objects and proceed however for reports or interfaces using the S_C_FUNCT will handle the authority check and should be enough.
In that case, even for my custom report I do not have to create custom authorization objects the standard S_C_FUNCT object should be enough. Right?
Thanks again,
VG
2009 Feb 18 6:03 PM
authority check is data element specific... dont think too much, just remember it.. hit F1 on authority check for more and more info J@Y
2009 Feb 18 6:24 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |