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

AUTHORITY-CHECK

Former Member
0 Likes
341

Hi, Abapers

How can I check authority of a specified database access like MKPF.

I can check authority of specified tcode using by following codes.

AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD P_TCODE.

IF SY-SUBRC NE 0.

MESSAGE S261(SF) WITH P_TCODE.

ELSE.

CALL TRANSACTION P_TCODE.

ENDIF.

To check data base access what object and ID will have to pass.

Appreciating any help.

Regards

Rajiv singh.

Hi, Abapers

How can I check authority of a specified database access like MKPF.

I can check authority of specified tcode using by following codes.

AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD P_TCODE.

IF SY-SUBRC NE 0.

MESSAGE S261(SF) WITH P_TCODE.

ELSE.

CALL TRANSACTION P_TCODE.

ENDIF.

To check data base access what object and ID will have to pass.

Appreciating any help.

Regards

Rajiv singh.

1 REPLY 1
Read only

Former Member
0 Likes
304

Hi,

You can use the authority object S_TABU_DIS.

The parameters are:

DICBERCLS = 'MA' "Authority Group

ACTVT = '03'

Cheers,

Aditya