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

BATCH INPUT TO CHECK AUTHORIZATION

Former Member
0 Likes
505

Hi All,

Can anyone tell me how to code a small batch that will go into sap to ensure system authorizations are set?As the requirement is immediate,quick answers will be highly appreciated.

Rewards if useful.

Thanks n Regards,

Indu.

1 REPLY 1
Read only

Former Member
0 Likes
367

Hi,

What type of authorization check u need like tcode r any field.

U have follow like that.

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 TEXT-003 TYPE 'E'.

LEAVE PROGRAM.

ENDIF.

Regards:

Prabu