Last Updated: Apr 27, 2020
The SAP UI node is used to automate the SAP applications which contains data grids, tables, and trees. SAP UI node is used to automate SAP applications.
Before designing a task using SAP UI node, it is necessary to do the following:
In order to use the GUI scripting feature of SAP for SAP automation, the user must make sure that scripting enabled at 2 places:
To enable GUI scripting on the Client side,
In the User Settings section, check the Enable Scripting checkbox.
Make sure that the rest of the checkboxes are unchecked to avoid prompts when Jiffy connects to SAP.
Click on the OK button to save.
To enable the Profile parameter, sapgui/user_scripting_set_readonly,
In the T_CODE bar, enter the transaction code RZ11 and press the Enter key on the keyboard.
Contact the administrator in case there is no authorization to do this.
Specify the Parametername as sapgui/user_scripting.
Click on the Display button.
In the Current Value of Parameter sapgui/user_scripting section, if the value of the Current Value field is FALSE, change it to TRUE.
Click on the Save button.
Specify the Parametername as sapgui/user_scripting.
Click on the Display button.
In the Current Value of Parameter sapgui/user_scripting section, if the value of the Current Value field is FALSE, change it to TRUE.
Click on the Save button.
Specify the Parametername as sapgui/user_scripting_set_readonly.
Click on the Display button.
In the Current Value of Parameter sapgui/user_scripting_set_readonly section, if the value of the Current Value field is FALSE, change it to TRUE.
Click on the Save button.
Specify the Parametername as sapgui/user_scripting_disable_recording.
Click on the Display button.
In the Current Value of Parameter sapgui/user_scripting_disable_recording section, if the value of the Current Value field is FALSE, change it to TRUE.
Click on the Save button.
Specify the Parametername as sapgui/user_scripting_force_notification.
Click on the Display button.
In the Current Value of Parameter sapgui/user_scripting_force_notification section, if the value of the Current Value field is FALSE, change it to TRUE.
Click on the Save button.
Restart the SAP Logon application to apply the changes.
Jiffy UI automation framework allows user to automate user interface pages for any application. Consider a scenario of automating a SAP application.
To start with SAP UI automation, the user must create an application first. To create an application, do the following:
To create a new SAP Application, click on the New SAP Application radio button.
Add the following details:
Leave cluster name blank when the task is being executed using a [Developer BOT](/admin_guide/tenant-admin-activities/bot-management/developer-bots/).
Alternatively, select any existing SAP application in the SAP Application drop-down if it matches the criteria of the user.
Click on the CREATE & RECORD button to create the SAP application and begin recording the SAP application.
After the App and the Configuration are created, if the App name is **Demo**, the name of the **Configuration** name will be concatenated with the App name and type of UI automation. Eg: Demo_sap.
Double-click on the SAP UI node and then click on the Configurations tab.
Select any existing configuration in the Configuration drop-down if it matches the criteria of the user or create a new configuration. The user can also edit, copy or delete the existing configuration by clicking on the Edit, Copy and Delete icons displayed against each configuration, respectively.
Click on the + icon to create a new configuration if required.
Add the following details:
After creating the SAP application, the steps for automation need to be recorded. Recording can be either of the following ways:
Click on the CREATE & RECORD button while creating a new Application.
After the recording begins, a Jiffy UILearn tab opens. Do the following to continue with the recording:The Developer Bot must be running while recording the SAP application. Read how to start the Developer Bot here.
On clicking the RECORD button, a floating window of Jiffy UILearn opens for recording the actions performed on the required fields in the SAP application based on the URL mentioned in the Configuration tab which will be captured as the UI controls on creating an application.
The UI Learn floating window can be minimized, maximized and closed using the buttons provided on the right top corner of the Jiffy UILearn floating window.
If GUI scripting has been enabled properly on the client and the server, the HIT Switch button for familiarization will appear on the bottom-right corner of the UI Learn application.
Click on the HIT Switch button on the Jiffy UILearn floating window to perform the recording.
Give a name for the Screen Ex: Screen1
Learn the UI elements by placing the mouse pointer on the required field and then pressing the ctrl key. The selected UI element will be highlighted the in Red colour.
The controls familiarized will be listed under the Screen1 screen. The names and actions of the controls can be edited as required.
Click on the Stop Recording button on the Jiffy UILearn floating window after recording is completed.
Edit the lines of action that are recorded to finetune the performance of the SAP application as required. Read how to Design the SAP application.
Refer to SAP With Login & Logoff Nodes sample task to know how to use SAP node in a task.