
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.
You develop your BSP application on an SAP Web Application Server system that is stored 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.
Call the BAPI Browser by selecting in the page editor of the Web Application Builder. The system displays a list of all the RFC connections in your system environment.
You have two alternatives:
Use the navigation structure on the left-hand side of the screen.
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.
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.
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.
Use direct input.
Choose Direct Input.
In the following dialog box, enter the name of the BAPI or function module and the target system ID.
Confirm the dialog box.
Use the same procedure as described in 2. a) iii.
Save your entries in the Web Application Builder and continue with developing your BSP application.
When you use direct input, you enter either the name of a BAPI or a function module.
You can now use the BAPI or function module in your BSP.