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 necessary, practice a few times in SAP Fiori® application before you start to record in Studio. If you want to create a loop, be sure to type the first line item in the correct location for recording that SAP 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 Fiori, and click Recording a Fiori App.
- On the Studio logon screen,
- The first time that you use Studio, Choose Fiori
System. SAP Shuttle Logon wizard
opens. Enter the following details.
- Fiori System - Drop down displays the list of SAP Fiori® systems defined in Evolve. By default the drop down is empty.
- Browser - by default selected for SAML based authentication and Logon Type is selected as Browser Based in Evolve. For more information, refer Create SAP server connections in Automate Evolve.
- Launchpad address
- Client
- User name
- Password
- Language
- Save as auto logon credentials
- Click SAP system and select from drop down. Enter required details.
- Click Advanced Fiori Sign In. In the SAP Shuttle Logon box, choose your SAP system, and then type your client number, user name, and password. You may opt to select Save as auto logon credentials.
- Click Save Auto Logon.
- The first time that you use Studio, Choose Fiori
System. SAP Shuttle Logon wizard
opens. Enter the following details.
- Click Sign In to Fiori.
Record the script
Once you Log on to SAP, the SAP Fiori® System name, SAP user, and Status is displayed.
- 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 keep PivotTables and other elements in the file, open it in Excel and run it in Background Mode.
- To automatically map the fields to the data file, check the Auto map when recording is finished box.
- Click Start Recording.
- In the Fiori Recording Dialog window, select the Fiori 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 SAP 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)
- When you have finished entering data, click the Post or Save on the SAP Fiori® app and then close the Fiori Recording Dialog window. Use entry with fewer line items while recording.
For the next step, see Map the fields.
- Navigate to the SAP Script Editor where your script is open.
- Click File.
- Select New.
- In the dialog that appears, select Fiori as the template type.
- A Save dialog box will appear. Click Discard All Changes to delete the current script without saving.
Handling Start and End Date fields for activity type hierarchy
In other types of hierarchy, users can enter Start Date and End Date. However, for the Activity Type hierarchy, but still appear in the mapper during network calls (payload processing). Since these fields cannot be skipped or hidden in the payload, users have the following options:
- If a common script is used to create any type of hierarchy, these fields are not required for the Activity Type.
- Solution: Use a skip indicator to bypass filling in the values for Start Date and End Date.
- The hierarchy details will be saved as expected without any issues.
Using a Script for Only Activity Type Hierarchy
- If the script is used exclusively for creating an Activity Type
hierarchy:
- Solution:Manually delete the Start Date and End Date fields from the mapper (one-time step).
- The execution will successfully process and post only the required
parameters.
This ensures that the payload is correctly structured and prevents unnecessary data from being processed.
Error appears if the user leaves Incoterm location blank in Manage Sales Order app during recording. These errors are still shown in the logs even if the error is fixed.
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 1-6 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.
- An error occurs if date fields are recorded using date time picker.
- Recording for editing and deleting operations is not supported in some of the SAP Fiori® applications.
- SAP Fiori® applications that redirect to SAP GUI for HTML screens, should be recorded as a SAP GUI for HTML app.
-
For certain Fiori Apps, such as:
- Bill of Material
- Manage Product Master Data
The Long Text fields are not being recorded in the script across multiple S/4 HANA versions (2021, 2022, and 2023)