Skip to Content
avatar image
Former Member

OData call doesn't prompt for SAP login and show an error instead

I'm working on a SAPUI5 application and I use Odata calls to communicate with the SAP ABAP Backend.

In the SICF node of my service (created using SEGW transaction) I didn't fill the user credentials, so I normally should be prompted to enter them once I launch the app.

Instead I get the following error message: Sorry, a technical error occurred! Please try again later.

{ "requestUri": "http://****/sap/opu/odata/sap/****/$metadata", "statusCode": 200, "statusText": "OK", "headers": [], "body": "<html>\r\n<header><title>SAP NetWeaver - Préparation de la connexion...</title></header>\r\n<style>\r\ntable{font-size:0.8em;}\r\n</style>\r\n<script>\r\n\r\nfunction icf_system_cookiesDisabled(){\r\nvar cookie_field = document.getElementsByName(\"sap-system-login-cookie_disabled\")[0];\r\nvar cookie_old = cookie_field.value;\r\ndocument.cookie = \"Active=true;EXPIRES=Monday, 31-Dec-2018 23:59:59 GMT;\";\r\nif (document.cookie.indexOf(\"Active=true\") >= 0) {\r\ndocument.cookie = \"Active=true;EXPIRES=Monday, 31-Dec-2018 23:59:59 GMT;\";\r\ncookie_field.value = \"\";\r\n}\r\nelse{\r\ncookie_field.value = \"X\";\r\n}\r\nreturn cookie_field.value != cookie_old;\r\n}\r\n</script>\r\n<body onload=\"icf_system_cookiesDisabled();document.forms[0].submit();\" style=\"overflow:hidden; font-family: Arial, sans serif;\" >\r\n<form method=\"POST\" action=\"HTTPS://****:8443/sap/opu/odata/sap/****/$metadata\">\r\n<noscript><iframe style=\"position:absolute;top:0;left:0;width:100%;height:100%\" src=\"?sap-system-login-oninputprocessing=onNoScript\"></noscript>\r\n\r\n<input type=\"hidden\" name=\"sap-system-login-oninputprocessing\" value=\"onProceed\">\r\n<input type=\"hidden\" name=\"sap-urlscheme\" value=\"http\">\r\n<input type=\"hidden\" name=\"sap-system-login\" value=\"X\">\r\n<input type=\"hidden\" name=\"sap-system-login-basic_auth\" value=\"\">\r\n<input type=\"hidden\" name=\"sap-client\" value=\"001\">\r\n<input type=\"hidden\" name=\"sap-language\" value=\"FR\">\r\n<input type=\"hidden\" name=\"sap-accessibility\" value=\"\">\r\n<input type=\"hidden\" name=\"sap-user\" value=\"\">\r\n<input type=\"hidden\" name=\"sap-password\" value=\"\">\r\n<input type=\"hidden\" name=\"sap-system-login-cookie_disabled\" value=\"\">\r\n\r\n<table width=\"100%\" height=\"100%\"><tr><td align=\"center\" valign=\"middle\">Préparation de la connexion...</td></tr></table>\r\n</form></body></html>" }

What can I do in order to get the standard sap Login screen instead of this error ?

capture.png (5.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers