You must enable GUI scripting feature of SAP in both Client and Server end, before you start recording the UI.
To enable GUI scripting on the Client side,
Click the icon and select Options.
In the Accessibility and Scripting drop-down, select Scripting.
In the User Settings field, check the Enable Scripting checkbox.
To enable the Profile parameter, sapgui/user_scripting,
In the T_CODE bar, enter the transaction code RZ11 and press the Enter key on the keyboard.
Specify the Parametername as sapgui/user_scripting.
Click the Display button.
In the Current Value of Parameter sapgui/user_scripting field, if the value of the Current Value field is FALSE, change it to TRUE.