on 02-21-2014 10:21 AM
Hello Everyone !
I am facing a strange problem today. SAP Fiori app My Leave Request always shows 0 days used and available. I can create leave request, so I assume back end works fine.
Does anyone have clue why?
Best Regards,
Kamil Czyżnielewski
It looks that further backend configuration is needed. In order to see quotas details in My Leave Request application you need to add your Absence Quota Type in SPRO. There is configuration which seems not to be related with Fiori Apps...but it is. Maintain following configuration in SPRO:
Personnel Management -> Employee Self-Service (Web Dynpro ABAP) -> Service-Specific Settings -> Working Time -> Leave Request -> Layout of the Web Application -> Specify Display of Abcense Quotas
Best Regards,
Maciej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamil,
What is support package level for UIHCM002 and GBHCM002?
Regards,
Masa
SAP Rapid Innovation Group - RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kamil,
You system has correct support package level.
I think OData does not return correct value from backend.
You can try troubleshooting or create a customer massage.
Regards,
Masa
SAP rapid Innovation Group - RIG
Hi Masa,
do you happen to know in what EntityType this data is contained? Because I followed steps in document you send and I found out that several OData service are requested. Belowe I attached two last OData services.
/sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/AbsenceTypeCollection?$skip=0&$top=100&$select=AbsenceTypeName%2cAbsenceTypeCode%2cAllowedDurationPartialDayInd%2cAllowedDurationMultipleDayInd&$inlinecount=allpages
/sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/AbsenceTypeCollection(EmployeeID='',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0110')/absenceTypeTimeAccount?$select=BalancePlannedQuantity,BalanceAvailableQuantity,TimeUnitName,TimeAccountTypeName
Best Regards,
Kamil Czyżnielewski
Hi Kamil,
AbsenceTypeCollection will give you the data. Please find the details below.
/sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/AbsenceTypeCollection(EmployeeID='',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0100')/absenceTypeTimeAccount?$select=BalancePlannedQuantity,BalanceAvailableQuantity,BalanceUsedQuantity,TimeUnitName,TimeAccountTypeName
Unfortunately when I query my OData service I got following result:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base=".../sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/">
<id>
.../sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/AbsenceTypeCollection(EmployeeID='',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0110')/absenceTypeTimeAccount
</id>
<title type="text">TimeAccountCollection</title>
<updated>2014-03-03T10:16:51Z</updated>
<author>
<name />
</author>
<link href="AbsenceTypeCollection(EmployeeID='',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0110')/absenceTypeTimeAccount" rel="self" title="TimeAccountCollection" />
</feed>
Do you know why in my feed is element link and not properties with ctual data? Is there problem with my OData service?
When I add my EmployeeID service returns the same xml:
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base=".../sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/">
<id>.../sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/AbsenceTypeCollection(EmployeeID='0000006',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0110')/absenceTypeTimeAccount</id>
<title type="text">TimeAccountCollection</title>
<updated>2014-03-03T11:30:31Z</updated>
- <author>
<name />
</author>
<link href="AbsenceTypeCollection(EmployeeID='0000006',StartDate=datetime'2014-03-03T00:00:00',AbsenceTypeCode='0110')/absenceTypeTimeAccount" rel="self" title="TimeAccountCollection" />
</feed>
To be honest I don't know why is this happening
Best Regards,
Kamil Czyżnielewski
I noticed another strange thing. In abap code in class /GBHCM/CL_MGW_RDT_ELR_V2 method GET_ENTITYSET_ABSENCETYPE there is code which is commented out. The header of this code says: Get Absence quotas for employee Absence type. Do you have this code commeted out too?
Best Regards,
Kamil Czyżnielewski
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.