cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori - Leave Request Approval

rakshit_doshi
Active Contributor
0 Kudos

Dear Experts,

I have activated all the required services (OData, UI5) for Approve Leave Request Application and i am also able to view it on the Fiori Launch Page.

I have been following the App implementation guide from the below link

http://help.sap.com/fiori_bs2013/helpdata/en/88/a2675283776f2de10000000a44176d/content.htm

But this link doesnt mention anything on where to bind the Workflow ID.

Where do we have to workflow id so that managers can view their employees leave request.

Without doing this it gives  a HTTP error when i try to navigate forward from the launch page tile.

Any help is appreciated.

Thanks,

Rakshit Doshi

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rakshit,

Please upload the error messages and screenshots of the runtime issue.

Regards,

Masa

rakshit_doshi
Active Contributor
0 Kudos

Dear Masa,

Thanks for your reply.

My first concern was do we have to configureworkflow id for leave request approval or just activate the services and its good to go to fetch the data.

From what i believe, how would the application know which workflow to refer to.

Your guidance will be very much appreciated in this direction

Thanks,

Rakshit

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rakshit,

Do you have any runtime issue? Please describe the runtime issue and error message.

The app reads "workitem" (not workflow) information from HR table.

Regards,

Masa

former_member82178
Active Participant
0 Kudos

Hi Rakshit,

Yes, we need configure workflow id for leave request approval. I remember we created scenario definition for leave approval to configure work flow task type which handles leave request approve/reject decisions.  Refer below screenshot which might help in the config.

Go to: SPRO -> SAP Netweaver -> Gateway Service Enablement ->Content ->Task gateway service-> Scenario Definition ->

Leave Request approval - Scenario Definition:

Task definition for scenario:

Thanks & Regards,

Madhu Sudhan

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

FYI. Please note that shared info by Madhu is old setting and it is not required anymore.

Regards,

Masa

rakshit_doshi
Active Contributor
0 Kudos

Dear Masa,

I configured the leave request approval application as suggested.

I am able to see the information on the tile but when i do the details thing it gives me a HTTP error.

Can you please advice.

We have tested it from ECC the leave workflow and ti works perfectly fine.

Thanks,

Rakshit

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rakshit,

Please make sure that you can approve the request in SAPGUI Inbox without Fiori.

Regards,

Masa / Technology RIG

rakshit_doshi
Active Contributor
0 Kudos

Dear Masa,

I am able to execute the cycle from the workflow inbox.

Also when i do this url on thr browser it returns the three entries which it shows in the tiles

http://serverip:port/sap/opu/odata/GBHCM/LEAVEAPPROVAL/LeaveRequestCollection

Can you please advice

Thanks,

Rakshit

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rakshit,

You can set external break points in the backend method and find the root cause.

The error comes from backend and usually the user was not integrated in HR.

SAP Fiori LL11 - Consultants should know about OData troubleshooting

Regards,

Masa / SAP Technology RIG

Answers (1)

Answers (1)

kirankola
Advisor
Advisor
0 Kudos

Hi Rakshit,

My Leave Request creates entries in PTARQ* tables. Workitems are selected from the table PTREQ_HEADER.

Examples:

PTREQ_HEADER - request header
PTREQ_ITEMS - request items.

PTREQ_ATTABSDATA - leave request details

Regards,

Kiran

rakshit_doshi
Active Contributor
0 Kudos

Dear Kiran,

Thanks for your reply.

So from what i infer from your answer is that when a user creates a leave request, it stores the leave request and the approve leave request application directly reads it from the table just like any other application which fetches data from the table for a particular user.

This has nothing to do for configuration of workflow

Kindly correct me if i am wrong.

Regards,

Rakshit

kirankola
Advisor
Advisor
0 Kudos

That is correct.