‎2008 Sep 29 8:28 AM
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.
‎2008 Sep 29 11:20 AM
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