cancel
Showing results for 
Search instead for 
Did you mean: 

FIORI Leave Approval Error

Former Member
0 Kudos

Hi,

I was able to create a leave request but now I'm having problems with leave approval.

I have already done all the prerequisites for configuring leave approval app including defining the scenario. I have added my user to the following roles

SAP_GBHCM_HR_APPROVAL_MANAGER since I cannot find SAP_GBHCM_LEAVE_APPROVAL_MANAG

SAP_HCM003_HCM_LVRQ_APR

The following services have been activated. Is it okay to have only 1 alias for taskprocessing and to other FIORI services?

Scenario Definition:

Below is the error I'm getting

When I access the homepage for the manager/approver

When I click the Leave Approval App, I get http status 500 error. When I click the refresh button, the error is

Here is the error on /IWFND/ERROR_LOG


Help is very much appreciated. Thanks

-Melanie

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

I think system alias setting is wrong. Please check blogs in http://scn.sap.com/docs/DOC-41598.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

So it means that there is a need to have two system alias? One for the fiori apps (default) and one for the taskprocessing?

Does the technical name in the scenario be the same with the technical name in the Service Catalog?

In the document, the technical name of the scenario must be /GBHCM/LEAVEAPPROVAL but on my service catalog, the name is ZAPPROVALS...or /GBHCM/ZAPPROVALS.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Please follow the installation guide. It has correct name.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

I have gone through with the installation guide again. Now I'm having a new error

Does the task type need to be configured by our HCM consultant?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

I think your "Define Scenario" setting is wrong.

Please upload the screenshots.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

Below are the screenshots

Below is my system alias

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

The external property name in the scenario definition is wrong. Please check the install guide and cut & paste.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

I have changed the external property name to "TaskDefinitionID" as stated on the document.

The error is now:

Property TaskDefinitionID not found in type LeaveRequest

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

What is your Gateway deployment option? Hub or Embedded on ERP?

Have you applied all notes mentioned in the install guide?

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

I think our gateway is embedded on ERP.

Yes, we have applied all the notes in the guide.

I can see task "TS12300097" by using tcode SWFVISU also.

Any ideas other ideas on what may have caused our error?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Test 1. Remove local app flag from EC6 system alias.

Test 2. Remove local app flag from EC6 system alias. AND remove local GW flag from both EC6 and EC6_PGW system aliases.

Also upload the RFC destination details screenshots with logon tab.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

Test 1. Remove local app flag from EC6 system alias. --> number of leave request in the tiles now visible; still with error

Test 2. Remove local app flag from EC6 system alias. AND remove local GW flag from both EC6 and EC6_PGW system aliases. -->number of leave request in the tiles now visible; still with error

Below is our rfc destination:

I redid the scenario definition again and now I'm having a new error and the app is forever loading

  1. Uncaught TypeError: Cannot read property 'statusCode' of undefined resources/sap/ca/common/uilib/library-preload.json/sap.ca.common.uilib.Skeleton:1

No further errors log in /IWFND/ERROR_LOG.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

I see now your error message is different from original report.

Please identify the OData service.

On chrome browser, right click inspect element, go to Network tab and refresh.

Find the /sap/opu/.. OData call.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

Below are the Odata services

Don't really know what is wrong because when I try to access /sap/opu/odata/IWPGW/TASKPROCESSING;mo/TaskCollection  I can already see the leave requests.


masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

You said you have applied all notes but could you please double check again. It saves my time and also your time for trouble shootings.

1866093   Patches for the Gateway SPS06 required for FIORI

    There are 5 notes in 1866093.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

We have double checked the notes. All of them have been applied. Still having an error though.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Your original issue was OData call response was http 500 error.

Could you give us the latest issue? Every time we fixed settings, different error type came. I lost what is the current latest issue.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

I redid the scenario configuration and added another system alias for the TASKPROCESSING and that fixed the 500 error.

When I try to access the approval app. This error occurs.

The OData services being called are:

1.) $metadata

/sap/opu/odata/IWPGW/TASKPROCESSING;mo  ---> status 200

