Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Company AUTH object for Z-Tocdes

sridevi_p
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

4. That the coded AUTHORITY-CHECK return code is reacted to by the program.