‎2009 Feb 20 5:24 AM
Hello All,
I have to implement a sample code which will filter out activities according to user authorization. Please help me in this regard.
Thanks in advance.
Paul.
‎2009 Feb 20 5:26 AM
hello,
check this
AUTHORITY-CHECK OBJECT object "where object needs to be first created in SU21
ID name1 FIELD f1
ID name2 FIELD DUMMY "pass DUMMY if u dont want to use dat field for check
u2026
ID name10 FIELD f10.
Thank u,
santhosh
‎2009 Feb 20 5:28 AM
Hi:
have a look
[Link|http://help.sap.com/saphelp_bw21c/helpdata/en/52/6712ac439b11d1896f0000e8322d00/content.htm]
Regards
Shashi
‎2009 Feb 20 7:19 AM
Hi,See the below code and write as per your need.
INITIALIZATION.
AUTHORITY-CHECK OBJECT 'ZPRCHK_NEW'
ID 'TCD' FIELD SY-TCODE
ID 'BUKRS' DUMMY
ID 'PRCTR' DUMMY
ID 'SPART' DUMMY
ID 'WERKS' DUMMY
ID 'VKORG' DUMMY
ID 'EKORG' DUMMY.
IF SY-SUBRC NE 0.
MESSAGE I000(VZ) WITH TEXT-002 SY-TCODE .
LEAVE PROGRAM.
ENDIF.
Regards
rajendra
‎2009 Feb 23 3:38 AM