cancel
Showing results for 
Search instead for 
Did you mean: 

Troubles with Approve Leave Request

0 Kudos

Hello ,


Hub deployment:

  • Currently, for the add on in ECC : SRA010 600
  • NW Gateway: UISRA010 100 0


I am able to see the number of pending entries to be approved from new launchpad, but, when I click on the getting error "Failure - Unable to start app"



When, I looked at gateway error log; I don't see any error.

But we see two errors with JS scipts:


1. /sap/bc/ui5_ui5/sap/hcm_ts_apv/Component-preload.js


2./sap/bc/ui5_ui5/sap/hcm_ts_apv/Component.js


With the the gateway client and execute the Odata service URL we still get 403 message.


We have a user with the correct authorizations and all services related to HCM applications are activated.


Thanks a lot for your help.

Tags edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello Pankaj,

We have all ready the correct SP:

GBHCM002 to SP12

GBHCM003 to SP10

UIX01HCM to SP03.

pankaj_bisht
Contributor
0 Kudos

Hi Said,

could you check in MSS whether the user has authorizations and you are able to approve the leave using the user in MSS.

best Regards

Pankaj

Former Member
0 Kudos

Hello Pankaj,

Normally, We have given all the authorizations for this user.

I have also checked in the service directly, I got the answer forbidden as well.

Regards,

Ying

pankaj_bisht
Contributor
0 Kudos

Hi Ying,

Could you try checking the results for the entities instead of component.js.

Also are you able to approve leave using the same user in MSS in Portal?

Best Regards

Pankaj

Former Member
0 Kudos

Hello, Pankaj,

I am not sure if it's what you are asking, I can see the result with the following url in the Odata Service:

About the second question, I have discussed with our HR colleagues, we can see and approve leave by this user.

And for me, if the user doesn't have the authorization, he should be able to enter the application and have 0 items, but not this error for accessing javascript?

What do you think?

Thank you in advance,

Regards,

Ying

pankaj_bisht
Contributor
0 Kudos

Hi Ying,

I am not sure why are you trying to access the js file.

For testing the app in Gateway you check the entities.

Could you test the entities whether you are able to get data. The screenshot above is fine to check that you service is reachable.

The next step after that is to test the entities for the data.

One example below to test the Leave Request Collection from the Gateway

/sap/opu/odata/GBHCM/LEAVEREQUEST;v=2/LeaveRequestCollection?$filter=StartDate%20eq%20datetime%272014-08-01T00:00:00%27%20and%20EndDate%20eq%20datetime%272014-11-01T00:00:00%27&$select=StatusCode,StatusName,AbsenceTypeCode,AbsenceTypeName,StartDate,StartTime,EndDate,EndTime&sap-client=001

Best Regards

Pankaj

Former Member
0 Kudos

Hello Pankaj,

As Said described, we cannot enter the application approve leave request because of the internal errors. The number 2 of the leave requests is correct, so I think the authorization part is Ok.

When I check the error in the console, it says the user is forbidden for accessing these two javascript files.

It's similar to this question

And I also tried to run /sap/bc/ui5_ui5/sap/hcm_lr_apv/Component.js

on the gateway, but when I tried to run it on service at the gateway,I got forbidden 403 too

Thank you for your url, I have run it without the last part &sap-client=001

I got an answer like this.

For me it's Ok as well.....

Regards,

Ying

pankaj_bisht
Contributor
0 Kudos

Hi Ying,


What is the UI5 library version in your system.

Best Regards

Pankaj

Former Member
0 Kudos

Hello Pankaj,

I run Fiori applicaiton and enter sap.ui.version in the console, it gives me "1.22.3".

I think it's the latest.

Regards,

Ying

Former Member
0 Kudos

Hello Pankaj,

We have found the solution, it's stupid, we forgot to active hcm_lr_apv in SICF for UI5.

Thanks a lot for your patience and help.

Best regards,

Ying

Answers (2)

Answers (2)

0 Kudos

Hello,

I confirm the Ying'answer, we have all this add-ons installed:

Backend:

IW_BEP (if central hub)

GBHCM002, leave request

GBHCM003, approve leave

Gateway:

UIX01EAP, UI for ERP central applications

UIX01HCM, UI for HCM applications

UIX01TRV, UI for Travel applications

pankaj_bisht
Contributor
0 Kudos

Hi Said,

What is the SP level for the components.

Could you please update the components

GBHCM002 to SP12

GBHCM003 to SP10

and UIX01HCM to SP03.

Best Regards

Pankaj

pankaj_bisht
Contributor
0 Kudos

Hi Said,

You are talking about Approve Leave Requests app and the components that you mention is for Approve Timesheets.

Also the BSP is for Approve Timesheets.

Could you please check which app you want to run.

Also Please install UIX01HCM which the new version for all 6 HCM Apps.

Important Note: Please use new UI with new SAP Fiori launchpad

Best Regards

Pankaj

Former Member
0 Kudos

Hello Pankaj

I have checked we can see in the gateway environement Application BSP hcm_lr_apv

And I can see the file component.js.

I suppose it means we have installed the UI part? But I still get forbidden.

Thank you in advance for your help,

Regards

Ying