Enable SAP ERP integration
  • 24 Sep 2024
  • 3 Minutes to read
  • Dark
    Light

Enable SAP ERP integration

  • Dark
    Light

Article summary

To enable SAP ERP integration, follow these steps:

  1. Install SAP Cloud Connector.
  2. Configure mutual authentication between SAP Cloud Connector and back-end system.
  3. Configure access control.
  4. Connect your web application to an on-premise system.
  5. Set up SAP Business Technology Platform (SAP BTP).
  6. Create a remote function call (RFC) destination.
  7. Configure BAPIs.
  8. Configure an ERP RFC user for SAP ECC integration.

Install SAP Cloud Connector

Download SAP Cloud Connector from the SAP Development Tools for Eclipse page.

For installation details, read the Installation documentation.

Configure authentication

Configure mutual authentication between SAP Cloud Connector and your back-end system.

For configuration details, read:

Configure access control

To allow your web application to access a back-end system on the intranet, indicate this system in the SAP Cloud Connector.

For configuration details, read:

Connect your web application to an on-premise system

To connect your web application to an on-premise system, read:

Set up SAP BTP

After installing SAP Cloud Connector, register the SAP Business Technology Platform (SAP BTP) account in it. SAP Cloud Connector creates a tunnel connection with the registered SAP BTP account as shown on the image below:

Tunnel connection between SAP Cloud Connector and SAP BTP account

Create a remote function call destination

The next step is to create a remote function call (RFC) destination. You can create an RFC destination at the account level or application level. All account-level destinations are accessible to all applications in the account, but not conversely. We recommend creating application-level destinations to enable applications to connect to QA or PROD ERP systems as needed.

The image below shows destination configuration in SAP Cloud Connector:

Destination configuration in SAP Cloud Connector

Configure BAPIs

The SAP ERP integration is facilitated by the Business Application Programming Interfaces (BAPIs) that enable access to SAP functions. To enable the integration, add BAPIs to the allowlist in SAP Cloud Connector.

The following table shows the BAPIs you need to add to the allowlist depending on the integration purposes.

Integration purposeBAPIs
Order creation and simulation
  • BAPI_INQUIRY_CREATEFROMDATA2
  • BAPI_QUOTATION_CREATEFROMDATA2
  • BAPI_SALESORDER_CREATEFROMDAT2
  • BAPI_SALESORDER_SIMULATE
  • COD_SALESORDER_SIMULATE
  • BAPI_TRANSACTION_COMMIT
  • RFC_METADATA_GET
  • RFC_PING
Data synchronization
  • RFC_READ_TABLE
  • BAPI_CHARACT_GETDETAIL
  • BAPI_CLASS_READ
  • RFC_METADATA_GET
  • RFC_PING
Product synchronization
  • BAPI_CHARACT_GETDETAIL
  • BAPI_CLASS_READ
  • BAPI_MATERIAL_GETALL
  • BAPI_MATERIAL_GET_PRODUCTHIER
  • CLAF_CLASSIFICATION_OF_OBJECTS
  • COM_CFG_READ_PRODUCT_VARIANT
  • COM_CFG_READ_ALL_PROD_VARIANTS
  • RFC_READ_TEXT
  • ZBDS_GOS_CONNECTIONS_GET
  • SO_DOCUMENT_READ_API1
  • RFC_METADATA_GET
  • RFC_PING
Account synchronization
  • BAPI_CUSTOMER_GETDETAIL2
  • BAPI_CUSTOMER_GETSALESAREAS
  • ISA_CUSTOMER_SALES_READ
  • RFC_METADATA_GET
  • RFC_PING
Custom table synchronization
  • RFC_READ_TABLE
  • RFC_METADATA_GET
  • RFC_PING
Creation of materials, bills of material, and routings
  • BAPI_TRANSACTION_COMMIT
  • BAPI_MATERIAL_EXISTENCECHECK
  • BAPI_ROUTING_EXISTENCE_CHECK
  • BAPI_MAT_BOM_EXISTENCE_CHECK
  • BAPI_MATERIAL_SAVEDATA
  • BAPI_MATERIAL_GETINTNUMBER
  • BAPI_MATINSPCTRL_SAVEREPLICA
  • BAPI_MATERIAL_BOM_GROUP_CREATE
  • BAPI_ROUTING_CREATE
  • RFC_METADATA_GET
  • RFC_PING
Solution Sales Configuration (SSC)
  • EXTRACT_DATA
  • SELECT_COUNT
  • RFC_METADATA_GET
  • RFC_PING
Equipment synchronization
  • ZBDS_GOS_CONNECTIONS_GET
  • SO_DOCUMENT_READ_API1
  • ITOB_EQUIPMENT_ENHANCED_READ
  • CIDEON/BAPI_EQUI_BOM_READ1
  • RFC_METADATA_GET
  • RFC_PING

Configure an ERP RFC user for SAP ECC integration

To integrate SAP ERP Central Component (SAP ECC) through Remote Function Calls (RFC), use a dedicated ERP user with permissions to execute RFC modules.

Create a user

Create a user using Transaction SU01. Assign the necessary permissions to this user.

Create a role

Create a role, such as Z_ISS_RFC, using Transaction PFCG. Use the following image as an example:

Create a role using Transaction PFCG

Depending on the document types used, you may need to patch BAPI SD_SALES_DOCU_MAINTAIN in current SAP releases to enable the transfer of manually entered pricing conditions. For details, read Note 177 on the SAP Support Portal page.

For some installed add-ons, you may also need to patch /SLCC/EXTRACT_DATA or /SLCE/EXTRACT_DATA.

Note

This functionality doesn't work by default in the following cases:

  • In SAP_AP beginning with the 23 release.
  • If you installed the support package SAPKNA7032. For details, read SAP Note 1995783 on the SAP Support Portal page.

Configure authorization data (without template)

Manually add needed authorization objects.

  • For SSC product configuration:
    • C_TCLA_BKA (configuration)
    • C_TCLS_BER (configuration)
    • C_TCLS_MNT (configuration)
    • K_KEKO (variant prices)
    • S_RFC (knowledge base export)
    • S_TABU_DIS (knowledge base export)
  • For sales order and quote creation or simulation:
    • V_VBAK_AAT (sales document)
    • V_VBAK_VKO (sales document)
  • For replication of ERP non-configurable material master:
    • M_MATE_STA (to pull material master, display C, K, V for STATM)

To add authorization objects, select Edit > Insert authorizations > From profile > S_A.SCON.

Authorizations

Grant full authorization for each object or restrict authorization as needed to create and save the single role (for example company code, sales document type, division).

Edit RFC user and assign role

Edit the RFC user and assign the Z_ISS_RFC role through Transaction SU01.

To debug a specific BAPI call, switch the RFC user to the Dialog mode and add the role SAP_BC_DWB_ABAPDEVELOPER to access SE37 with the RFC user.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.