SAP Knowledge Base Article - Public

2831186 - Javascript exception while experiencing Try Out via SAP API Business Hub for your productive environment

Symptom

When you perform the try out function using the sandbox environment, through either the  SAP API Business Hub or POSTMAN, a Javascript exception is seen.

Environment

Productive environment, SAP API Business Hub.

Sample Productive environment details:

GET request - https://<host>.s4hana.ondemand.com:443/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrder?%24top=5

Basic Authentication - Your credentials

Reproducing the Issue

Perform the try out function using the sandbox environment, either through the SAP API Business Hub or POSTMAN. Following  Javascript exception is seen:

Exception details:

<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
</head>
<body onload="javascript:var url=window.location.hash;if(url&&(0!==url.length)){document.cookie=&quot;oucfarwtedaozedaoredzoabbzoewsccvuzezcb_anchor=&quot;+escape(url)+&quot;; path=/&quot;}document.forms[0].submit()">
<noscript>
<p>
<strong>Note:</strong> Since your browser does notsupport JavaScript, you must press the Continuebutton once to
</p>
</noscript>
<form method="POST" action="https://a1whbpe4x.accounts.ondemand.com/saml2/idp/sso/a1whbpe4x.accounts.ondemand.com">
<input type="hidden" name="SAMLRequest" value="PHNhbWxwOkF1dGhuUmVxdWVzdCBJRD0iU2ZhMTYzZWRhLTllZGEtMWVkOS1hYmI5LWU2MmNjNTQ5ZTljYiIgVmVyc2lvbj0iMi4wIiBJc3N1ZUluc3RhbnQ9IjIwMTktMDctMjRUMDQ6NTU6MDFaIiBEZXN0aW5hdGlvbj0iaHR0cHM6Ly9hMXdoYnBlNHguYWNjb3VudHMub25kZW1hbmQuY29tL3NhbWwyL2lkcC9zc28vYTF3aGJwZTR4LmFjY291bnRzLm9uZGVtYW5kLmNvbSIgRm9yY2VBdXRobj0iZmFsc2UiIElzUGFzc2l2ZT0iZmFsc2UiIEFzc2VydGlvbkNvbnN1bWVyU2VydmljZUluZGV4PSIwIiB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4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NFVQUVd2V1ZHWE9PbngwNUNVVnhwdVZXcmxoZEVQSGl3MmE5QWJMcVQ3bnQvRitoQUlYaUVJSlBWZFV3VmdYZmF5UnJCYU5NZgpMSDBreXY4ZWF6NEsyK3hDaFpCS2tQUzh1K3lhUG1xN3hOR0tpZGRaSSsyQjdITTE0dnNzMStvVjVBQzB1RUJRUUlPcUwzTXhsQVJSCkVFeVltZWdqKzNaQlVjOXpQT1lOUkp3SzdzRmpRdjBrU2o0WDBjTWNGOEQ5cTZCVlUwR0xOc1dIb0dTODhnZ1FkWWVzVGNkMVI1bkgKRUZpQVNXZnlKd3EyV1V6YzVaeVhSWWdoTWFyWU5tVEhxWnpWRzh2bmxLa2c3MUgzUnRpV3U0aTRNeGZmTVk5TnNMVlQvVFY1cUN1NwpwTmlZWmtCZWVqYk5WQkRqRUxnRE1jMys0NTd1TDM0VnBteWNpSVFCMWQ1RWZEODFPQ3hpTUl1NHRDOENwWTJrRU0xREF3M245Y2ZnCklhbHVvUTBmUGxSeUVkVjY2bzVXcGxHV0Ivc3duaUpSbGhqVUQ1QmlzT1VtaEk5VUhpZEFkZ3FjU3VQb3pENE8yOXl2Q3hCZmNlR3AKM1huKzVNSDlESDkzRXlMaCtYQ0hKQmFBMlEzNFQrTWJ0R2ttZEY3NTFYV3d2c043R1h4NXFESTE8L2RzOlNpZ25hdHVyZVZhbHVlPjwvZHM6U2lnbmF0dXJlPjxzYW1scDpOYW1lSURQb2xpY3kgRm9ybWF0PSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoxLjE6bmFtZWlkLWZvcm1hdDp1bnNwZWNpZmllZCIvPjwvc2FtbHA6QXV0aG5SZXF1ZXN0Pg&#x3d;&#x3d;">
<input type="hidden" name="RelayState" value="oucfarwtedaozedaoredzoabbzoewsccvuzezcb">
<noscript>
<input type="submit" value="Continue">
</noscript>
</form>

</body>

</html>

Cause

Connectivity issue between SAP Gateway system and S/4HANA cloud application.

Resolution

Raise an incident on SAP Gateway component to check the connectivity of S/4HANA cloud system

Keywords

Try out, Javascript exception, API Business Hub, Productive environment, Sandbox configuration , KBA , LOD-CHB-API , Content Hub – API Business Hub , Problem

Product

SAP S/4HANA Cloud all versions