!--a11y-->
Configuring ALE and qRFC Connections for Third-Party Business 
Use
This section contains all the steps necessary to set up an
Application Link Enabling (ALE) and a queued Remote Function Call (qRFC ) connection for third-party business in the system landscape (1 SAP APO, 2 SAP R/3). In this scenario the SAP APO system is connected to the sales and supplying systems.Procedure
In Customizing for Basis, choose Application Link Enabling (ALE) ® Sending and Receiving Systems ® Logical Systems ® Define Logical System.
Example: Logical systems
|
Logical System |
Description |
|
R3VCLNT001 |
Sales system |
|
R3LCLNT001 |
Supplying system |
|
APOCLNT001 |
SAP APO system |
In Customizing for Basis, choose Application Link Enabling (ALE) ® Sending and Receiving Systems ® Logical Systems ® Assign Client to Logical System.
In Customizing for Basis, choose Application Link Enabling (ALE) ® Sending and Receiving Systems ® Systems in Network ® Define Target Systems for RFC Calls. Choose R/3 Connections.

In the Log On subscreen, enter a new user (such as ALEREMOTE) that you have previously created in the target system. To create the user in the target system, from the SAP Easy Access screen, choose Tools ® Administration ® User Maintenance ® Users.
In Customizing for Basis, choose Application Link Enabling (ALE) ® Sending and Receiving Systems ® Systems in Network ® Synchronous Processing ® Determine RFC Destinations for Method Calls.
Example: RFC destinations for method calls
|
SAP R/3 Sales System |
SAP R/3 Supplying System |
SAP APO System |
|
Logical system: R3LCLNT001 Assignment: Standard RFC destination for BAPI calls (R3LCLNT001) Standard RFC destination for dialog calls (R3LCLNT001) |
Logical system: R3VCLNT001 Assignment: Standard RFC destination for BAPI calls (R3VCLNT001) Standard RFC destination for dialog calls (R3VCLNT001) |
Logical system: R3VCLNT001 Assignment: Standard RFC destination for dialog calls (R3VCLNT001) Logical system: R3LCLNT001 Assignment: Standard RFC destination for dialog calls (R3LCLNT001) |
In this system, create a
distribution model to specify which messages are sent to a logical system. To do this, in Customizing for Basis choose Application Link Enabling (ALE) ® Modeling and Implementing Business Processes ® Maintain Distribution Model and Distribute Views.Create the distribution model with the following message types:
Example: Distribution model
|
Sender |
Receiver |
Message Type |
|
Client 001 (R3VCLNT001) |
Client 001 (R3LCLNT001) |
ORDCHG PO/order changeORDERS PO/order |
|
Client 001 (R3LCLNT001) |
Client 001 (R3VCLNT001) |
DESADV Delivery: Shipping notificationINVOIC Invoice/billing documentORDRSP PO confirmation/order confirmation |
When you create the distribution model, you can also work with a data filter. For more information, see the documentation for the IMG activity Maintain Distribution Model and Distribute Views.
Distribute the model from the central system to the other systems (for example, from the sales system to the supplying system). To do this, from the Change distribution model screen choose Edit ® Distribute model view. The receiver of the model view is, for example, the supplying system (R3LCLNT001). Here the system creates a copy of the distribution model.
For the partner system (supplying system, in the example R3LCLNT001), the system automatically creates the message type
SYNCH (ALE: dummy message type for determining the RFC destinations) and a port (for example, A000000015).For further information, see
Defining Partners.
In Customizing for Basis, choose Application Link Enabling (ALE) ® Modeling and Implementing Business Processes ® Partner Profiles and Time of Processing ® Maintain Partner Profile Manually. Choose the partner type

The message types
ORDERS and ORDCHG are generated automatically with basic type ORDERS05. Create another inbound parameter using message type INVOIC, message variant MM, and transaction code INVL.On the Change Distribution Model screen, choose Environment ® Generate Partner Profiles. For the partner system R3VCLNT001, the system automatically creates the message type
In Customizing for Basis, choose Application Link Enabling (ALE) ® Modeling and Implementing Business Processes ® Partner Profiles and Time of Processing ® Maintain Partner Profile Manually. Choose the partner type

Check the inbound parameter with the message type
ORDERS. It must have the process code ORDE. Change the parameter if necessary.From the SAP Easy Access screen, choose Logistics ® Central Functions ® Supply Chain Planning Interface ® Core Interface Advanced Planner and Optimizer ® Settings ® Target Systems. Enter the logical system of the SAP APO system, and enter the operation mode (
For more information, see the SAP APO documentation under Supply Chain Management (SCM) Business Scenarios ® Integration of APO and R/3 ® APO Core Interface ® Setting Up the System Infrastructure and Data Transfer ® Settings in R/3 ® Set Target System.
For more information, see the SAP APO documentation under Supply Chain Management (SCM) Business Scenarios ® Integration of APO and R/3 ® APO Core Interface ® Setting Up the System Infrastructure and Data Transfer ® Settings in R/3 ® Maintain APO Release.
To do this, from Customizing for Advanced Planner and Optimizer (APO), choose Basis Settings ® Integration ® Business System Group ® Maintain Business System Group.
In this scenario you maintain exactly one business system group. The master data must be unique in both SAP R/3 systems.
The BSG typically represents a namespace for the master data. If two SAP R/3 systems are in the same business system group (BSG), then for example, material QIR001 in one of the systems in SAP APO represents that same product as material QIR001 from another system. The materials must therefore be unique in both SAP R/3 systems. Plants must only exist in one system.

If the material or the plant is part of a condition for the rule-based ATP check, the material must represent the same product in both the sales and supplying system, or the plant must only exist in one system.
To do this, from Customizing for Advanced Planner and Optimizer (APO), choose Basis Settings ® Integration ® Business System Group ® Assign Logical System and Queue Type.

Master data usually has the suffix @BSG, where BSG stands for the name of the business system group. Plants usually have the prefix PL.
For more information, see the SAP APO documentation under Supply Chain Management (SCM) Business Scenarios ® Integration of APO and R/3 ® APO Core Interface ® Setting Up the System Infrastructure and Data Transfer ® Settings in APO.
See also:
ALE Quick Start
IDoc Interface: EDI Application Scenarios (BC-SRV-EDI)
Electronic Data Interchange/IDoc Interface (SD-EDI)
