none
Issue in connecting SAP using SAP Adpater in BizTalk Server 2013 R2 RRS feed

  • Question

  • Dear All,
    I am able to configure SAP adapter but when I try to import SAP RFC schema in VS 2013 I get below exception
    Pls advise
    Connecting to the LOB system has failed.  Details: ErrorCode=RFC_OK. ErrorGroup=RFC_ERROR_LOGON_FAILURE. SapErrorMessage=Name or password is incorrect (repeat logon).  AdapterErrorMessage=..

    -- Regards Sandeep

    Friday, August 26, 2016 6:15 PM

Answers

  • Hi Sandeep

    It is not an issue with rfc dll as login also fails with SAP GUI.

    You need to check with your SAP BASIS Admins as noted earlier-

    Basically, looks like they configured the SAP account for BizTalk as a background user and hence the login is failing. The account should be aDIALOG user.

    You can direct them to below thread-

    http://scn.sap.com/thread/1007093


    Thanks Arindam

    • Marked as answer by Sandeep.Handa Monday, August 29, 2016 6:33 PM
    Friday, August 26, 2016 7:00 PM
    Moderator

All replies

  • Dear Rachit,

    As per blog version of DLL librfc32u.dll need to be checked and which is 7200.0.800.8332


    -- Regards Sandeep


    Friday, August 26, 2016 6:23 PM
  • Hi Sandeep

    Ask your SAP BASIS Admin to reset the password for the SAP account that you are using from BizTalk. Confirm that you can login to SAP with these credentials from SAP GUI - you can check this from a machine where SAP GUI is installed. Don't install SAP GUI on BizTalk machine.

    Refer-

    https://scn.sap.com/thread/1947187



    Thanks Arindam


    Friday, August 26, 2016 6:30 PM
    Moderator
  • Hi Sandeep,

    Make sure that your user ID and password is configured in the SAP system...

    if it is check if the user account is locked ???

    If not makes sure that password set for user confirms with the password guide lines for the SAP system.

    If the password is default, change it

    Regards.


    Mandar Dharmadhikari

    Friday, August 26, 2016 6:32 PM
  • Dear Arindam,

    I checked user in SAP logon and I got exception as "Logon with dialog user" would this be the issue.

    Also please advise what all authorization SAP Basis team need to give to SAP user so that BizTalk can able to connect with SAP.


    -- Regards Sandeep

    Friday, August 26, 2016 6:33 PM
  • Dear Arindam,

    Client have installed SAP logon on BizTalk Machine, should I ask them to uninstall.


    -- Regards Sandeep

    Friday, August 26, 2016 6:35 PM
  • Hi Sandeep

    "I checked user in SAP logon and I got exception as "Logon with dialog user" would this be the issue."

    So, you have your answer. Ask the SAP Basis team to fix the above error and you will be able to connect from BizTalk as well. It is a SAP problem, and you should not be debugging the above error.

    As a side note, you should not install SAP GUI on BizTalk machine. However, this isn't related to the problem you are facing. This is more of a best practice.


    Thanks Arindam



    Friday, August 26, 2016 6:39 PM
    Moderator
  • Hi Sandeep,

    Check the link below once...

    https://scn.sap.com/thread/699945


    Mandar Dharmadhikari

    Friday, August 26, 2016 6:40 PM
  • Hi Arindam,

    As you said  not to install SAP logon on BizTalk machine , would that be also an issue.


    -- Regards Sandeep

    Friday, August 26, 2016 6:44 PM
  • Basically, looks like they configured the SAP account for BizTalk as a background user and hence the login is failing. The account should be a DIALOG user.

    You can direct them to below thread-

    http://scn.sap.com/thread/1007093


    Thanks Arindam


    Friday, August 26, 2016 6:46 PM
    Moderator
  • Hi Arindam,

    As you said  not to install SAP logon on BizTalk machine , would that be also an issue.


    -- Regards Sandeep

    No, that is unrelated to this issue. My suggestion was a general best practice.

    Basically, looks like they configured the SAP account for BizTalk as a background user and hence the login is failing. The account should be a DIALOG user.

    You can direct them to below thread-

    http://scn.sap.com/thread/1007093


    Thanks Arindam



    Friday, August 26, 2016 6:48 PM
    Moderator
  • Hi Sandeep,

    If Rachit suggestion doesn't fix believe you will have to check at SAP end. Also was this working before or hapening for a new installation, if yes you may want to look at how the SAP adapter was installed, sharing sandro's article on that as well.

    BizTalk Checkhttps://blogs.msdn.microsoft.com/vijaysk/2012/09/27/rfc_error_logon_failure-saperrormessagename-or-password-is-incorrect-repeat-logon/

    Additional thead to verify in SAP:

    SAP Check: http://sapbasisinfo.com/blog/2014/06/09/sm59-name-or-password-is-incorrect-repeat-logon/

    SAP Adapter Installation Step by Step:

    https://sandroaspbiztalkblog.wordpress.com/2015/03/04/biztalk-server-20132013-r2-step-by-step-wcf-sap-adapter-installation-guide/


    Regards Pushpendra Singh : Please mark the reply as answer or vote it up, as deemed fit.

    Friday, August 26, 2016 6:51 PM

  • I checked user in SAP logon and I got exception as "Logon with dialog user" would this be the issue.

    Also please advise what all authorization SAP Basis team need to give to SAP user so that BizTalk can able to connect with SAP.

    Your SAP BASIS Admin needs to provide the required access to the user. To be able to login through SAP GUI the User should be Dialog user.

    I believe the user should be part of dialog, service and communication user mentioned below. Check with the SAP BASIS Admin guy.

    How to provide access? http://sapbasisjobssupporttraining.blogspot.com/2015/01/sap-user-administration.html

    Refer: https://support.winshuttle.com/s/article/SAP-Logon-Error-Please-logon-with-a-dialog-user?language=en_US

    User-added image

    https://scn.sap.com/thread/711307

    User Types
     
    Dialog 'A'
    A normal dialog user is used by one person only for all types of logon.
     
    During a dialog logon, the system checks for expired and initial passwords and provides an option to change the password.
     
    Multiple dialog logons are checked and logged if necessary.
     
    System 'B'
    Use the system user type for internal system processes (-> background processing) or system-related processes (-> ALE, workflow, TMS, CUA).
     
    Dialog logon (using SAP GUI) is not possible.
     
    A user of this type is excluded from the general settings for password validity. Only user administrators can change the password using transaction SU01 (Goto -> Change Password).
     
    Multiple logons are permissible.
     
    Communication 'C'
    Use users of type Communication for dialog-free communication between systems (-> RFC or CPIC) .
     
    Dialog logon (using SAP GUI) is not possible.
     
    The general settings for the validity period of a password apply to users of this type. Users of this type can change their passwords (like dialog users). The dialogs for changing the password must be provided by the caller (RFC/CPIC client). You can use the RFC function module USR_USER_CHANGE_PASSWORD_RFC or the RFC API function RfcOpenEx() to change the password.
     
    Service 'S'
    A user of the type Service is a dialog user that is available to an anonymous, larger group of users. Generally, this type of user should only be assigned very restricted authorizations.
     
    For example, service users are used for anonymous system access using an ITS service or a public Web service. Once an individual has been authenticated, a session that started anonymously using a service user can be continued as a personal session using a dialog user (see SUSR_INTERNET_USERSWITCH)
     
    During logon, the system does not check for expired and initial passwords. Only the user administrator can change the password.
     
    Multiple logon is allowed.
     
    Reference 'L'
    Like the service user, a reference user is a general user, not assigned to a particular person. You cannot log on using a reference user. The reference user is only used to assign additional authorization. Reference users are implemented to equip Internet users with identical authorizations.
     
    On the Roles tab, you can specify a reference user for additional rights for dialog users. Generally, the application controls the allocation of reference users. You can allocate the name of the reference user using variables. The variables should begin with "$". You assign variables to reference users in transaction SU_REFUSERVARIABLE.


    Rachit Sikroria (Microsoft Azure MVP)





    Friday, August 26, 2016 6:55 PM
    Moderator
  • Dear Pushpendra,

    On your point BizTalk Check ..As per blog version of DLL librfc32u.dll need to be checked and which is 7200.0.800.8332 ..advise would I need to upgrade this version as I blog it ask to upgrade ...as seeing I got latest version for dll.


    -- Regards Sandeep

    Friday, August 26, 2016 6:58 PM
  • Hi Sandeep

    It is not an issue with rfc dll as login also fails with SAP GUI.

    You need to check with your SAP BASIS Admins as noted earlier-

    Basically, looks like they configured the SAP account for BizTalk as a background user and hence the login is failing. The account should be aDIALOG user.

    You can direct them to below thread-

    http://scn.sap.com/thread/1007093


    Thanks Arindam

    • Marked as answer by Sandeep.Handa Monday, August 29, 2016 6:33 PM
    Friday, August 26, 2016 7:00 PM
    Moderator
  • Dear All,

    Thanks issue resolved, it was user id which is not configured as dialog user


    -- Regards Sandeep

    Monday, August 29, 2016 6:33 PM