Skip to Content
0

odata call sucessfullly triggered get 200 but no odata result in respone in hcp

Feb 10, 2017 at 11:49 AM

39

avatar image
Former Member

in network tab,i could see the odata sucessfully triggered but in response am not getting the odata results to bind.

10 |10000 characters needed characters left characters exceeded
Former Member

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no"><meta http-equiv="pragma" content="no-cache" /></head><body style="background-color:#FFFFFF" onload="var url=window.location.hash;if(url&&0!==url.length){var anchorCookie='oucrsmjgvazfvhigawxqyhaoj_anchor="'+encodeURIComponent(url)+'"';document.cookie=anchorCookie}document.forms[0].submit()"><p><script language="javascript">document.write("Please wait ...");</script></p><noscript><p>Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed.</p></noscript><form method="post" action="https://az5uqpbtj.accounts.ondemand.com/saml2/idp/sso/az5uqpbtj.accounts.ondemand.com"><input type="hidden" name="SAMLRequest" value="PEF1dGhuUmVxdWVzdCB4bWxucz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiB4bWxuczpuczI9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOm5zMz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnIyIgeG1sbnM6bnM0PSJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGVuYyMiIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZVVSTD0iaHR0cHM6Ly9nd2Fhcy1hY2Y4ZGIyYzQuaGFuYS5vbmRlbWFuZC5jb20vb2RhdGEvU0FQL1pfTU1fUFJPQ1VSRV9QQVlfU1JWL0lucXVpcnljb3N0Y2VudGVyU2V0PyRmaWx0ZXI9Q29zdENlbnRlciUyMGVxJTIw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ub3JnLzIwMDAvMDkveG1sZHNpZyNlbnZlbG9wZWQtc2lnbmF0dXJlIi8+PGRzOlRyYW5zZm9ybSBBbGdvcml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvMTAveG1sLWV4Yy1jMTRuIyIvPjwvZHM6VHJhbnNmb3Jtcz48ZHM6RGlnZXN0TWV0aG9kIEFsZ29yaXRobT0iaHR0cDovL3d3dy53My5vcmcvMjAwMC8wOS94bWxkc2lnI3NoYTEiLz48ZHM6RGlnZXN0VmFsdWU+R2tLUHptcnRKZ2RIQzZTU3g1RXV0alRkRERBPTwvZHM6RGlnZXN0VmFsdWU+PC9kczpSZWZlcmVuY2U+PC9kczpTaWduZWRJbmZvPjxkczpTaWduYXR1cmVWYWx1ZT5oT2xpRGMrTnVxMEFJbC9WV1NZWENxMGc5dHRKcTZETkp5T1EraTFVeTRqa3I3MFNXWXl2SzA3MTZaS0djM0p0WnI2RFVHdERSSHZqR3E5T3VYd2NDOVk2VWtRNW8yL3U5MGtpYzFHRy9pNCtsNEtMcnNIcEpxYUx6VUdreTdNVUJiT2tOMzV2SjFieFFSVkxuYlh4UXgxVlpMRnJFaUt1VmZuSlpnRTg4R3NLOUJtaFQ0ZkF6VElOeTlLVmxkcDA0ZHJZUnpiRDFlWkVWTnpHSFZpYW1qL3liMkxvMzd4SGM0a01SYnc1STJYUXVIbmJUcHJTbWRYLzlOcFJlNUQzcUlPMEJaWkZBZHdvNGxrQzZpZmhtcW01N0NXcEY4ZTFjZmhoWk1NTkFkc2pNZHhJOElhblZsR3gyKzFPZ1piSVRKNVVxMG5YZEQxMURMd0UvQWYvYXc9PTwvZHM6U2lnbmF0dXJlVmFsdWU+PC9kczpTaWduYXR1cmU+PC9BdXRoblJlcXVlc3Q+"/><input type="hidden" name="RelayState" value="oucrsmjgvazfvhigawxqyhaoj"/><noscript><input type="submit" value="Continue"/></noscript></form></body></html>

0
Former Member

below function to call

var serviceObjUrl = "xxxxx/SAP/Z_MM_PROCURE_PAY_SRV"; var useroDataModel = new sap.ui.model.odata.ODataModel (serviceObjUrl); sap.ui.getCore().setModel(useroDataModel); useroDataModel.read("/InquirycostcenterSet", this.requestBody, { success: jQuery.proxy(function(odata){}), error: jQuery.proxy(function(odata){}) }); var valueHelpData=""; useroDataModel.setHeaders( { "Access-Control-Allow-Origin" : "*", "Content-Type": "application/x-www-form-urlencoded", "X-CSRF-Token": "Fetch" }); useroDataModel.read("/InquirycostcenterSet?$filter=CostCenter eq '2161272' and CompanyCode eq '216' and LanguageKey eq 'E'", { async:false, success:function(oData, response){ var valueHelpData = oData; }, error:function(){}

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers