cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori HCM Leave App - Approval

former_member195748
Participant
0 Kudos

Hello Gurus,

I have activated HCM Fiori Leave Request app. But the approver name is blank.

I got to know from my HR consultant that they have implemented some Custom logic to get the approver name. Is it possible that I can use the same custom logic an enahance the Fiori app for the approver name.

Regards,

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

ravigrover
Participant
0 Kudos

Hi Vivek,

Using Below given Odata call, default approver fill the input field. 

/sap/opu/odata/sap/HCM_LEAVE_REQ_CREATE_SRV/ConfigurationCollection?$select=DefaultApproverEmployeeID,DefaultApproverEmployeeName,RecordInClockHoursAllowedInd,RecordInClockTimesAllowedInd&$filter=EmployeeID%20eq%20%27<emp_no>%27&sap-client=<clnt>

which calls the below method of CL_HCM_LEAVE_REQ_CREAT_DPC_EXT class

CONFIGURATIONCOL_GET_ENTITYSET

which eventually picks the default approver using the function module.

PT_ARQ_GET_APPROVER_FROM_ORG

Run the odata service and test it in the browser to see whether the default approver is coming in the response.

http://<hostname.domainname>:<port>/sap/opu/odata/sap/HCM_LEAVE_REQ_CREATE_SRV/ConfigurationCollection?$select=DefaultApproverEmployeeID,DefaultApproverEmployeeName,RecordInClockHoursAllowedInd,RecordInClockTimesAllowedInd&$filter=EmployeeID%20eq%20%27<emp_no>%27&sap-client=<clnt>

You can put a break point in CONFIGURATIONCOL_GET_ENTITYSET method and start debugging here to analyse.

Regards,

Ravi Grover

Answers (0)