Calling BAPIs via BAPI Control 

Task

Call a business object from the R/3 system using the SAP BAPI Control and display the data in a table using the Table View Control.

The application must

Overview: Unit Objectives

In this unit you will learn how to

Prerequisites

Basics

The SAP business objects of the Business Object Repository (BOR) encapsulate their data and processes. External access on the data and processes is possible only using special methods of the SAP business objects, the BAPIs (Business Application Program Interface). These BAPIs present a simple open interface to the business functionality of the R/3 system. An external application must know the interface definition of a BAPI method in order to use the method. The interface of a BAPI is defined by:

In the R/3 system, the BAPIs are implemented as function modules. Each function module that underlies a BAPI,

In Windows 95 and Windows NT, BAPI methods can be called using SAP's BAPI ActiveX Control. The control allows external applications to access business objects in the BOR by calling the BAPIs via OLE Automation.

Solutions

BAPIs are defined as methods of the SAP business objects in the Business Object Repository (BOR) and implemented as function modules.

This division into definition and implementation results in two ways of accessing BAPIs:

  1. Since each function module underlying a BAPI supports the RFC protocoll, you can access the function modules via RFC calls.
  2. You can call the method of the SAP business object in the BOR.

This unit uses solution 2.

How to Continue

Architecture

or

Exercise 1: Design the Form