Application Development and Automation 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: 
Read only

SAP authorization help ?

Former Member
0 Likes
593

Hello,

I've created a programm that will edit and display the specific tables ( z*) , Now I want to have 2 authorizations for editing and for displaying only ...This will be assigned to the 2 users . How can I do this in my programm and How can i create it using the transaction SU01, SU02 and Su03.

Thanks for your help

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
562

why you need a custom auth object. You can use standard auth object S_TABU_DIS Please check the following link

http://help.sap.com/saphelp_nw04/helpdata/en/1e/e867408cd59b0ae10000000a155106/content.htm

a®

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
563

why you need a custom auth object. You can use standard auth object S_TABU_DIS Please check the following link

http://help.sap.com/saphelp_nw04/helpdata/en/1e/e867408cd59b0ae10000000a155106/content.htm

a®

Read only

0 Likes
562

Hello,

Thank you for your quick answer.

Here I want to use the command AUTHORITY-CHECK to check the authorization for users:

I want that we have 2 roles:

1 role for editing the table

1 role for displaying only

So How can I do this ?

Read only

0 Likes
562

Hello,

you can create an auth object with two paramters

name_of_object , action

then you create two roles.

the values of the parameters for these two roles will be

change Role

name: Zobj name

action : 02

Display Role

name: Zobj name

action : 03

then you use the authority check in the code with the required values.

thanks,

Anju

Read only

0 Likes
562

  AUTHORITY-CHECK OBJECT 'S_TABU_DIS'
    ID 'ACTVT'     FIELD '03'  " Pass here value 02 or 03
    ID 'DICBERCLS' FIELD TDDAT-CCLASS.

a®