cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : Data is not displaying in ODATA

former_member227911
Participant
0 Kudos

Hi,

Good Day!

Am very new to SAP UI5 and also in ODATA.

As I have created a  ODATA in SEGW Tcode and also I have imported the data from the Structure and also I have wrote the logic in the DPC EXT a Simple select Query.

Once I run the SERVICE MAINTENANCE -> Click on Gateway Client am not able to display the data.

Accepted Solutions (1)

Accepted Solutions (1)

didier_bueno
Explorer
0 Kudos

Hello Sadiq:

If yo have implemented the logic for GET_ENTITY or GET_ENTITYSET methods, you will have to define what EntitySet you want to test. You can do it using this button:

If you dont have this button, you can replace you URL adding your entityset name, something like this:

/sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/EntitySetYouWantToTest   for testing GET_ENTITYSET method

OR

/sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/EntitySetYouWantToTest('KEY_VALUE')   for testing GET_ENTITY method

Rewards if usefull

Best regards,

Didier

former_member227911
Participant
0 Kudos

Hi Didier,

Thanks for your quick reply.

I have wrote the select query in the particular method 'YTESTSET_GET_ENTITYSET' as

Query:

  SELECT * FROM ytest
     INTO CORRESPONDING FIELDS OF TABLE ET_ENTITYSET
     WHERE (IV_FILTER_STRING).


And also I have this link /sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/?%24format=xml


As you suggest i need to run the particular method but tell me were exactly i want to place the method to test


Thanks for your help.



Regard,

Sadiq K




didier_bueno
Explorer
0 Kudos

Hello Sadiq:

Replace the URL

sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/?%24format=xml

With this:

sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/YtestSet

Best regards,
Didier

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

Please make sure ,the structure of your query should be same as the stricture of the entityset which you have created using SEGW..

Also if you have implemented ytestset_getentityset then  below url you need to hit

/sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/ytestset

and if you have implemented ytestset_getentity then below url you need to hit

/sap/opu/odata/sap/ZBRONTOBYTE_SRV_01/ytestset('value_of_key')

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

add /ytestset at the end of ..../*BYTE_SRV_01