We are view ODATA API that are published in SAP API Hub. These APIs can be consumed through various tools available in the market. POSTMAN is one such tool that we might be using to query the ODATA API for retrieving the data.
There are situations wherein we might get various different issues when we try to query the ODATA API. In the current blog, I have detailed on the steps for troubleshooting various issues that we might encounter.
We might face the situation wherein the ODATA API is executed successfully in SAP Gateway Client i.e. when we execute the API using the transaction /n/iwfnd/gw_client. But the same ODATA API fails when executed using POSTMAN.
When we execute the ODATA Service using POSTMAN then we get the error “The service is not recognized for user <xyz>”. When we encounter such issues then we can do following troubleshooting process:
- First verify whether the SSL Certificate verification is disabled
- Check whether the URL is proper by verifying in the backend system. Use transaction: SMICM->GoTo->Services.
Verify the HostName and Port specified in POSTMAN is same as that in the backend.
- Check whether the logon credentials in “Basic Auth” in “Authorization” tab is correct. Verify by logging on to the ABAP backend system.
- Check in the ABAP backend system whether the “SAP system Alias” is specified.
Using Transaction: /n/iwfnd/maint_services -> using “Filter” option. In the below screenshot, I have provided example ODATA API name. You can search for the ODATA API which is of interest.
Verify whether the ODATA service has the “SAP system alias”. If it is not specified then please specify one by adding new entry
- Check whether the metadata loads correctly in backend
- Remove all “Cookies” from the POSTMAN
- Now verify whether the $metadata is able to fetch the details about the ODATA service.
- If the error still exist then verify the error in the backend.
/n/iwfnd/maint_services -> Filter the ODATA service and check the error log.
The troubleshooting approach will help to resolve the issues that occur when POSTMAN is used to execute the ODATA API.