cancel
Showing results for 
Search instead for 
Did you mean: 

[Fiori]My Leave Requests shows 0 used and available days

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

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

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kamil,

What is support package level for UIHCM002 and GBHCM002?

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hello Masa,

SP level for those components is the same as it is shown in Fiori installation guide:

http://screenshu.com/static/uploads/temporary/sv/r5/km/qbl331.jpg

Best Regards,

Kamil Czyżnielewski

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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



Former Member
0 Kudos

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

pankaj_bisht
Contributor
0 Kudos

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

</id>
<title type="text">
TimeAccountCollection(EmployeeID='0000001',TimeAccountTypeCode='10')
</title>
<updated>2014-03-03T10:04:48Z</updated>
<category term="LEAVEREQUEST.TimeAccount" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="TimeAccountCollection(EmployeeID='0000001',TimeAccountTypeCode='10')" rel="self" title="TimeAccount"/>
<content type="application/xml">
<d:TimeAccountTypeName>Vacation</d:TimeAccountTypeName>
<d:TimeUnitName>Days</d:TimeUnitName>
<d:BalanceUsedQuantity>8.00000</d:BalanceUsedQuantity>
<d:BalancePlannedQuantity>0.00000</d:BalancePlannedQuantity>
<d:BalanceAvailableQuantity>0.00000</d:BalanceAvailableQuantity>
</m:properties>
</content>
</entry>
</feed>
Best Regards
pankaj
Former Member
0 Kudos

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?

pankaj_bisht
Contributor
0 Kudos

Hi Kamil,

There is no Employee ID displayed in your results. Could you try passing in the Employee id in the Odata service and then see the results.

Best Regards

pankaj

Former Member
0 Kudos

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

Former Member
0 Kudos

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

pankaj_bisht
Contributor
0 Kudos

Hi Kamil,

Yes this is commented out in my system too.

Please create an OSS message so that we could have a look at your system.

Best Regards

Pankaj