cancel
Showing results for 
Search instead for 
Did you mean: 

ODATA GET Issue with Postman

PGAKHAR
Explorer
0 Kudos
409

Error_ping.png

Hi Everyone,

Need your help on Below Query.

I Created Custom ODATA based on CDS ( with parameter ) on SAP S4 Private Cloud and able to execute or fetch result from gateway client and Browser. But if I am trying to Access same from Postman.( Need to use Same on CPI ).

I am getting Below Error.

Resource not found for segment '<CDSNAME>Type'.
 
Below is URL using on Postman.
GET
https://<server_details_port>/sap/opu/odata/sap/<CDS_Service>/<EntitySet>/(<list_of_paramaters_With_value_Sep_by_comma>
 
Any idea how to resolve this error?
 
Note: Correct Authentication is Maintained in Postman.
Only Encode URL Automatically and Automatically Follow Request settings are enabled. Rest all are disabled in postman including (SSL Certificate Verification).
Already tried to Load Meta Data Multiple times.
Metadata Fetching is working fine in Postman
 
Thanks,
PG

 

junwu
Active Contributor
0 Kudos
why not show the query url?
View Entire Topic
former_member213219
Participant

Hi Bodhisattwa,

In step 2, we are not downcasting, but 'NAVIGATING'.

Just to elaborate, CONTEXT NODES are of type IF_WD_CONTEXT_NODE, it may be root node (WD_CONTEXT) or any child node created under it.

Now lets say you want to read value of some attribute which is inside one of the child node of WD_CONTEXT, then you need to navigate (drill down) to get reference of that child node, and then read value of that attribute.

Statement MY_NODE = WD_CONTEXT->GET_CHILD_NODE( ' <Name of the node> ' ).

means that you are trying to navigate to a node (<Name of the node>), which is inside WD_CONTEXT (which refers to the root node of that controller).

Now lets say if there is one more node inside your child node, then to get reference of that node, you will have to write something like,

MY_CHILD_NODE_1 = WD_CONTEXT->GET_CHILD_NODE( ' CHILD_NODE_1 ' ).

MY_CHILD_NODE_2 = MY_CHILD_NODE_1->GET_CHILD_NODE( ' CHILD_NODE_2 ' ).

Hope this helps you to understand the concept.

Do let me know in case of any further concern.

Regards,

Harish


BODHISATTWA__20
Participant
0 Kudos

Understood , awesome explanation .I tried to up vote but its showing -1 instead of 1

former_member213219
Participant

Hi Matthew,

Thanks for the comments.

I used the word Navigating just to explain him the concepts of Nodes and how to navigate to get reference of child nodes.

I have given answer based on my understanding towards the question.

Anyways Vote doesn't matter for me, as far as we all learn something from each other 🙂

Regards,

Harish

matt
Active Contributor
0 Kudos

Perhaps your mind-reading skills are better than ours, enabling you to give him the answer he wanted, but not the answer to the question he actually asked! 🙂