Fiori Approve PDF
Fiori Approve PDF
Technical Data
The following tables list technical objects specific for Approve Requests.
Back-End Components
OData Service Authorization Role (PFCG Role)
Task Gateway Service 1.0 (/IWPGW/TASKPROCESSING) No special role required
For more information about authorization roles and assigned OData services, see Roles, Users, and
Authorizations on Back-End Server [external document].
For more information about how to activate the UI5 application (ICF service), see Activate ICF Services
[external document].
For more information about roles, catalogs and catalog groups in the SAP Fiori Launchpad, see Setup of
Catalogs, Groups, and Roles in the Fiori Launchpad [external document].
Configuration
Enter and define a task and those decision options from your workflow task that you want to display
in the Approve Requests application.
Follow the steps below in the back-end system where you maintain your workflow template.
1. In Customizing for SAP NetWeaver, choose Gateway Service Enablement Content Workflow Settings
Maintain Task Names and Decision Options .
2. Fill in the Step Name table as described below and save your entries:
4ÛØx2´ Workflow ID: Enter the ID of your workflow template, for example, WS30000015.
4ÛØx2´ Step ID: Enter the task step from your workflow template.
4ÛØx2´ Icon MIME Repository Path: Leave this field blank.
4ÛØx2´ Step Description: Enter the task name.
This name appears as the heading of the detail screen in the Approve Requests application.
NOTE
This step is only relevant if you are implementing the Approve Requests application for your
SAP Business Workflow.
3. Select the entry in the Step Name table and choose Decision Keys in the navigation panel.
4. Add and define your decision options in the Decision Keys table as described below and save your
entries:
4ÛØx2´ Key: Enter the decision key.
Decision keys are numeric and sequential and correspond to the position of decision options
in the Workflow Builder. Enter the first decision option with key 1, the second decision option
with key 2, and so on.
I‚´Q6í Icon Mime Repository Path: Leave this field blank.
I‚´Q6í Decision Text: Define the name of the decision option.
This name is displayed on the application screen as a button label. The proposed length of the
decision text is maximum 14 characters. Decision texts longer than 14 characters will not fit
to the device screen.
I‚´Q6í Comment On: If you want to make it mandatory for the user to add a comment when executing
a decision, select this checkbox.
I‚´Q6í Nature: Here you have the following options:
I‚´Q6‡ Select POSITIVE for the approve type decision option.
The decision option is displayed as a green pushbutton on the detail screen of the
application.
I‚´Q6‡ Select NEGATIVE for the reject type decision option.
The decision option is displayed as a red pushbutton on the detail screen of the application.
I‚´Q6‡ Leave the field empty for multiple decision options.
The decision options are displayed in a gray drop-down list on the detail screen of the
application.
Define your workflow scenario by completing the following steps in your Gateway system: add a
scenario, assign the consumer type, assign roles, and define tasks.
1. Add a workflow scenario.
1. In Customizing for SAP NetWeaver, choose Gateway Service Enablement Content Task Gateway
Service Scenario Definition .
2. Choose New Entries.
3. Fill in the Scenario Decision table as described below and save your entries:
I‚´Q6í Scenario Identifier: Define a scenario ID.
I‚´Q6í Scenario Display Name: Define a name for your scenario.
I‚´Q6í Scenario Order: Not relevant for Approve Requests.
I‚´Q6í Technical Service Name: Enter /IWPGW/TASKPROCESSING.
I‚´Q6í Version: Enter 1.
I‚´Q6í EntitySet External Name: Enter Task.
I‚´Q6í Property External Name: Enter TaskDefinitionID.
I‚´Q6í Default Sort by Property: Define how you want to sort the work items on the list screen of the
application.
NOTE
You can use all the properties of the task collection here, but we recommend to use
the CreatedOn property.
To display a list of all the possible properties, see SAP Help Portal at http://
help.sap.com SAP NetWeaver SAP NetWeaver Gateway Content Information Content
Guide SAP NetWeaver Gateway Content Guide SAP NetWeaver Gateway Supported Odata
Channel Scenarios Task Gateway Task Gateway Service Task Gateway Service Version 1 Task
Collection .
êü¼¯u Mass Action: Not relevant for Approve Requests.
êü¼¯u Class for Scenario Count: If the scenario is not part of the Business Workflow engine, and you
want to see the number of tasks pending for this scenario, enter the name of the class that
implements the /IWWRK/IF_TGW_SCENARIO interface.
êü¼¯u Quick Act.: Select the Quick Act. checkbox to enable quick approval of workflow items.
This field is only relevant if you are using a mobile device.
2. Assign the consumer type to the scenario.
1. Select the row containing your approval scenario and choose table Assign Consumer Type to
Scenario in the navigation panel.
2. Choose New Entries.
3. In the Task Gateway Consumer Type field, select TABLET.
4. Save your entries.
3. Assign a role to the consumer type and the scenario (optional).
Now you can assign an approval scenario to a number of roles, that is, the scenario will only be
available to users who are assigned to at least one of the relevant PFCG roles.
1. Select the row for TABLET (for all devices), and choose Assign Role to Consumer Type and Scenario
in the navigation panel.
2. Choose New Entries.
3. In the Role column, select the role you want to use.
4. Save your entries.
4. Define tasks for your scenario.
NOTE
You can define several tasks for your scenario. Make sure that you follow the steps below for
each of your task.
1. Choose Scenario Definition in the navigation panel, and select the row containing your approval
scenario.
2. Choose Task Definition for Scenario in the navigation panel.
3. Choose New Entries.
4. Enter the task type ID for your approval workflow.
NOTE
You can find your task type ID in the back-end system as described below:
1. Start the Workflow Builder.
2. Search for the workflow definition you would like to enable.
3. Open the approval step.
4. Go to Control tab, and check the Task field.
5. In the SAP System Alias field, enter the source system alias for the task type.
NOTE
Make sure that the Task Gateway Service is connected to the selected system aliases.
6. Save your entries.
To enable Approve Requests, you have to create a tile for each workflow scenario as described below.
NOTE
1. Start the launchpad designer in your NetWeaver Gateway system with the following URL: http://
<server>:<port>/sap/bc/ui5_ui5/sap/ARSRVC_UPB_ADMN/main.html.
2. Select the Approve Request (SAP_FND_TC_T_X1) catalog.
3. Add a new tile.
4. Choose the App Launcher - Dynamic tile.
5. Select the newly created tile, and fill in the following fields as described below:
−KAÏ Title: Enter the name of your workflow scenario, for example, Capital Expenditure Approval.
−KAÏ Icon: Use the default sap-icon://complete.
−KAÏ Service URL: Enter /sap/opu/odata/IWPGW/TASKPROCESSING;mo/ScenarioCollection?
$filter=key eq '<your scenario identifier>'.
More Information
For general information about how to implement SAP Fiori apps, see System Landscape [external
document].