Show TOC

Standardized BAPIsLocate this document in the navigation structure

Use

Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a large number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.

Features

The following standardized BAPIs are provided:

Reading instances of SAP business objects

  • GetList ( )

    With the BAPI GetList( ) you can select a range of object key values, for example, company codes and material numbers. The BAPI GetList( ) is a class method. For more information see Programming GetList() BAPIs .

  • GetDetail ( )

    With the BAPI GetDetail( ) the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail( ) is an instance method. For more information see Programming GetDetail() BAPIs .

BAPIs that can create, change or delete instances of a business object type.

The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after customer 1 has been created, a second customer 2 is created in the same transaction, the second BAPI call must not affect the consistency of customer 1. After completing the transaction with a Commit Work , both the customers are saved consistently in the database.

  • Create ( ) or CreateFromData ( )

    The BAPIs Create( ) or CreateFromData( ) create an instance of an SAP business object type, a flight booking or a customer, for example. These BAPIs are class methods. For more information see Programming Create() BAPIs .

  • Change ( )

    The BAPI Change( ) changes an existing instance of an SAP business object type. The BAPI Change ( ) is an instance method. For more information see Programming Change() BAPIs .

  • Delete ( ) and Undelete ( )

    The BAPI Delete( ) deletes an instance of an SAP business object type from the database or sets a deletion flag. The BAPI Undelete( ) removes a deletion flag. These BAPIs are instance methods. For more information see Programming Delete() BAPIs .

  • Cancel ( )

    Unlike the BAPI Delete( ) , the BAPI Cancel( ) cancels an instance of a business object type, that is the instance to be cancelled remains in the database and an additional instance is created which is actually canceled. The Cancel( ) BAPI is an instance method. For more information, see Programming Cancel() BAPIs .

  • Add<subobject> ( ) and Remove<subobject> ( )

    The BAPI Add<subobject> adds a subobject to an existing object instance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods. For more information, see Programming Methods for Subobjects .

BAPIs for Mass Data Processing

The BAPIs listed above for creating and changing data can also be used for mass processing. For more information, see BAPIs Used for Mass Data Transfer .

BAPIs for Replicating Business Object Instances

  • Replicate ( ) and SaveReplica ( )

    The BAPIs Replicate() and SaveReplica() are implemented as methods of replicable business object types. They enable specific instances of an object type to be copied to one or more different systems. These BAPIs are used mainly to transfer data between distributed systems within the context of Application Link Enabling (ALE). These BAPIs are class methods. For more information, see Programming Replicate()/SaveReplica() BAPIs .

Other Less Used Standardized BAPIs

Programming GetStatus() BAPIs

Programming ExistenceCheck() BAPIs