To determine one receiver of a synchronous BAPI, the application program calls the function ALE_BAPI_GET_UNIQUE_RECEIVER.
The following points apply:
If no receiver is determined or if the BAPI is not found in the ALE distribution model, an empty structure is returned for the receiver.
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 more than one receiver for the BAPI is determined, an error message and an exception are returned.
If the RFC destination for a logical receiver system has not been maintained, an error message and an exception are returned (NO_RFC_DESTINATION_MAINTAINED).
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 |
Description |
OBJECT |
BDI_BAPI-OBJECT |
BOR object of the BAPI |
METHOD |
BDI_BAPI-METHOD |
BOR method of the BAPI |
FILTEROBJECT_VALUES |
BDI_FOBJ |
Filter objects and values |
Parameter |
Reference Field |
Description |
RECEIVER |
BDBAPIDEST |
Receiver systems of the BAPI |
Parameter |
Description |
ERROR_IN_FILTEROBJECTS |
Filter objects are incorrect or incomplete |
ERROR_IN_ALE_CUSTOMIZING |
Error in ALE Customizing |
NOT_UNIQUE_RECEIVER |
There is more than one receiver system for the BAPI |
NO_RFC_DESTINATION_MAINTAINED |
There is no RFC destination for the logical system |