cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authentication incorrect to connect to SAP system via business application studio

vvinod
Explorer
18,251

Hello, I am trying to connect to backend SAP system via business application studio(BAS) to build fiori apps. However, when I select the data source as SAP system and enter my SAP GUI credentials for service username and password, it says authentication incorrect! as shown in the picture.

The destination is configured in cloud connector to connect to on premise SAP system and the SAP system shows up in BAS.

What could be wrong here?

Thanks Vinod

Accepted Solutions (1)

Accepted Solutions (1)

RazK
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi vvinod ,

The "HTML5.Timeout" property is defined in milliseconds. You should probably change its value to 60000.

BTW - In many cases there's no need to add this additional property to the destination configuration.

Regards - Raz

vvinod
Explorer
0 Likes

Hello Raz Korn,

I changed the value of timeout property but it has no effect on the error that I am receiving for Authentication failure.

What values are expected for service user name and password? Are they not same as user id and password that we use to logon to SAP system?

Thanks

Vinod

RazK
Product and Topic Expert
Product and Topic Expert

When configuring the destination to use basic authentication the credentials (user/pass) should be those for accessing the SAP system. If configured correctly then during the app creation wizard, in the Data Source selection step, you will not need to provide credentials. It might be that the user you're using is locked. If you change its password, do not forget to update the new password in the destination configuration.

As gregorw mentioned above you can configure the destination to use NoAuthentication and then whenever accessing the SAP system one will need to provide the credentials.

Additional resources that can help:

  1. https://blogs.sap.com/2020/10/13/how-to-check-the-connectivity-to-your-backend-system-in-business-ap...
  2. SAP Tech Bytes: Testing SAP BTP destinations

Regards - Raz

Answers (5)

Answers (5)

vvinod
Explorer

Hello Raz Korn,

Thank you for pointing me in the right direction. The error message "Authentication Incorrect" was misleading here even though the credentials were correct. The issue was with access policy that was set up in the cloud connector. Once all sub paths are allowed, I could get past this error message and retrieve my oData services.

The issue is resolved now.

Thank you

Vinod

gregorw
SAP Mentor
SAP Mentor

For the development connection exposing all path is OK. But for production expose only the needed services.

efallaruiz
Explorer

when i check and add the flag it worked

martin_grellmann
Explorer
0 Likes

For a Developer Extension in S4Hana Cloud, Public Edition I have on a similar situation. 

According to the example, Create Your Own Gadget Shopping App Using Developer Extensibility, it can't login to the customised oData v2

Has anyone a great Idea to resolve that situation? 

  1. Data source: OData Service
  2. in Eclipse ADT created Service URL
  3. Username from S4Hana Cloud, Public Edition (the same, what I enter into the Browser, when I'm open the preview into the Browser)
  4. The Password from 3.
  5. Klick on Login
  6. Notice (Authentication incorrect)

Best regards and Thank you for your Attention

aman_mittal
Explorer
0 Likes
Hi Martin, By any chance, did you get the solution for same? I am also trying to deploy an app from SAP BAS to S/4HANA Public Cloud consuming a SAP API hub standard API. But getting same issue.
former_member758248
Discoverer
0 Likes

Hello all,

I was reading your answers since I'm having a similar Authentication issue, the service password as a Mandatory field:

This are the destination properties and the additional ones:

I would really appreciate any advice, since I'm not being able to figure it out.

Thanks you in advance for your time!

Florencia.

Former Member
0 Likes

Hello all,

I had the same issue and solved it by inserting the correct "sap-client" value in the destination configuration:

Thanks.

Rafael.

gregorw
SAP Mentor
SAP Mentor
0 Likes

Have you tried without providing username and password? You've configured the username and password already in the destination. Otherwise try setting the destination to "NoAuthentication".

vvinod
Explorer

Hello Gregor,

When I tried without providing username and password, it doesn't do anything and the 'Next' button is disabled. I tried setting the destination to NoAuthentication and tried again but no luck.

Thanks

Vinod