Skip to main content Skip to complementary content

SAP BAPI Connector user configuration

The BAPI Connector enables calls to Function Modules or BAPIs (Business Application Programming Interface) in an SAP BASIS System 6.40, 7.00, and later. The QA method of a BAPI is implemented as a Function module.

The Function Module has to be remote-enabled to be used from the connector.

Authorizations are required to use the BAPI Connector. Qlik provides two roles that contain the necessary authorizations. You can assign different roles to different users, depending on need, or both roles can be assigned to one user.

The QTQVCADMIN role is required for users who perform Qlik transactions in the SAP GUI.

The QTQVCACCESS role is used by a connector back-end user who performs extraction jobs from Qlik.

Configuring users

After the transports have been installed in the system, create one or more users as needed. You can also assign the roles to existing users.

Do the following:

  1. In the SAP system, go to transaction SU01.
  2. Click Create (F8).
  3. Give the new user a user a name and a password.
  4. For an existing user, enter the User ID and click Change (Shift + F6).
  5. On the Logon data tab, assign new users to User Type: Service.
  6. On the Roles tab, add the desired roles.
  7. Click Save.

If the installation is an upgrade from a previous version and any of the Qlik role have been updated, update all users assigned to the role.

Do the following:

  1. Go to transaction PFCG.
  2. Enter the role name QTQVCACCESS.
  3. Click Change Role.
  4. On the User tab, enter the name of the user(s) created above.
  5. Click User comparison.
  6. Click Complete comparison.
  7. Click Save.

A BAPI might check authorization objects that are not part of the Qlik roles. In that case, they can be added to the role QTQVCACCESS or added to an additional customer developed role that is assigned to the Qlik SAP user.

The log indicates if something is missing in the authorization:

2012-02-27 09:53:23 Error Returned: TYPE='E', ID='M7', NUMBER='120', MESSAGE='You have no authorization for this transaction in plant 3000', LOG_MSG_NO='000000', MESSAGE_V1='3000', ROW='0', SYSTEM='T90CLNT090'

Returned: TYPE='E', ID='M7', NUMBER='121', MESSAGE='You have no authorization for this transaction with movement type 501', LOG_MSG_NO='000000', MESSAGE_V1='501', ROW='0', SYSTEM='T90CLNT090'

Function modules in the SAP system

One of the ways you can find and test Function Modules in SAP is to use transaction code BAPI to look for available BAPI functions in the SAP system.

Do the following:

  1. Use the transaction code BAPI to provide an overview of the different areas in the SAP system and the BAPIs that can be used.

    BAPI Explorer

  2. Select an area and a specific BAPI function for test.

    BAPI Explorer with Functions selected

  3. Click Single Test to go to the test of the function screen.

    Test Function Module dialog

  4. Enter the values needed to run the function.

    Structure Editor dialog

  5. Run the function and wait for the result.

    Test Function Module dialog with Debugging option selected

    Debug entries list

    Structure Editor dialog with function results

If the result is satisfactory, it can be used in the script to retrieve the same result.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!