SAP Execute
In this article
- 1 Overview
- 2 Snap Views
- 3 Snap Settings
- 3.1 Examples
Overview
You can use this Snap to execute the SAP Business API (BAPI) with the given input data. The BAPI input schema and output schema must correctly map data into the SAP BAPI.
SAP BAPIs for Integration
BAPI technology in SAP is based on import and export parameters that determine the parameters that must be provided (import) and parameters to be returned (export). You can test the BAPI's in the SAP client through transaction code SE37
.
Import parameters contain data to be transferred from SnapLogic to the BAPI. Specific values must be provided as import parameters for the BAPI to execute and return the desired data.
Export parameters contain data to be transferred from the BAPI back to SnapLogic. The data returned can be of the following types:
S = success message
E = error message
W = warning message
I = information message
A = termination message (abort)
The list of BAPI's in a particular SAP client varies depending on the level of customization. However, an exhaustive set is delivered as standardized BAPI's which provide basic functions and can be used to read and write or change data for most SAP Business Objects.
BAPIs for Reading Data
The following BAPIs provide you with read-only access to data in the associated business object:
GetList: Select a range of object key values, for example, company codes and material numbers.
GetDetail: Retrieve details of an instance (one specific occurrence) of a business object and returns this data to the calling program. This information is reported back to the calling program.
GetStatus: Query the status of an SAP Business Object, 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.
ExistenceCheck: Checks whether an entry exists for an SAP Business Object, for example, whether the customer master has been created.
BAPIs for Creating or Changing Data
The following BAPIs can create, change or delete instances of a business object:
Create or CreateFromData: Creates an instance of an SAP Business Object, for example, a purchase order.
Change: Changes an existing instance of a SAP Business Object, for example, a purchase order.
Delete and Undelete: Deletes an instance of an SAP Business Object from the database, for example, a purchase order. The BAPI Undelete removes a deletion flag.
Add<sub-object> and Remove<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.
Snap Type
The SAP Execute Snap is a Write-type Snap.
Prerequisites
Set up the user (the SAP BASIS administrator should create the user) to be used in the appropriate SAP clients with a specific set of authorizations. To execute a BAPI as part of your application program, you must have the appropriate authorizations set up in respective master records. The documentation provided with the BAPI contains information about the required authorizations. Any attempts to execute a BAPI that fail as a result of insufficient authorization are reported back to the calling application.
Support for Ultra Pipelines
Works in Ultra Pipelines.