cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Leave Approval App (A problem occurred while reading the data)

former_member190313
Active Participant
0 Kudos

Hello ,

I have folowed all the steps for configuring leave application.Have implemented all the notes.

I get the data properly when testing this service in Gateway Client.

However at frontend i get below error :

Chrome gives below error log:

Please suggest.

Sheetal

Tags were edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
former_member190313
Active Participant
0 Kudos

Hi Meng,

I have done these configs.

Still get this error.

Please suggest

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

The error message clearly says that scenario definition is missing.

Please double check your customizing.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hi Masayuki,

I have rechecked the scenario def.

Plz see below screenshots :

Please suggest if anything is missing or incorrect.

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

How about system alias definition and RFC destination settings?

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello Masa ,

My system alias def is correctly configured. and we have same system for backend and gateway.

Regards,

Sheetal

former_member190313
Active Participant
0 Kudos

Hello Masa ,

In crome i am getting below errors:

Filesap/ui5_hcm_lr_apv/resources/sap/hcm/leaverequest/approve/uilib/i18n/i18n_en_US.properties NOT found!

Filesap/ui5_hcm_lr_apv/resources/sap/ca/common/uilib/i18n/i18n_en_US.properties NOT found!

Any suggestions on this?

Regards,

Sheetal

former_member190313
Active Participant
0 Kudos

Hello Masa ,

I have two Alias ; LOCAL and LOCAL_PGW.

For TASKPROCESSING , i have LOCAL_PGW.

and for ZLEAVEAPPROVAL i have used LOCAL.

Is this correct?

Regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Please ignore all i18n internationalization text issues. It is not related your issue and it is not important for the app.

Please identify the OData call in the network tab of Chrome.  Find the last called /sap/opu/odata/....

Regards,

Masa

SAP Rapid Innovation Group - RIG

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Yes. It is correct.

Please upload the screenshot of system alias definition. We need to check the flag and software version.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello Masa,

I dont see anything in Netwok tab.

It says no data is captured.

please suggest.

Sheetal

former_member190313
Active Participant
0 Kudos

Hello masa ,

Please check :

When I execute this application I get below error in SLG1

How to resolve this error

regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Open the network tab then run the app.

Ppst the last OData call in this thread.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hi masa ,

Please check the below screenshot ;

Do i have to add the taskprocessing as well in scenario definition?

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Copy the address and paste the URI after the port number in this thread. It says not found, so we need to check full URI address.

Regards,

Masa

SAP Rapid Innovation Group - RIG

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

I asked the URI address for "OData" because it it 404 not found error.

You can copy full URI address in Network tab of Chrome.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello Masa ,

the address is :

http://<Host>:<Post>/sap/opu/odata/iwpgw/taskprocessing;mo/ScenarioCollection/?$filter=key%20eq%20'L...

When i tested this link in Gateway Client i got the error :

<?xml version="1.0" encoding="utf-8" ?>

<code>005056A509B11EE1B9A8FEC11C21D78E</code>
<message
xml:lang
="en">Resource not found for
the segment 'ScenarioCollection'.
</message>
</error>

I checked metadata of TASKPROCESSING service.

I could not see ScenarioCollection entitty set.

Where is this coming from.

regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Please check error details in the transaction /IWFND/ERROR_LOG.

Regards,

Masa

SAP Rapid Innovation - RIG

former_member190313
Active Participant
0 Kudos

Hi masa,

The log says " Resource ScenarioCollection not defined in Metadata"

Regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

I'm sure you have not applied all required notes which are mentioned in the install guide.

It is the root cause.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello Masa,

Yes I had not implemented the note

1850312 :

Adding the Scenario collection to the TaskProcessing service

However I am not able to implment this note. while activating the objects i get the error :

Please suggest what is missing.

Regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

I think you have not applied mandatory notes mentioned in the install guide. 5 notes are part of 1866093.

1850312   Adding the Scenario collection to the TaskProcessing service

1821503   Fixes to Task Gateway service - Consumer Scenario collection

1805831   Workflow Support Decision options Nature (Positive/Negative)

1799807   Suppress Message /IWBEP/CM_MGW_RT 157

1799722   IW_BEP Adjustments to Task Gateway for SP06 - Geneva

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello masa ,

i have implemented all these note. Only note , 1850312   Adding the Scenario collection to the TaskProcessing service is giving me error whilr implementing.

Regards,

Sheetal

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sheetal,

Go to Gateway and call the transaction SNOTE -> Go to -> SAP note Browser -> open 1821503.

What is implementation status? It should be completely implemented.

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member190313
Active Participant
0 Kudos

Hello Masa,

Thanks the issue is resolved.

I had implemented the notes. however there was some error.

I unimplemented and implemented again. and it worked.

Thanks for all your help:)

Regards,

Sheetal

former_member182874
Active Contributor
0 Kudos

Hi Sheetal,

I am facing the same error and progressed in resolving it , but still getting the same error

I have implemented all the notes : as per below in Gateway system :

Please let me know the steps you have done prior implementing the above notes

Any other troubleshooting needs done ?

: Your help would be appreciated

Regards,

Tejas

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tejas,

In that case, your system alias definition or scenario definition is wrong.

Please double check other threads. Keywords are Fiori + scenario definition.

Redirecting...

Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member182874
Active Contributor
0 Kudos

Thanks Masa,

But I have double checked all the scenario definition and system alias.. and still getting the same error

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Tejas,

You can set external break points.

Class:

/IWPGW/CL_TGW_EDP_TASK

Method:

/IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_ENTITYSET

GET_ENTITYSET_EXTEND

ENTITYSET_CONSUMER_SCENARIO


Regards,

Masa

SAP Rapid Innovation Group - RIG

former_member182874
Active Contributor
0 Kudos

Masa,

Error got resolved yesterday and the application is working fine now.

1.  I tried re-creating the scenario definition and

2. tried checking RFC as well between HR system and Gateway.

3. Also, the manager id which we were using was enabled only for Portal and not sure if it needed SAP access as well, provided this as well

Still not sure, how this got resolved ..we need to have exact solution in order to avoid the same in future.

The same issue is now coming for Approve shopping cart as well.

Thanks a lot for your help here

Best regards,

Tejas

Answers (0)