Troubleshooting guide for SAP Warehouse Operator Mobile App Setup

Estimated read time 9 min read

After you have made all the required configuration and Setup according to the Blog Post https://community.sap.com/t5/technology-blogs-by-sap/how-to-get-started-with-sap-warehouse-operator-app-v2-3/ba-p/13565699 and are still having issues with Onboarding to the Mobile Application, refer to the following troubleshooting guide to find the correct error messages and the required resolution. 

If you encounter errors during the onboarding process, that is after scanning the QR code from the SAP Mobile Service Cockpit. You need to see the exact error message in the Mobile Service Logs. To do so Navigate to the SAP Mobile Service Cockpit and click on the Logs from the left-side navigation  

If you find any of the Following Error messages in the Logs follow the resolution steps described below

 

Error Message 

Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 401 Response body: { “error”:”invalid_client”,”error_description”:”OAuth 2.0 Client authentication failed. The supplied OAuth 2.0 client credentials are invalid” } .  

Description 

 

You see this error message if you have maintained an incorrect password for the Communication User when creating the Destination in the SAP BTP Subaccount OR the Communication User is locked in the SAP S/4HANA cloud system. 

Resolution 

 

Make Sure you have maintained the correct password for the Communication User in the SAP BTP Destination configuration and unlock the Communication User from the SAP S/4HANA cloud system if the user is locked. 

 

Error Message 

Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 401 Response body: { “error”:”invalid_client”,”error_description”:”No OAuth 2.0 client authentication credentials included or used authentication method is unsupported. Supported authentication methods are specified in the ICF service configuration for the token endpoint in transaction SICF” } .  

Description 

 

You see this error message if you have maintained an incorrect  Communication Username when creating Destination in the SAP BTP Subaccount. 

Resolution 

 

Make Sure you have maintained the correct Communication Username in the SAP BTP Destination configuration 

 

Error Message 

Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Provided authorization grant is invalid. Exception was Entity https://my*******.s4hana.ondemand.com is not defined in the element ‘AudienceRestriction’. 

Description 

If the Audience URL is incorrect in the SAP BTP Destination configuration 

Resolution 

 

Make sure you copy the right Audience URL from SAP S/4HANA public cloud system. You can find this from the Communication Arrangement as shown in the screenshot below 

 

Error Message 

Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 404 Response body: <html><head><title>Service cannot be reached 

Description 

If the Token Service URL is incorrect 

Resolution 

 

Make sure to copy the right Token Service URL from the SAP S/4HANA public cloud system. You can find this in the Communication Arrangement as shown in the screenshot above  

 

Error Message 

Finished sending GET request to back end https://my-api.s4hana.ondemand.com/opu/odata4/sap/api_warehouse_2/srvd_a2x/sap/warehouse/0001/$metadata in 899 ms. HTTP status from the back end is 403. 

Description 

If the URL is incorrect 

Resolution 

 

Make sure the URL is maintained correctly in the Destination Configuration. This also could be cross-checked from the Communication Arrangement   

 

Issue 

Required Communication Scenario is not found when creating Communication Arrangement 

Description 

Missing scope items in the S/4HANA public cloud system

Resolution 

 

Make sure you have added the required scope items for the API. To know the scope item number refer to the Business Accelerator Hub documentation for the APIs. For example, the scope item required for Warehouse Order Task API is 3W0 this can be found as shown in the screenshot 

 

 

Error Message 

Finished sending GET request to back end https://my******-api.s4hana.ondemand.com/sap/opu/odata4/sap/api_warehouse_2/srvd_a2x/sap/warehouse/0001/ in 107 ms. HTTP status from the back end is 403 

Description 

Missing Roles in SAP S/4HANA cloud system to access the APIs 

Resolution 

Make Sure you have assigned the required Roles to the Business User in the SAP S/4HANA cloud system 

 

Error Message 

Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: The requested OAuth 2.0 scope cannot be granted because it is either not assigned to the current user or to the OAuth 2.0 client. 

Description 

 

The user is not configured correctly in SAP S/4HANA cloud system. There is no Business user created in the SAP S/4HANA cloud system or the Business Users are not created correctly in the system 

Resolution 

 

Follow the Blog and make sure the Business User is correctly configured  

https://blogs.sap.com/2023/05/19/setting-up-test-users-for-sap-warehouse-operator-app-in-the-sap-s-4hana-cloud-system/ 

Other Configuration Errors that could cause the Onboarding to fail 

Missing User Attributes in Application Configuration in IAS tenant. Make sure to maintain the Groups Attribute in the IAS Tenant 

 

