Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SAP UI5 AND XS engine-ODATA

$
0
0

In UI5 when using odata services on Calc views with parameters, we have the foll. Entity sets which are shown as part of the metadata

 

<EntitySet Name="TOP_N_PRODUCT" EntityType="hana-poc.Top_N_Products_Price.TOP_N_PRODUCTType"/>

<EntitySet Name="TOP_N_PRODUCTParameters" EntityType="hana-poc.Top_N_Products_Price.TOP_N_PRODUCTParametersType"/>

 

These when used in the browser returns the right results

 

http://xxxx:8000/hana-poc/Top_N_Products_Price.xsodata/TOP_N_PRODUCTParameters(P_COUNT=5,P_KUNNR='',P_SPART='10',P_VKORG='1000',P_VTWEG='10')/Results?$format=json

 

 

 

When this odata service is used via SAP UI5, UI5 generates foll queries which are which are incorrect

 

 

 

 

http://xxxx:8000/hana-poc/Top_N_Products_Price.xsodata/TOP_N_PRODUCTParameters(P_KUNNR='0000100001',P_SPART='10',P_VKORG='1000',P_VTWEG='10',P_COUNT=5)/$metadata

http://xxxx:8000/hana-poc/Top_N_Products_Price.xsodata/TOP_N_PRODUCTParameters(P_KUNNR='0000100001',P_SPART='10',P_VKORG='1000',P_VTWEG='10',P_COUNT=5)/TOP_N_PRODUCT/$count

http://xxxx:8000/hana-poc/Top_N_Products_Price.xsodata/TOP_N_PRODUCTParameters(P_KUNNR='0000100001',P_SPART='10',P_VKORG='1000',P_VTWEG='10',P_COUNT=5)/TOP_N_PRODUCT?$skip=0&$top=100&$inlinecount=allpages

 

Please suggest what could be the issue?

  1. SAP UI5 version
  2. Issues of declaration

Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>