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?
- SAP UI5 version
- Issues of declaration