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

Authorisation Check

Former Member
0 Likes
535

can anyone through some light on authorisation checks for a particular fireld?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
502

how to check that a user has the correct authority for a particular

transaction code. Useful to check if a user has the correct authority before executing a transaction via

BDC input.

E.g

authority-check object 'S_TCODE'

id 'TCD'

field 'SM35'.

if sy-subrc ne 0.

  • User does not have authority for transaction SM35!!!

endif.

3 REPLIES 3
Read only

Former Member
0 Likes
503

how to check that a user has the correct authority for a particular

transaction code. Useful to check if a user has the correct authority before executing a transaction via

BDC input.

E.g

authority-check object 'S_TCODE'

id 'TCD'

field 'SM35'.

if sy-subrc ne 0.

  • User does not have authority for transaction SM35!!!

endif.

Read only

0 Likes
502

You can use authority check for a particular Sales Organization, distribution channel, Division as below,

AUTHORITY-CHECK OBJECT 'V_VBAK_VKO'

ID 'VKORG' FIELD '__________'

ID 'VTWEG' FIELD '__________'

ID 'SPART' FIELD '__________'

ID 'ACTVT' FIELD '__________'.

u can find object in su21. if object it not there u can make it.

http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dbaccb35c111d1829f0000e829fbfe/frameset.htm

Read only

0 Likes
502

thanks for the prompt reply,

if i want to put an authorisation check for a particular field in a tranasaction? how will i do it?

forexample in T.Code ff6b field archiving category need an authorisation check. how will i do it?

thanks and rgds,GIRI