
RFC Destinations for Synchronous Method Calls
Use
As of Release 4.0 you can also use synchronous interfaces in ALE distribution scenarios.
These interfaces may either be BAPIs or dialog methods. In both cases an object method from the BOR is defined as an API method and implemented by an RFC-enabled function module. This function module is then called by synchronous RFC.
You can specify different RFC destinations for different synchronous method calls.

To ensure compatibility with earlier releases, the standard RFC destination for BAPI calls is also used for calling the following RFC-enabled function modules that are not assigned to an object method in the BOR.
Procedure
You can assign RFC destinations for synchronous method calls in ALE Customizing:
Basis
Application Link Enabling (ALE)
Sending and Receiving Systems
Systems in Network
Synchronous Processing
You can define the following types of RFC destinations:
For further information on dialog methods see
Integration of Dialog Interfaces in ALE Programming.
Trusted Systems: Trust Relationships Between R/3 Systems. In some cases a different assignment may be required.
Example
The ALE scenario comprises two systems:
There are 200 on-line users in the AC system, among them, one with the user ID CEO.
The AC system is to call some methods synchronously in the HR system.
Only the user CEO is to be authorized to make the remote call to the method Document.Display in the HR system.
There is only one on-line user on the HR system, among them, one with the user ID CEO.
The following methods are to be called on the AC system:
User Master Records
In addition to the CEO user, an ALE_AC user is created in the HR system.
ALE_AC is of type CPIC, it is not a dialog user. Users of type CPIC cannot usually start dialog transactions. ALE_AC only receives the authorizations that enable the remote call to the methods Document.ReadInfo and Document.Check.
RFC Destinations
The profile parameter auth/rfc_authority_check for the RFC authorization check is set in both systems. An authorization check is carried out on the function group of the function module called (authorization object S_RFC).
The AC system is set up as the trusted system in the HR system.
The system name, client, user name and other optional data is searched in the data supplied by the trusted system and checked against the field values of the authorization object S_RFCACL.
Two RFC destinations are created on the AC system both with the same application server in the HR system.
The user ID ALE_AC and a password are defined for these destinations.
No user ID is assigned to this destination.
RFC Destinations for Methods
HR_DOC is specified as the standard destination for synchronous BAPI calls from the HR system.
The RFC destination HR_BLANK is specified for calling the HR system method Document.Display.
Result
This procedure produces the following results:
Further Information
Trusted System: Trust Relationships Between R/3 Systems