Show TOC

Distribution Using BAPIsLocate this document in the navigation structure

Use

The integration of BAPIs and ALE makes it easier for you to develop your own ALE business processes for distribution.

BAPIs are methods of SAP business objects. They are defined in the Business Object Repository (BOR) and are subject to strict design guidelines. BAPIs are implemented as RFC-enabled function modules in the SAP system.

For more information about BAPIs, see the BAPI User Guide and the

BAPI Programming Guide .

You can also define BAPIs that are implemented outside the SAP system, but can be called from the SAP System. For more information, see BAPIs Used for Outbound Processing in the BAPI Programming Guide

BAPIs of SAP Interface Types in the BAPI User Handbook.

ALE provides a complete programming model for implementing BAPIs. ALE supports these method calls:

  • Synchronous method calls

    Synchronous method calls can also be used in ALE distribution scenarios. These calls can either be BAPIs or dialog methods .

    In ALE Customizing you can assign the RFC destinations to be used for a synchronous method call.

  • Asynchronous method calls

    If BAPIs are called asynchronously, ALE error handling and ALE audit can be used.

    If an asynchronous BAPI call is to be used for the distribution, the BAPI-ALE interface required for inbound and outbound processing can be automatically generated. Developing an ALE business process in ABAP is restricted to the programming of the BAPI.

    An object-oriented approach has the following advantages:

    1. Only one interface, which can be maintained by the application

    2. Automatic generation of the BAPI-ALE interface avoids coding errors

Process

If you are not enhancing an SAP BAPI and you are not creating your own BAPI when you are implementing an ALE business process, you can simply follow the steps below:

If, on the other hand, you want to enhance a BAPI or create your own, you have to follow these steps: