Thursday, 28 July 2016

Standard BAPIs


  • With BAPIs ( Methods ) , we can differentiate between instance methods and class methods.
  • Instance methods refer to precisely one instance ( one specific occurrence ) of an SAP Business Object type.
  • Ex :   Customer Order.
  • Whereas class methods are instance-independent.
  • Ex :   GetList  of customer.

BAPIs for Reading Data :

  • GetList ( Class Method ) : 
  1. List of object key Values.
  2. Ex : Comapny codes , Material Number.
  • GetDetail ( Instance Method ) :
  1. Uses a key to retrieve details about an instance (one specific occurrence ) of a business object and returns this data to the calling program.

  • GetStatus ( Instance Method )
  1. The BAPI GetStatus is used to query the status of an SAP Business Object.
  2. Ex : The processing status of a sales order and does not retrieve full details like the BAPI GetDetail.
  • ExistenceCheck ( Instance Method )
  1. The BAPI ExistenceCheck checks whether an entry exists for an SAP Business Object.
  2. Ex: Whether the customer master has been created.

BAPIs for Creating or Changing Data

  • Create or CreateFromData ( Instance Method )
  1. The BAPI Create or CreateFromData  creates an instance of an SAP Business Object .
  2. Ex : Sales order.
  • Change ( Instance method )
  1. The BAPI  Change changes an existing instance of a SAP Business Object.
  2. Ex : Change Sales Order.
  • Delete and Undelete ( Instance Method )
  1. The BAPI Delete deletes an instance of an SAP Business Object from the database.
  2. Ex : delete sales Order.
  3. The BAPI Undelete removes a deletion flag.

BAPI's for Mass Processing

  1. BAPIs for mass processing , the suffix "Multiple " is added to the method name .
  2. Ex :  ChangeMultiple , CreateMultiple , DeleteMultiple.

Method Type  : Class Methods

BAPIs for Replicating Business Object Instances

  1. These BAPIs are used for replicating business object Instances.
  2. They enables specific instances of an object type to be copied to one or more different Systems.
  3. These BAPIs are used mainly to transfer data between distributed system within the context of ALE and method Type Class methods.

Service BAPIs for Help Functions

  • HelpValues.GetList
  1. This method determines the allowed input values ( F4  help) for a field in a BAPI parameter.
  • BapiService.FieldHelpGetDocu
  1. This method provides Documentation help ( F4  help) for a field in a BAPI parameter.
  • BapiService.InterfaceGetDocu
  1. This method reads the entire interface documentation of a BAPI.

BAPIs for Interpreting Error Messages

  • BapiService.MessageGetDetail
  1. This method displays the short and long texts of BAPI error messages.
  • BapiService.ApplicationLogGetDetail
  1. This method reads the details of entries in the application log.

BAPIs for Controlling COMMIT and ROLLBACK

  • BapiService.TransactionCommit.
  1. This method executes a COMMIT WORK command.
  • BapiService.TransactionRollback
  1. This method executes a ROLLBACK WORK command.

BAPIs for Convertion between Internal and External Data Formats ( Domain Conversion ).

  • BapiService.DataConversionInt2Ext
  1. This BAPI converts data from the internal format into the required external format.
  • BapiService.DataConversionExt2Int
  1. This BAPI converts data from the External format into the required Internal format.

No comments:

Post a Comment