To determine the receivers of an asynchronous BAPI, the application program calls the function module ALE_ASYNC_BAPI_GET_RECEIVER.
The following points apply:
If a dependency for a BAPI is defined as a condition in the ALE distribution model, the receiver of the referenced BAPI or message type is determined. The application program has to pass the object ID (for example, 01815) as the value of the filter object to the receiver determination.
Function module ALE_ASYNC_BAPI_GET_RECEIVER uses the object ID to determine the current filter object values of the object using which the dependent BAPI references another BAPI or message type. The application must provide a function module that enables the object data to be read. The name of the function module must be stored in an ALE Customizing table, which the receiver determination can access at runtime (table TBD18).
If no receivers are determined or the BAPI cannot be found in the distribution model, an empty table for the receivers is returned.
If the filter object types and filter object values that are passed are not sufficient to determine the receiver correctly, an error message and an exception are returned (ERROR_IN_FILTEROBJECTS).
If any inconsistencies arise in the distribution model due to Customizing errors, an error message and an exception are returned (ERROR_IN_ALE_CUSTOMIZING).
Parameter |
Reference Field/Structure |
Description |
OBJECT |
BDI_BAPI-OBJECT |
BOR object of the BAPI |
METHOD |
BDI_BAPI-METHOD |
BOR method of the BAPI |
RECEIVER_INPUT, optional |
BDI_LOGSYS |
Default logical receiver system |
FILTEROBJECT_VALUES |
BDI_FOBJ |
Filter objects and values |
Parameter |
Reference Field/Structure |
Description |
RECEIVERS |
BDI_LOGSYS |
Receiver systems of the BAPI |
Parameter |
Description |
ERROR_IN_FILTEROBJECTS |
Filter objects are incorrect or incomplete |
ERROR_IN_ALE_CUSTOMIZING |
Error in ALE Customizing |