Business Scenario
Note
In this exercise, when a value or an object name includes ##, replace ## with the number that your instructor assigned to you.
Task 1: Create and Test a Notification of Absence
Steps
Create a notification of absence using the transaction SWXF.
Log on to the system.
Your trainer will inform you about the required system.
Start the transaction SWXF.
In the Personal Data section, enter a name of your choice and in the Absence Data, section enter a range of dates of your choice.
Choose Save.
Test the gateway service TASKPROCESSING in the Gateway Client to read your notification of absence.
Start transaction /IWFND/MAINT_SERVICE Activate and Maintain Services.
In the transaction Activate and Maintain Services, choose Filter.
With all of the other fields empty, in the External Service Name field, enter *task*.
Choose Continue.
In the Service Catalog area, select the external service name ZTASKPROCESSING with version 2.
Note
It might be required to scroll.
In the ICF Nodes area, choose SAP Gateway Client.
In the Gateway Client, choose Execute.
Examine the entities in the HTTP Response area.
In the Request URL
field, replace ?$format=xml with TaskCollection.
Choose Execute.
Search for your notification of absence in the HTTP Response.
Open the SAP Fiori app My Inbox in your SAP Fiori Launchpad and search for your notification of absence.
Start the SAP Fiori launchpad.
Choose My Inbox.
Note
It may take a while, before the workflow displays.
Search for your notification of absence.
Task 2: Define the Workflow Scenario
Steps
In your system S4D, define a workflow scenario, usable for all consumer types.
Use the following data:
| Field | Value |
|---|
| Scenario Identifier | BIT602_##_SCENARIO |
| Scenario Display Name | Workflow Scenario Group ## |
| SAP System Alias | LOCAL_TGW |
| Task Type | TS30000016 |
Hint
The path in the SAP Reference IMG to the Task Gateway Service settings is ABAP Platform→Gateway Service Enablement→Content→Task Gateway→Task Gateway Service.
In your system start the transaction SPRO.
Choose SAP Reference IMG.
Expand the menu path ABAP Platform→SAP Gateway Service Enablement→Content→Task Gateway→Task Gateway Service.
Choose the activity Scenario Definition.
Choose New Entries.
In the Scenario Identifier field, enter BIT602_##_SCENARIO.
In the Scenario Display Name field, enter Workflow Scenario Group ##.
Press Enter.
Check the version of the service. If it is 1 change to 2. To do so, you have to scroll to the right.
Choose Save.
Select the customizing request provided by your trainer.
Select your scenario definition in the table.
In the dialog structure, double-click Assign Consumer Type to Scenario.
Choose New Entries.
In the table Task Gateway Consumer Type, add DESKTOP, MOBILE, and TABLET; each in a single row.
Choose Save.
In the dialog structure, double-click Task Definition for Scenario.
Choose New Entries.
In the SAP System Alias field, enter LOCAL_TGW.
In the Task Type field, enter TS30000016.
Choose Save.
Task 3: Test Your Workflow Scenario
Steps
Test your workflow scenario in the Gateway Client.
Go back to the SAP Easy Access menu.
Choose SAP Gateway→SAP Gateway Client.
In the SAP Gateway Client, in the Request URL field, enter: https://s4dhost.wdf.sap.corp:44311/sap/opu/odata/IWPGW/TASKPROCESSING;v=2/ScenarioCollection?$filter=key eq ('BIT602_XX_SCENARIO')
Do not forget to replace ## by your group number.
Choose Execute.
Examine your workflow scenario in the HTTP Response.
The number should be the same as your number of notifications of absence.
Note
The figure shows an example of group 04, and the workflow ran three times.