Skip to Content

User impersonation support by SAP JCo

Dear all,

I have a question on how user impersonation (in other words user delegation) is supported by SAP JAVA Connector (JCo).

Let say I have an 3rd party JAVA application communicating with SAP NetWeaver ABAP based system. The JAVA app actually manipulates the data in SAP by calling BAPI. What are my possibilities of having user which is used to connect from JAVA app to SAP delegated? E.g. instead of using generic user to manipulate the data a real user (who is logged to JAVA app) would be used to make a call into SAP.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 08, 2015 at 06:47 AM


    it's like connecting to ABAP AS via any other method. You have to authenticate before it allows you to execute any FM. For example check this example from SAP documentation.

    SAP JCo Scenario: Online Invoice - Components of SAP Communication Technology - SAP Library

    Here the web app written in Java is using JCo to connect to ABAP AS. It uses username and password for authentication. So it means it needs to know these for current user. JCo also supports using logon tickets for authentication. In that case the app somehow needs to get the ticket for a user.


    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      I did not check the JCo API but I am pretty sure that you can make two calls with different user from same app. You can just create multiple instances of JCo.client and each client will use different user. How they authenticate (user/password or SSO logon) is a different issue. Yes, I meant business object server.