Entering content frame

Function documentation Standardized BAPIs Locate the document in its SAP Library structure

Use

Some BAPIs and methods provide basic functions and can be used for most SAP business object types. Such BAPIs are known as "standardized" BAPIs.

Features

With object methods and especially with BAPIs, you can differentiate between instance methods and class methods. Instance methods refer to precisely one instance (one specific occurrence) of an SAP Business Object type, for example, to one explicitly specified customer order. Whereas class methods are instance-independent.

BAPIs for Reading Data

The following BAPIs provide you with read-only access to data in the associated business object type:

GetList()

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

For more information see Structure link Programming GetList() BAPIs.

GetDetail()

The BAPI GetDetail() uses a key to retrieve details about an instance (one specific occurrence) of a business object type and returns this data to the calling program. Then this information is reported back to the calling program. The BAPI GetDetail() is an instance method.

For more information see Structure link Programming GetDetail() BAPIs.

GetStatus()

The BAPI GetStatus() is used to query the status of an SAP business object instance, for example, the processing status of a sales order. This BAPI is used only for displaying the status of an object and does not retrieve full details like the BAPI GetDetail(). The BAPI GetStatus() is an instance method.

For more information see Structure link Programming GetStatus() BAPIs.

ExistenceCheck()

The BAPI ExistenceCheck() checks whether an entry exists for a business object instance, for example, whether the customer master has been created. The ExistenceCheck() BAPI is an instance method.

For more information see Structure link Programming ExistenceCheck() BAPIs.

BAPIs for Creating or Changing Data

The following BAPIs can create, change or delete instances of a business object type:

Create() or CreateFromData()

The BAPI Create() or CreateFromData() creates an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.

For more information see Structure link Programming Create() BAPIs.

Change()

The BAPI Change() changes an existing instance of a SAP business object type, for example, a purchase order. The Change() BAPI is an instance method.

For more information see Structure link Programming Change() BAPIs.

Delete() and Undelete()

The BAPI Delete() deletes an instance of an SAP business object type from the database, for example, a purchase order.

The BAPI Undelete() removes a deletion flag.

These BAPIs are instance methods.

For more information see Structure link Programming Delete() BAPIs.

Cancel()

Unlike the BAPI Delete () the BAPI Cancel() cancels an instance of a business object, that is the instance to be cancelled remains in the database and an additional instance is created that is canceled).

The Cancel() BAPI is an instance method.

For more information see Structure link Programming Cancel() BAPIs.

Add<subobject> and Remove<sub-object>

The BAPI Add<sub-object> adds a sub-object to an existing object instance and the BAPI and Remove<sub-object> removes a sub-object from an object instance. These BAPIs are instance methods.

For further information see Structure link Programming Methods for Sub-Objects.

Note

If you are implementing BAPIs that create or change data you should consider using buffering. For further information see Buffering for Write BAPIs.

BAPIs for Mass Processing

The BAPIs listed in the above section, "BAPIs for Creating or Changing Data", can also be used for mass processing. Here, when a BAPI is called, several business object instances are processed at the same time.

With BAPIs for mass processing, the suffix "Multiple" is added to the method name, for example, ChangeMultiple(), CreateMultiple(), DeleteMultiple(). The BAPIs here are always class methods.

Note

We strongly recommend that you create instance-dependent BAPIs with buffering instead of Multiple() BAPIs. For further information see Buffering with Write BAPIs.

BAPIs for Replicating Business Object Instances

The following BAPIs are used 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 Structure link Programming Replicate()/SaveReplica() BAPIs.

 

 

 

 

Leaving content frame