Class BapiRequest


Deprecated.
This module will be discontinued, along with its classes and methods.
Class representing a request calling a Business API (BAPI) in an ERP system.

Use the class RfmRequest to call remote-enabled function modules (RFC modules).

The signature of BAPIs consists of importing, exporting, and tables parameters.

From the perspective of the BAPI caller, input data is considered as exporting, output data is considered as importing and tables parameters can be used for both directions. The methods of this class are named following the caller's perspective.

From the perspective of the BAPI, importing means input data, exporting means output data, and tables parameters can be used for both directions.

Example:
Calling a BAPI with one importing parameter (from BAPI perspective) requires to utilize the method withExporting(String, String). Consider all existing variants of this method depending on the Java data type of the parameter, e.g. use withExporting(String, String, String) to pass a String object.

The data type (i.e. the data dictionary object) of importing and exporting parameters (regardless of the perspective) can either be a data element, a structure, or a table type.

After calling execute(Destination) use the class BapiRequestResult to access the results of the BAPI call (e.g. the exporting parameters from the BAPI perspective respectively the importing parameters from the caller's perspective).