Entering content frameBackground documentation BAPI Explorer Locate the document in its SAP Library structure

Overview

Using the Business Application Programming Interface (BAPI) Explorer, you can use BAPIs in your BSP applications, which means your BSP application can access data and processes from external application systems.

Example

You develop your BSP application on the SAP Web Application Server in your SAP system environment. You want to add an availability check of a certain material to your BSP application. To implement this check, you have to use the BAPI MaterialCheckAvailability, which is not on your SAP Web Application Server, but is stored in your application system. Using the BAPI Explorer on your SAP Web Application Server, you can select the BAPI and add the relevant type definitions and calls to your BSP application.

BAPI Explorer

This graphic is explained in the accompanying text

Procedure

  1. To start the BAPI Explorer, in the page editor of the Web Application Builder, choose Goto ® BAPI Explorer.
    The system displays a list of all the RFC connections in your system environment.
  2. You now have two choices:
    1. Use the navigation structure on the left-hand side of the screen.
      1. Choose your application system and double-click the relevant structure to expand it.
        The system displays a list of all BAPIs available in that application system.
      2. To select a BAPI, double-click it.
        The system displays the BAPI type definition in the upper right-hand window.
        In the lower right-hand window, the system displays an example of a call of the BAPI.
      3. Select the structures and types you need and use copy & paste or drag & drop to copy them to the type definition tab of your BSP in the Web Application Builder. Use the same procedure for the DATA statements and call template.
    1. Use direct input.
      1. Choose This graphic is explained in the accompanying text.
      2. In the following dialog box, enter the name of the BAPI or function module and the target system ID.
      3. Choose This graphic is explained in the accompanying text.
      4. Use the same procedure as described in 2. a) iii.
  1. Save your entries in the Web Application Builder and continue with developing your BSP application.

Note

When you use direct input, you enter either the name of a BAPI or a function module.

Result

You can now use the BAPI or function module in your BSP.

 

 

Leaving content frame