‎2011 Dec 29 5:22 AM
Dear Abapers,
we have created 4 module pool program with 4 different t-code.
we have clubbed this 4 t-code in one new window
|_________________
| tcode1
| tcode2
| tcode3
| tcode4
|_________________
we need to call a tcode based on authorization
who hav a authorization of company code, plant, project, purchasing group and profit center those only should get the
authorization to call the above 4 tcodes.
when user press the pushbutton on the screen we have to check the authorization
if it satisfy the above criteria then only the corresponding screen should be called.
Regards,
Praphull
‎2011 Dec 29 5:28 AM
‎2011 Dec 29 6:02 AM
‎2011 Dec 29 6:16 AM
Debugg the program , in command file put /h then click on tcode1 then debugger will start ,then u can find the authorizations where exact ally check .
Example it will be like this
select * ztable where username = sy-unmae.
if sy-subrc ne 0.
message s000(zz) with 'you are not authorized to access this code'.
else.
call transaction ztcode1.
end if.
Hope this will help you ,
Regards
Siva
‎2011 Dec 29 6:42 AM
‎2012 Jan 11 12:26 PM