Default Name Id Format not selected. Make sure to select Email as the default Name Id Format. 

 

 

​ After you have made all the required configuration and Setup according to the Blog Post https://community.sap.com/t5/technology-blogs-by-sap/how-to-get-started-with-sap-warehouse-operator-app-v2-3/ba-p/13565699 and are still having issues with Onboarding to the Mobile Application, refer to the following troubleshooting guide to find the correct error messages and the required resolution. If you encounter errors during the onboarding process, that is after scanning the QR code from the SAP Mobile Service Cockpit. You need to see the exact error message in the Mobile Service Logs. To do so Navigate to the SAP Mobile Service Cockpit and click on the Logs from the left-side navigation  If you find any of the Following Error messages in the Logs follow the resolution steps described below Error Message Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 401 Response body: { “error”:”invalid_client”,”error_description”:”OAuth 2.0 Client authentication failed. The supplied OAuth 2.0 client credentials are invalid” } .  Description  You see this error message if you have maintained an incorrect password for the Communication User when creating the Destination in the SAP BTP Subaccount OR the Communication User is locked in the SAP S/4HANA cloud system. Resolution  Make Sure you have maintained the correct password for the Communication User in the SAP BTP Destination configuration and unlock the Communication User from the SAP S/4HANA cloud system if the user is locked.  Error Message Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 401 Response body: { “error”:”invalid_client”,”error_description”:”No OAuth 2.0 client authentication credentials included or used authentication method is unsupported. Supported authentication methods are specified in the ICF service configuration for the token endpoint in transaction SICF” } .  Description  You see this error message if you have maintained an incorrect  Communication Username when creating Destination in the SAP BTP Subaccount. Resolution  Make Sure you have maintained the correct Communication Username in the SAP BTP Destination configuration  Error Message Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Provided authorization grant is invalid. Exception was Entity https://my*******.s4hana.ondemand.com is not defined in the element ‘AudienceRestriction’. Description If the Audience URL is incorrect in the SAP BTP Destination configuration Resolution  Make sure you copy the right Audience URL from SAP S/4HANA public cloud system. You can find this from the Communication Arrangement as shown in the screenshot below  Error Message Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: Unsupported OAuth Service content response type: text/html Response status code: 404 Response body: <html><head><title>Service cannot be reached Description If the Token Service URL is incorrect Resolution  Make sure to copy the right Token Service URL from the SAP S/4HANA public cloud system. You can find this in the Communication Arrangement as shown in the screenshot above   Error Message Finished sending GET request to back end https://my-api.s4hana.ondemand.com/opu/odata4/sap/api_warehouse_2/srvd_a2x/sap/warehouse/0001/$metadata in 899 ms. HTTP status from the back end is 403. Description If the URL is incorrect Resolution  Make sure the URL is maintained correctly in the Destination Configuration. This also could be cross-checked from the Communication Arrangement    Issue Required Communication Scenario is not found when creating Communication Arrangement Description Missing scope items in the S/4HANA public cloud systemResolution  Make sure you have added the required scope items for the API. To know the scope item number refer to the Business Accelerator Hub documentation for the APIs. For example, the scope item required for Warehouse Order Task API is 3W0 this can be found as shown in the screenshot   Error Message Finished sending GET request to back end https://my******-api.s4hana.ondemand.com/sap/opu/odata4/sap/api_warehouse_2/srvd_a2x/sap/warehouse/0001/ in 107 ms. HTTP status from the back end is 403 Description Missing Roles in SAP S/4HANA cloud system to access the APIs Resolution Make Sure you have assigned the required Roles to the Business User in the SAP S/4HANA cloud system  Error Message Encountered cloud destination ‘DESTINATION_NAME_IN_BTP’ configuration issue: The requested OAuth 2.0 scope cannot be granted because it is either not assigned to the current user or to the OAuth 2.0 client. Description  The user is not configured correctly in SAP S/4HANA cloud system. There is no Business user created in the SAP S/4HANA cloud system or the Business Users are not created correctly in the system Resolution  Follow the Blog and make sure the Business User is correctly configured  https://blogs.sap.com/2023/05/19/setting-up-test-users-for-sap-warehouse-operator-app-in-the-sap-s-4hana-cloud-system/ Other Configuration Errors that could cause the Onboarding to fail Missing User Attributes in Application Configuration in IAS tenant. Make sure to maintain the Groups Attribute in the IAS Tenant  Default Name Id Format not selected. Make sure to select Email as the default Name Id Format.     Read More Technology Blogs by SAP articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author