cancel
Showing results for 
Search instead for 
Did you mean: 

error testing /sap/opu/odata/IWPGW/TASKPROCESSING;v=2;mo/TaskCollection/$count due to "mo" parameter

former_member402516
Discoverer
0 Kudos

Hi Experts

We are getting error ( Resource not found for the segment 'TaskCollection'. ) while try to test the service /sap/opu/odata/IWPGW/TASKPROCESSING;v=2;mo/TaskCollection/$count

If we remove the parameter "mo" the service is retuning the value without error, it could be related to some patch?

the debug option contains bellow lines:

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

Resource not found for the segment 'TaskCollection'.

Exception /IWCOR/CX_DS_URI_NOT_MATCHING occurred in Class /IWCOR/CL_DS_URI, in Method HANDLE_RESOURCE_PATH, in Line 96

77       lo_entity_set = lo_entity_container->get_entity_set( lv_name ).
78       IF lo_entity_set IS BOUND.
79         /iwcor/if_ds_uri~entity_set = lo_entity_set.
80         handle_entity_set( io_entity_set    = lo_entity_set
81                            iv_key_predicate = lv_key_predicate ).
82         RETURN.
83       ENDIF.
84 
85       " 3. Check, if first segment is a FunctionImport----------------------------------------------------------
86       lo_function_import = lo_entity_container->get_function_import( lv_name ).
87       IF lo_function_import IS BOUND.
88         handle_function_import( io_function_import    = lo_function_import
89                                 iv_key_in_parentheses = lv_key_in_parentheses
90                                 iv_key_predicate      = lv_key_predicate ).
91         RETURN.
92       ENDIF.
93     ENDIF.
94 
95     " In all other cases raise invalid URI exception.
96 RAISE EXCEPTION TYPE /iwcor/cx_ds_uri_not_matching
97       EXPORTING
98         textid  = /iwcor/cx_ds_uri_not_matching=>invalid_segment
99         segment = lv_segment.
100  

101 ENDMETHOD. "HANDLE_RESOURCE_PATH

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

Thanks in advance for your help

Regards

Juan

Accepted Solutions (0)

Answers (0)