Skip to Content
Author's profile photo A J

FIORI: Scenario Definition For Leave Request Approval

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.

Assigned Tags

      10 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      excellent information ,

      Thank u ,

      Jwala.

      Author's profile photo Masayuki Sekihara
      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.

      Author's profile photo Jaya Krishna Ellore Govindarajulu
      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

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara

      Selecting workitems does not rely on the task ID anymore. Workitems are selected from the table PTREQ_HEADER. If you have runtime issue, please create new discussion. Start a discussion.

      Author's profile photo Vanessa Martinez
      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

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara
      Author's profile photo Vanessa Martinez
      Vanessa Martinez

      Hi Masayuki Sekihara, thanks for your answer. This is the way we are doing it right now. But I am missing the possibility to have representative (in case of line manager's vacation, ...). Or am I missing there something?

      Regards, Vanessa

      Author's profile photo Masayuki Sekihara
      Masayuki Sekihara

      Please create a new discussion for a new question.

      Author's profile photo Vanessa Martinez
      Vanessa Martinez

      I fully agree. Sorry.

      New discussion is: Leave request workflow customizing

      Author's profile photo Former Member
      Former Member

      Masayuki Sekihara could you answer the question from Jaya?

      I need the same functionality.

      Thanks!