RFC: Test the Business API (BAPI) with An ABAP Console App
Requires Customer/Partner License
Intermediate
20 min.
Test that the connection to the BAPI works (A BAPI is a type of RFC).
You will learn
- How to call a BAPI using RFC in an ABAP class
- How to test this class by outputting the data to the ABAP Console
Prerequisites
- IMPORTANT: This tutorial cannot be completed on a trial account
- IMPORTANT: This tutorial is part of the mission Connect Your On-Premise System with SAP BTP, ABAP Environment. Please work through the previous tutorials in the mission first; otherwise this tutorial may not work
The class:
- Connects to the backend system, such as an S/4HANA on-premise system.
- Calls the BAPI remotely via RFC.
- Reads the data from the back end into a local table.
- Outputs that local table to the ABAP Console.
In future, we hope to provide a helper class that generates the appropriate DDL source code for a custom entity and associated type definition - for any BAPI in your backend system. In the meantime, I have provided all the necessary code to use with BAPI_EPM_PRODUCT_GET_LIST
and BAPI_EPM_PRODUCT_GET_DETAIL
.
Throughout this tutorial, replace ###
or 000
with your initials or group number.