Skip to Content

Scenario Definition for Leave Request Approval :-

Scenario definition to be performed on the Netweaver Gateway server.

  1. Go to Transaction Code SPRO’.

  Click on SAP Reference IMG to open the structure.

Untitled1.png

  1. Click on SAP Netweaver to further navigate.

Untitled2.png

  1. Click on Gateway Service Enablement.

Untitled3.png

  1. Click on Content.

Untitled4.png

  1. Click on Task Gateway Service.

    Untitled5.png

  1. Click on Scenario Definition..

Untitled6.png

  1. Click on New Entries to create scenario definition.

Field

Approve Leave Request

Scenario Identifier

LEAVEREQUESTAPPROVAL

Technical Service Name

/GBHCM/LEAVEAPPROVAL

EntitySet External Name

LeaveRequest

Property External Name

TaskDefinitionID

Class for Scenario Count

/GBHCM/CL_APPROVAL_ITEM_COUNT

Quick Act.

Select the Quick Act checkbox to enable quick approval of workflow items (iPad only).

  1. Save the Entries and select the row containing your approval scenario.
  2. In Dialog Structure, choose Assign Role to Consumer Type and Scenario.

Untitled7.png

  1. Choose new entries, either Desktop, Tablet or Mobile from F4 search help.

Save the entries.

  1. Select Desktop, In Dialog Structure : choose Assign Role to Consumer Type and Scenario.

Untitled8.png

  1. Click New Entries. Choose the appropriate Role with the F4 help i.e. for leave request approval is ‘SAP_HCM003_HCM_LVRQ_APR’.
  2. Select the Role, choose Task Definition for Scenario. Untitled9.png
  3. Select New Entries, define task type and SAP system alias.      
  4. Give Task ID which has been used to trigger the Workflow for Leave Request Approval and give System Alias maintained for example DEV_BWF.

Untitled10.png

  1. Save the Entries.
To report this post you need to login first.

10 Comments

You must be Logged on to comment or reply to a post.

  1. Masayuki Sekihara

    FYI.

    This is setting for apps which were release in 2013. Updated apps in 2014 do not use scenario definition setting. Only Fiori Approve Requests app uses this setting.

    (0) 
    1. Jaya Krishna Ellore Govindarajulu

      Hi Masa,

      How do we take care of custom task IDs for Approve Leave request application ?

      currently customer has defined custom task IDs which is not allowing to approve/reject leaves through the FIORI app, though the same works through PTARQ.

      Like you mention updated apps do not have the option maintain scenario definition.

      Best Regards,

      Jay

      (0) 
    2. Vanessa Martinez

      Hi Masayuki Sekihara

      thanks a lot for the clarification. Was following the tutorial and wondered why I couldn’t find the right elements in the tree.

      What is the correct way to use workflows (simple line manager approval) for the new Leave Request Fiori app?

      Kind regards, Vanessa

      (0) 

Leave a Reply