on 05-15-2017 11:03 PM
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
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.