on 09-23-2016 8:16 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.