2.) ConsumerScenarioCollection?$filter=((ConsumerType%20eq%20'TABLET'))%20and%20((UniqueName%20eq%20'LEAVEREQUESTAPPROVAL'%20))

/sap/opu/odata/IWPGW/TASKPROCESSING;mo   ---> status 200. although when I try to access this. There seems to be no data. 

When I try accessing this service (although not being called by the app yet):

/sap/opu/odata/IWPGW/TASKPROCESSING;mo/ConsumerScenarioCollection(SAP__Origin='EC6_PGW',

ConsumerType='DESKTOP',UniqueName='LEAVEREQUESTAPPROVAL')/Tasks  ---> I can already see the leave requests by the users

I can't see error logs in /IWFND/ERROR_LOG related to leave approval.

Looking forward to you response. Thanks!


masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Please test the second OData call in GW_CLIENT.

If it is http 200 and no data, it seams something wrong in scenario definition.

If it return data but UI is not refreshing it, some issue is in UI side.

Please test and identify the issue is in OData side or UI side.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

The statusCode undefined error is now gone and the app is now calling 4 services.

The leave are visible in this service /sap/opu/odata/IWPGW/TASKPROCESSING/TaskCollection.

Checking out the 2nd service I mentioned on my post.

/sap/opu/odata/IWPGW/TASKPROCESSING;mo/ConsumerScenarioCollection?$filter=((ConsumerType%20eq%20'DESKTOP'))%20and%20((UniqueName%20eq%20'LEAVEREQUESTAPPROVAL'%20))

--> can view. see result below.

this service seems to access odata service

/sap/opu/odata/GBHCM/APPROVALS;o=EC6/LeaveRequestCollection?$filter=(TaskDefinitionID eq 'TS12300097')

--> shows an error. see below:

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>005056A509B11EE1B9A8FEA8DE87F78E</code>

<message xml:lang="en">

Property TaskDefinitionID not found in type LeaveRequest

</message>

</error>

This error is also showing in /IWFND/ERROR_LOG.

1.) Is it possible that this is related to the filter parameter since when we access

/sap/opu/odata/GBHCM/APPROVALS;o=EC6/LeaveRequestCollection we can view the leave request?


2.) Do we need to maintain filter option collection

3.) Or is it related to the definition scenario again?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

What was root cause for the statusCode undefined error? Sharing info helps others.

Regards,

Masa

SAP Rapid innovation Group - RIG

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Root cause is /sap/opu/odata/GBHCM/APPROVALS.

It should be     /sap/opu/odata/GBHCM/LEAVEAPPROVAL.

How did you create the /GBHCM/APPROVALS? Only you know it.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

I don't really know how we solved that issue. We just redid the system alias, re-added the services for leave approval and taskprocessing and redid the scenario definition.

Former Member
0 Kudos

Hi Masa,

The external service name for the leave request approval is /GBHCM/APPROVALS. I have verified this on /IWFND/maint_service as well.

If I do access odata without the filtering (/sap/opu/odata/GBHCM/APPROVALS;mo/LeaveRequestCollection),  I can see the leave requests.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Please check the add-on component on ERP.

Is there GBHCM003 SP07?

If the add-on is available, activate the service /GBHCM/LEAVEAPPROVAL (External service name is LEAVEAPPROVAL) ,  not /GBHCM/APPROVALS!

Please follow the installation guide! http://help.sap.com/fiori

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

We are using GBHCM003 SP06 and the service that is available on that add-on is GBHCM/APPROVALS. I'll try if we can install SP07 instead and see if that solves our error.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

Root cause is you have activated wrong service. GBHCM/APPROVALS is wrong.

Regards,

Masa

SAP Rapid Innovation Group - RIG

Former Member
0 Kudos

Hi Masa,

Finally resolved the error. We did what you suggested. The root cause was indeed because of the wrong service.

It's just weird that the service was not installed on SP06. After upgrading to SP07, we finally can see the leave requests.

Thanks for all the help.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Melanie,

I'm sure the service is in SP06. You have activated wrong service.

Lesson and Learned: Follow the installation guide.

Regards,

Masa

SAP Rapid Innovation Group - RIG