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

Authority check

Former Member
0 Likes
958

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

7 REPLIES 7
Read only

Former Member
0 Likes
917

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

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
917

Hi,

You need to create Authorization object and then in the transacion of the program you need to give the Authorization object.

Regards,

Sesh

Read only

Former Member
0 Likes
917

AUTHORITY-CHECK OBJECT 'S_TCODE'

ID 'TCD' FIELD sy-tcode.

IF ( sy-subrc NE 0 ).

MESSAGE e030.

ENDIF.

Regards

Gunjan

Read only

Former Member
0 Likes
917

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.

Read only

Former Member
0 Likes
917

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

Read only

Former Member
0 Likes
917

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