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: 

Reg : Authority-Check

Former Member
0 Kudos
115

Hi Experts,

This is my code for Authority check,

I want only DISPLAY to be activated,

***INCLUDE ZZAUTH02. -


> Commented Line

AUTHORITY-CHECK OBJECT 'Z_KONH_KLS'

ID 'ZKALSM' FIELD KOMK-KALSM

ID 'ZSTUNR' FIELD KOMV-STUNR

ID 'ACTVT' DUMMY.

IF SY-SUBRC NE 0.

MESSAGE E609(VH).

ENDIF.

Plz help me

4 REPLIES 4

Former Member
0 Kudos
54

Hi,

You have to add this check also ..

FIELD '03'. <------- stands for 'Display'

AUTHORITY-CHECK OBJECT 'Z_KONH_KLS'

ID 'ZKALSM' FIELD KOMK-KALSM

ID 'ZSTUNR' FIELD KOMV-STUNR

ID 'ACTVT' field '03'.

IF SY-SUBRC NE 0.

MESSAGE E609(VH).

ENDIF.

Check table 'TACT' and 'TACTZ' for details on activities and the authorizxation object...

Edited by: sneha singhania on Jun 19, 2009 11:29 AM

0 Kudos
54

This message was moderated.

former_member555112
Active Contributor
0 Kudos
54

Hi,

Check for the display activity value also.

Regards,

Ankur Parab

Former Member
0 Kudos
54

Hi,

It will be great if you appreciate your contributors...