Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member213263
Participant
0 Kudos

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.

  1. Click on SAP Netweaver to further navigate.

  1. Click on Gateway Service Enablement.

  1. Click on Content.

  1. Click on Task Gateway Service.

   

  1. Click on Scenario Definition..

  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.

  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.

  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.
  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.

  1. Save the Entries.
10 Comments
Former Member
0 Kudos

excellent information ,

Thank u ,

Jwala.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

I056372
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

masayuki.sekihara could you answer the question from Jaya?

I need the same functionality.

Thanks!

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

former_member184588
Active Participant
0 Kudos

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

masa_139
Product and Topic Expert
Product and Topic Expert
former_member184588
Active Participant
0 Kudos

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

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please create a new discussion for a new question.

former_member184588
Active Participant
0 Kudos

I fully agree. Sorry.

New discussion is: Leave request workflow customizing

Labels in this area