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: 

Function Module for authorization for ztable

Former Member
0 Kudos
90

Hi All,

I created one ZTABLE .I am adding,changing and delete data into that ZTABLE through program from upload one excel file.But before adding ,changing and delete data to that ZTABLE, first check whether that USER have authorization (Addition, Deletion or Modification) of a particular Ztable, If the user is NOT authorized, an appropriate message will be displayed and the program will return to the selection Screen.I heard about FM 'AUTHORITY_CHECK_TABL' But i dnt know how to pass parameters.If iam right then give me how to use that Function module.then i can proceed.If there are any other function modules ,please provide with examples then i can understand clearly.Please help me regards ASAP.

ABHI..

4 REPLIES 4

Former Member
0 Kudos
58

Try these threads, which were created of similar purpose:

1.

2.

3.

4.

0 Kudos
58

Hi Santhose,

I Study those documents before rise question in SDN form.Actually i need fuction module which can check wherther user have access to Del,Change and adding records into Ztable.I dont have access to SU21,SU03(Basis) .So i have to solve issue through function module and how to pass parameters with example.

Abhi....

Former Member
0 Kudos
58

Hi All,

Please help me out My Problem ASPA.

Abhi.

0 Kudos
58

Hi Abdul,

Please follow the steps:

Go to transaction SE54.

1. Create an authorization group.

2. After creating authorization group

You should assign authorization group for the table in question in the same transaction.

Now this has been done, you should use authorization object 'S_TABU_DIS' in the program

The usage is:

AUTHORITY-CHECK OBJECT 'S_TABU_DIS'

ID 'DICBERCLS' FIELD <authorizationgroup>

ID 'ACTVT' FIELD <activity>. 1 - creation, 2-modification, 3-display

IF sy-subrc NE 0.

MESSAGE e000(zxxx).

EXIT.

ENDIF.

You can speak with your basis admin for authorization to the users.

Just give the authorization group name, they will do it for you.

Thanks and regards,

S. Chandra Mouli.