06-26-2008 6:03 AM
Hi,
Development team has created a Z-tcode, for which we need to restrict Access.
Restriction is based on company code.
we have created a role for this Z-tocde and assigned the required company code at Organizational level.
We have tried invoking the corresponding auth object from our program also.
But nothing seems working.
Can anyone guide me in this regard.
Thanks in advance,
Regards,
Sridevi
06-26-2008 7:22 AM
Hi Sridevi
Can you confirm that you have performed the following steps
1. Create custom authorisation object (with appropriate fields)
2. Coded AUTHORITY-CHECK for the custom object in the program with appropriate logic
3. Added custom object and values to role (adding it in SU24 is good but will not determine if it will work or not).
You can easily check to see if the check has been coded properly if you run an auth trace (ST01) for your custom program. If it doesn't appear in the trace then you need to get back to your developer and get them to code it properly
06-26-2008 7:10 AM
Hi Sridevi,
Have you attached z-tcode with the authorization object in SU24
Please do it if not so.Then you add the tcode in role again.object will be added again.
This is good and standard practice.
hope this helps
06-26-2008 7:22 AM
Hi Sridevi
Can you confirm that you have performed the following steps
1. Create custom authorisation object (with appropriate fields)
2. Coded AUTHORITY-CHECK for the custom object in the program with appropriate logic
3. Added custom object and values to role (adding it in SU24 is good but will not determine if it will work or not).
You can easily check to see if the check has been coded properly if you run an auth trace (ST01) for your custom program. If it doesn't appear in the trace then you need to get back to your developer and get them to code it properly
06-26-2008 9:00 AM
4. That the coded AUTHORITY-CHECK return code is reacted to by the program.