‎2006 Nov 30 8:20 AM
Hi,
could you please tell me how to Authorize a executable program according to the Login User name.
In other words how to write authority check in the program.
second question is can i restrict a user based on his computer name (terminal name), how to do that.
Pls help me
‎2006 Nov 30 8:21 AM
‎2006 Nov 30 8:23 AM
Hi,
You should have a authority object for this in order to restrict the execution based on user id,
authority object will be created by BASIS team.
you can implement it in your program using AUTHORITY-CHECK,
click on PATTERN, you have an option for AUTHORITY-CHECK give the object name there .
FIELD value determines the restriction level,
01->create
02->change
03->display .
Regards,
Raghavendra
‎2006 Nov 30 8:24 AM
Hi,
You need to create Authorization object and then in the transacion of the program you need to give the Authorization object.
Regards,
Sesh
‎2006 Nov 30 8:41 AM
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD' FIELD sy-tcode.
IF ( sy-subrc NE 0 ).
MESSAGE e030.
ENDIF.
Regards
Gunjan
‎2006 Nov 30 8:42 AM
Whenever a transaction is started, the kernel uses the transaction code as the value to check against the authorization object. This check always takes place (from Rel. 3.0E) and cannot be deactivated by the developer.
‎2006 Nov 30 8:51 AM
Hi,
you can pass the User Id to check for authorization .
authority-check object 'ZXXXXXX'
id 'USER' dummy ( Login User name)
Instead of name dummy pass the login user name
Regards
Yamini
‎2006 Nov 30 8:57 AM
ok i got the answer partially
my question now is can i restrict the users authorization based on the terminal that is the PC name ( for eg in network every pc will have a pc name).
for eg in sm04 tcode we have something terminal name.
can we restrict the user based on the terminal name