Defining the Gateway Scenario and Catalogs

Objective

After completing this lesson, you will be able to define the gateway scenario and catalogs

Gateway Scenario Definition

A scenario is an aggregation of different task activities that are visualized by the same business application.

To add a new scenario:

  1. Log in to the SAP Gateway system.

  2. Execute transaction SPRO.

  3. Open the SAP Reference IMG, navigate to ABAP PlatformSAP Gateway Service EnablementContentTask GatewayTask Gateway ServiceScenario Definition, and click the activity icon.

    The screenshot of IMG Activity: Scenario Definition
  4. Choose New Entries.

  5. Enter the following details for the scenario definition:

    Details for a Scenario Definition

    FieldDescription

    Scenario Identifier

    Unique ID for the scenario

    Scenario Display Name

    Description for the scenario

    Technical Service Name

    Press F4 and select the scenario service identifier and version (select  /IWPGW/TASKPROCESSING version 2).

    Default Sort by Property (optional)

    Property by which the application will sort the list

    Mass Action (optional)

    Select the checkbox to enable mass action

    The screenshot of Scenario Definition
  6. Save.

To Assign a Consumer Type for a Scenario:

  1. In the Scenario Definition table, select the row containing the desired scenario.

  2. From the Dialog Structure section, double-click Assign Consumer Type to Scenario.

    The screenshot of Maintaining the Scenario Definition
  3. Choose New Entries. In the Task Gateway Consumer Type field, select the desired consumer type.

    The screenshot of Further Settings in the Scenario Definition
  4. Save.

To Assign a Role to a Consumer Type and Scenario

You can also specify roles for each consumer type and scenario definition to restrict access to the scenario.

To assign a role to a consumer type and scenario:

  1. In the Task Gateway Consumer Type table, select the row containing the desired consumer type.

  2. From the Dialog Structure section, double-click Assign Role to Consumer Type and Scenario.

  3. Choose New Entries.

  4. In the Role column, press F4 and select the desired role.

To Set The Task Definition for a Scenario:

  1. Select the desired scenario row.

  2. From the Dialog Structure section, double-click Task Definition for Scenario.

  3. Choose New Entries.

  4. In the Task Type field, enter the relevant Task ID for the selected scenario.

  5. In the SAP System Alias field, enter the source system alias for the Task Type. The Task Gateway service should be connected to the selected system aliases.

    The screenshot of Maintaining the Task Definition for a Scenario
  6. Save.

To Create a Catalog

A catalog is a set of apps you want to make available for one role. Depending on the role and the catalogs assigned to the role, users can browse through the catalogs and choose the apps that they want to display on the entry page of the SAP Fiori launchpad.

You can use standard technical catalog SAP_FND_TC_T, which is shipped with My Inbox.

To create a new catalog:

  1. Log in to the launchpad designer.

  2. Click the plus sign at the bottom of the list to create a new catalog.

  3. Enter a Title and an ID and choose Save.

  4. Now your new catalog opens and you can create a target mapping as well create a tile in this catalog.

To Create a Target Mapping in a Catalog

In the target mapping configuration, you map a navigation target to the combination of a semantic object and an action, also known as intent.

In the standard technical catalog (SAP_FND_TC_T), a target mapping has already been created and that can be used for My Inbox.

To create a new target mapping for a catalog:

  1. Log in to the launchpad designer. You can use transaction /UI2/FLPD_CONF.

  2. Choose a catalog from the catalog list.

  3. Select the target mapping tab and choose create target mapping button in the footer.

  4. Provide the following details in the target mapping configuration screen and save the settings.

Note

The title property of the target mapping should be the same as the tile name where it will be used.

Data for Creating a Target Mapping in a Catalog

FieldValue

Semantic Object

WorkflowTask

Action

< A name of the action >

Source of Navigation Target

SAPUI5 Fiori App

Title

< Some Title >

URL

/sap/bc/ui5_ui5/sap/ca_fiori_inbox

Component

cross.fnd.fiori.inbox

Device Types

Select all the devices

The screenshot of Launchpad Designer

To Create a Role

To make your custom catalog available to users, you create a role and assign a catalog to this role. For standard technical catalog SAP_FND_TC_T, PFCG role is SAP_FND_TCR_T.

To create a role:

  1. Execute transaction PFCG.

  2. Enter the name of the new role you want to create and select Single Role.

  3. Save the role.

  4. Go to the Menu tab.

  5. Choose an Action and select the catalog from the list.

  6. In Catalog Provider, select Fiori Launchpad Catalogs from the dropdown. Provide the catalog ID and press Enter.

  7. To assign a user to this role, go to the User tab. In the User Assignment table, provide the UserID and press Enter.