Using RFCs

Create an Action project using BAPIs, RFCs to consume specific methods of SAP system.

Prerequisites

  • You have created an RFC destination in SAP BTP cockpit. For more information, see Create RFC Destinations in SAP BTP cockpit.

  • You've installed and configured the Cloud Connector on your operating system. For more information, see the following topics:
  • To fetch the BAPIs from an S/4 system, you need to allow the 'RFC_FUNCTION_SEARCH' BAPI in the resources section of Cloud Connector.

Context

BAPI Overview

BAPIs (Business Application Programming Interface) are specific methods for SAP business objects, which are stored in the BOR (Business Object Repository) of the SAP system and are used for carrying out specific business tasks.

In the SAP system, BAPIs are stored as RFC (Remote Function Call) capable function modules in the ABAP (Advanced Business Application Programming) Workbench Function Builder. BAPIs have standard business interfaces that enable external applications (with the help of SAP business objects) to access SAP processes, functions, and data.

Client programs that use BAPIs to access SAP business objects can be part of the same SAP system, part of an external system (for example, a .Net application), part of an HTTP Gateway, or part of another SAP system.

Procedure

  1. Navigate to Start of the navigation pathConnectors Next navigation step ActionsEnd of the navigation path.
  2. Choose Start of the navigation pathCreate Next navigation step Choose an API Source Next navigation step Live APIEnd of the navigation path.
  3. Choose BAPI's, RFC's.
  4. Choose the relevant source destination that best suits your requirement.
  5. Continue with your selections and choose Next.
  6. You can choose the following options: In the dialog that appears, you can select any of the following options:
    • Add to Project: This option allows you to integrate new elements directly into an existing project. Select this option if you have already created a project and wish to add more resources to it.

    • Preview: This feature allows you to review information or elements before deciding whether to add them to your project. Use this option if you need to understand the specifics or details of an item before committing to add it.

    • Create New Project: This option is suitable for creating a new, independent project using various methods supported by BAPIs (Business Application Programming Interfaces) and RFCs (Remote Function Calls). Choose this when you require a separate project setup rather than being added to an existing project.

  7. In the Create an Action project dialog box, enter the Project Name and a Short Description.
  8. Choose Create.