Choose a creation method and log on to SAP
Always record and test your script in a non-production SAP system. For the highest-quality recording, click only the SAP fields you want to include in the script. If you want to create a loop, be sure to type the first line item in the correct location for recording that Fiori app, and then click Insert Row, Create item, or Page down. It's good to record two line items, so that you can see the repeatable pattern.
- Click the File tab, and then click New.
- Click GUI for HTML, and select one of the following.
- Create from SAP Easy Access Menu: Follow the steps listed in Create from SAP Easy Access Menu.
- Create from SAP GUI for HTML app: Follow the steps listed in Create from SAP GUI for HTML app.
- Complete the required steps as per your selection.
- Click OK.
Create from SAP Easy Access Menu
When you select Create from SAP Easy Access Menu, follow these steps.
- To create script from SAP Easy Access with the web version of SAP Logon pad.
SAP Shuttle Logon wizard opens when there is no
system saved. In the WebUI System Details enter the
details and Click OK. In the Instructions for
creating a script from SAP Easy Access Menu, enter the following
details:
- SAP system
- Launchpad Address
- Client
- Language
- Data type
Click Advanced SAP Logon to save the system details.
Tip: To fetch the Launchpad Address URL, Login to the SAP Logon application on your machine and connect to the desired server. Search webgui in the drop-down and it redirects to SAP Easy Access URL. - On the SAPNetWeaver screen enter the details and click OK.
- In the Record Web UI or SAP GUI App window,
Enable menu settings to show T-codes in the drop down for SAP Easy Access.
- In the Menu drop down, click Settings.
- Expand Interaction Design option, and select Visualization.
- In the Header Area, enable the toggle for Show OK Code field.
- Click Save.
- Select the SAP GUI app and enter values in the fields that you want to include
in the script.Note:
- Click Discard Recording, to stop the recording without finishing the script.
If the user has logged into the Fiori system previously using the browser, automatic login might occur due to stored cookies. Delete the cookies from the DesignTimeCookies folder if credentials are not requested (C:\Users\<username>\AppData\Roaming\WinShuttle\DesignTimeCookies).
- Enter data and click Post or Save on the SAP app
and then close the Record Web UI or SAP GUI App
window.
For the next step, see Map the fields.
If you make a mistake and decide to click Cancel in SAP, you can delete the script after it opens by clicking File, clicking New, clicking GUI for HTML, and then clicking Discard All Changes in the Save box.
Create from SAP GUI for HTML app
- On the SAP Shuttle Logon screen, the following details
are displayed. Fill these details and click OK.
- Connection Name
- Launchpad address
- Client
- Language
- To create script from GUI for HTML apps with Fiori launchpad. SAP
Shuttle Logon wizard opens. In the WebUI System
Details enter the following credentials:
- Fiori system
- Launchpad Address
- App ID
- Client
- Language
- Data type
Click the Advanced Fiori Sign in box to add details.
In the Data type box, choose the type of data file you want to use—an Excel worksheet.
- To use an existing data file for your script, check the I have an existing data file box, and then click the folder icon next to the Data file box and browse to the file that you want to use.Note: If the data file contains any PivotTables, 3-D charts, or custom XML, the file will open in read-only mode.
- To automatically map the fields to the data file, check the Auto map when recording is finished box.
- Click Start Recording. Note:
- Click Discard Recording, to stop the recording without finishing the script.
If the user has logged into the Fiori system previously using the browser, automatic login might occur due to stored cookies. Delete the cookies from the DesignTimeCookies folder if credentials are not requested (C:\Users\<username>\AppData\Roaming\WinShuttle\DesignTimeCookies).
- Enter data and click Post or Save on the SAP app and then close the Record Web UI or SAP GUI App window.
For the next step, see Map the fields.
If you make a mistake and decide to click Cancel in SAP, you can delete the script after it opens by clicking File, clicking New, clicking GUI for HTML, and then clicking Discard All Changes in the Save box.
When recording scripts for SAP GUI for HTML and the Easy Access menu, the sequence of fields in the mapper grid batches may vary. These variations result from network calls, internet speed, and system environment.
Ensure the validation-related call is recorded during script recording for successful execution.
Click Discard Recording, to stop the recording without finishing the script.
If the user has logged into the Fiori system previously using the browser, automatic login might occur due to stored cookies. Delete the cookies from the DesignTimeCookies folder if credentials are not requested.
Record script that includes a loop
If you are recording a script that includes multiple line items for one set of header fields, follow steps from the above section to record the script, and then do the following:
- Type information into the fields that will become the header, and then press Enter.
- Enter the data for the line item.
- Click the SAP Create Item or Insert Row button.
- Repeat steps 2-3 to enter the second line item. This creates a visible pattern that you can find in the Mapper. After you add the loop, you will disable the extra line item's rows in the Mapper.
You will add the loop when you map the fields.