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
534

Hi

I Need to provide create,change,display for the activity field in the authorization object

Can i use this kind of statment .

AUTHORITY-CHECK OBJECT 'M_BEST_WRK'

ID 'ACTVT' FIELD '01'

ID 'ACTVT' FIELD '02'

ID 'ACTVT' FIELD '03'

ID 'WERKS' FIELD w_werks-ship_to_plant.

If not kindly advise how to allow all the activity in the same object

2 REPLIES 2
Read only

Former Member
0 Likes
447

Hi,

You can use this logic,ask the security(SAP) team to assign this object to the particulat plants what you

want.

Regards

Krishna

Read only

Former Member
0 Likes
447

HI

U follow like that..its very use ful for u

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.