Skip to main content

How to Set User Specific Settings to Run GUI Script

Background:

When user turns on the GUI Scripting on SAP server, it is usually enabled for the all the users. However, if user wants to enable GUI Scripting only for specific user(s). User can achieve that using profile parameter “sapgui/user_scripting_per_user”.

To enable user specific settings for GUI script, in SAP assign profile parameter / Authorization object, please follow the these steps:

Authorization Object:

Sr No.

Object Type of Object Set value
1 S_SCR Authorization Object Execute (16)

Profile Parameter:

Sr No. Parameter

Set Value

Description
1 sapgui/user_scripting TRUE

When parameter is set to TRUE, the scripting functions can be used with a GUI. The default value of the parameter is FALSE so that scripting to the system is not possible.

2  sapgui/user_scripting_per_user  TRUE

To have GUI Scripting enabled for selective users, set this profile parameter as TRUE

Authorization Object: S_SCR value maintenance in SAP.

Behavior of Above Setting in SAP:

  • Once profile parameter (sapgui/user_scripting_per_user) assigned in SAP system, all users cannot record or run the GUI script. It will allow only the user who has S_SCR authorization object.

sapgui/user_scripting_disable_recording (Profile parameter):

  • If this profile parameter is set in the system to ‘TRUE’, Recording restricted and users can only run the GUI script. This parameter is applicable for all the users.

Please refer to point B of Best Practices for Managing Process Runner Related Authorization in SAP for user specific authorization for GUI Scripting.

Was this article helpful?

We're sorry to hear that.