Determining Receivers of Synchronous
BAPIs
The application program calls the function ALE_SYNCH_BAPI_GET_RECEIVER to determine the receiver of a synchronous BAPI.
The following mechanisms are effective:
· If no receivers are determined or the BAPI cannot be found in the ALE distribution model, an empty table for the receivers is returned.
· 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 has to pass the object ID (for example, 01815) as the value of the filter object to the receiver determination.
The receiver determination can then
read the current filter object values for the object that the dependent BAPI
references to another BAPI or message type. The application provides a
function module that enables the object data to be read. The name of the
function module is stored in an ALE Customizing table, which the receiver
determination can access at runtime (Table TBD18).
As well as the logical system the RFC destination is also returned.
· If the forwarded filter object types and filter object values are unable to determine the receiver correctly, an error message and an exception are returned (ERROR_IN_FILTEROBJECTS).
· If the RFC destination for a logical receiving system has not been maintained, an error message and an exception are returned (NO_RFC_DESTINATION_MAINTAINED).
· If any inconsistencies have arisen 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 |
BDI_LOGSYS |
Default logical receiving system |
FILTEROBJECT_VALUES |
BDI_FOBJ |
Filter objects and values |
Parameter |
Reference Field/Structure |
Description |
RECEIVERS |
BDI_LOGSYS |
Receiver systems of the BAPI and the RFC destination |
Parameter |
Description |
ERROR_IN_FILTEROBJECTS |
Filter objects are incorrect or incomplete |
ERROR_IN_ALE_CUSTOMIZING |
Error in ALE Customizing |
NO_RFC_DESTINATION_MAINTAINED |
There is no RFC destination for the logical system |
· Example Programs with Synchronous BAPI Calls