cancel
Showing results for 
Search instead for 
Did you mean: 

Error while accessing Fiori Shopping Cart Approval Application

Former Member
0 Kudos

Hello,

Hello,

We are getting HTTP Status code 404 while accessing Fiori Shopping Cart Approval application. After looking into logs further, it looks

System is returning error message while processing following OData service.

http://<hostname>:port/sap/opu/odata/GBSRM/CARTAPPROVAL;mo/Workfl

owTaskCollection?$filter=(SAP__Origin%20eq%20'LOCAL'%20and%20(TaskType%

20eq%20'TS40007953'))

When we checked CARTAPPROVAL OData service, it doesn't have entity set WorkflowTaskCollection.

Any thoughts on this would be helpful.

THanks,

Balaram Naidu

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think system alias assignment is wrong. It should point SRM backend but your URI says LOCAL.

CARTAPPROVAL shoud have SRM backend system alias.

Former Member
0 Kudos

Hello Masayuki,

Thanks for your reply.Gateway is installed(Local installation) on SRM server and it also aslo acts as a backend system. hence system alias is LOCAL.

Thanks,

Balaram Naidu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you get metadata?

Go to transaction /IWFND/GW_CLIENT.

Execute /sap/opu/odata/GBSRM/CARTAPPROVAL/$metadata by GET method.

or

http://<hostname>:port/sap/opu/odata/GBSRM/CARTAPPROVAL/$metadata


Former Member
0 Kudos

Hello Masayuki,

I am gettnig metadata with above url,but it doesn't show entity set workflowTaskCollection which caused the issue.

OData call  from browser:

http://<hostname>:port/sap/opu/odata/GBSRM/CARTAPPROVAL;mo/Workfl

owTaskCollection?$filter=(SAP__Origin%20eq%20'LOCAL'%20and%20(TaskType%

20eq%20'TS40007953'))

Entity sets in cartapproval service

Line|Entity Set                       |

----------------------------------------

|  1 |SubscriptionCollection           |

|  2 |NotificationCollection           |

|  3 |SrmapprovalheaderCollection      |

|  4 |SrmapprovaloverviewCollection    |

|  5 |SrmapprovalproductsCollection    |

|  6 |SrmapprovalemployeeCollection    |

|  7 |SrmapprovaldecisionsCollection   |

|  8 |SrmitemapprovaloverviewCollection|

|  9 |SrmapprovalaccountsCollection    |

| 10 |SrmapprovalitemapprovalCollection|

Thanks,

Balaram Naidu Bankuru

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think you are using old version 1. Please specify the version 2 in the scenario definition configuration and /IWFND/MAINT_SERVICE transaction.

Former Member
0 Kudos

Hello Masayuki,

We are using version 2 of CARTAPPROVAL service and it doesn't have workflowRaskCollection enity set either.

Thanks,

Balaram Naidu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

What is Support Package level for GBSRM001? The latest one is SP09.

Former Member
0 Kudos

Hello Masayuki,

SP level of GBSRM001 is 7.

GBSRM0017000007SAPK-70007INGBSRM001GBSRM001 SRM Shopping Cart Approval 1.0

Thanks,

Balaram Naidu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please check the program code in the transaction SE24.

If the code is available, delete the GW cache by execution following transactions.

/IWFND/CACHE_CLEANUP in Gateway.

/IWBEP/CACHE_CLEANUP in SRM.

Model Provider Class: /GBSRM/CL_APV_SC_MDP, Methof DEFINE

...

* Define Entities

   define_entity_workflowtask( ).

...

Data Provider Class: /GBSRM/CL_APV_SC_RDP, Method GET_ENTITYSET

...

CASE iv_entity_name.

     WHEN 'WorkflowTask'.

...

Former Member
0 Kudos

Hello Masayuki,

Thanks for your response.After followed about steps,we have observed http 500 response code in the browser.when I checked http logs,it looks like browser is requesting following resource and there is no such resource exists on server.

http://<host>:<port>/sap/opu/odata/GBSRM/CARTAPPROVAL/;v=2;mo/WorkflowTaskCollection?$filter=(SAP__O...

However,if we remove "/" after CARTAPPROVAL in above url(http://dl3803.ltisap.com:8040/sap/opu/odata/GBSRM/CARTAPPROVAL;v=2;mo/WorkflowTaskCollection?$filter...
),we are not getting any error..We also observed that system is appending "/" during forming url in gateway service.

Any thoughts on this?

Thanks,

Balaram Naidu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

My test system does not have "/" after cartapproval.

So some note is missing in your system. Please double check.

Former Member
0 Kudos

Thanks Masayuki. Issue is resolved after applying the note.

Appreciate your help.

Thanks.

Balaram Naidu

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

What note was missing?

Former Member
0 Kudos

1821503

Answers (0)