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

Funtion Module for Authorization a table

Former Member
0 Likes
513

Hi ABAP Guns,

Can any one know the function module for Authorizing a Table.

Thanks & Regards,

Sudhir

5 REPLIES 5
Read only

Former Member
0 Likes
497

Can you please let us know what you meant by "Authorizing a table"? Are you trying to check if a user has authorization to maintain/display a particular table? If so, you have to do a AUTHORITY-CHECK in your code.


AUTHORITY-CHECK OBJECT 'S_DEVELOP'
         ID 'DEVCLASS' FIELD '__________'
         ID 'OBJTYPE' FIELD '__________'
         ID 'OBJNAME' FIELD '__________'
         ID 'P_GROUP' FIELD '__________'
         ID 'ACTVT' FIELD '__________'.

Read only

0 Likes
497

Hi Srinivas,

I would like to check whether the particular person is authorised to add or delete or modify the table.

I don't want to do the authorisation at feild level, i would like to have at Table level.

Thanks and regards,

sudhir

Read only

0 Likes
497

Create auth object at SU21 with fields TABLE,ACTVT and create role and profile in PFCG Transaction. now just assign in Su01 Profile.

call your auth object in your program.

Read only

0 Likes
497

If you know the AUTHORITY-CHECK statement, the FIELD referred in there doesn't mean the table field. Please read the documentation on AUTHORITY-CHECK if you use authorization object S_DEVELOP or create your own, you have to use it.

Read only

Former Member
0 Likes
497

Hi,

Try these threads, which were created of similar purpose:

1.

2.

3.

4.

Good luck. Reward if helpful!