SlideShare a Scribd company logo
9
Most read
12
Most read
13
Most read
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
A Step-by-Step Guide on IDoc-ALE
between Two SAP Servers
Applies to:
All modules of SAP where data need to transfer from one SAP System to another SAP System using ALE
IDoc Methodology. For more information, visit the ABAP homepage.
Summary
This Document explains step by step procedure to transfer the Material which was created in a SAP server
to another SAP server using IDoc Methodology.
Author: Boga Uamshankar
Company: BOA
Created on: 4 January 2011
Author Bio
SAP Interface developer working for MNC company in India
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
Table of Contents
TCodes used in this Procedure ..........................................................................................................................3
Major Steps Involved in IDoc Processing ...........................................................................................................3
Step 1: Creation of Logical System in IDES System for Client 800................................................................4
Step 2: Creation of Logical System in RD2 System for Client 120.................................................................8
Step 3: Creation of Another Logical System in IDES System.........................................................................8
Step 4: Creation of RFC Destination in IDES System ....................................................................................9
Step 5: Creation of tRFC Port in IDES System.............................................................................................11
Step 6: Creation of Partner Profile in IDES System......................................................................................12
Step 7: Creation of Distribution Model in IDES System................................................................................13
Step 8: Creation of Logical System in RD2 System .....................................................................................14
Step 9: Creation of Partner Profile in RD2 System.......................................................................................15
Step 10: Demonstration of sending Material.................................................................................................17
Related Content................................................................................................................................................21
Disclaimer and Liability Notice..........................................................................................................................22
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
TCodes used in this Procedure
When we are working with IDocs we need to know following Tcodes.
 SALE - This is used to Customizing IDoc Interface/Application Link Enabling ( ALE )
 SM59 - Used to configure RFC connections
 WE21 - Create/Change Ports used in IDoc Processing
 WE20 - Used to define the Partner Profiles
 BD64 - Used to define Distribution Model for IDoc Processing
 BD10 - Used to send Materials
 BD87 - Used to check the status of IDoc
Major Steps Involved in IDoc Processing
 Creation of Logical Systems
 Assignment of logical System to processing Client
 Creation of RFC Destinations
 Checking the RFC Destinations
 Creation of tRFC Port
 Creation of Partner Profiles
 Creation of Distribution Model
 Sending Materials
 Checking the Success/Errors
In the following documents I am using 2 SAP application servers i.e. IDES with 800 client and RD2 with client
120 servers. My plan is the material which is created in IDES System should be moved to RD2 server using
IDoc process. This is a combination of Technical and basis so make sure that you have enough permission
to the above Tcodes.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
Step 1: Creation of Logical System in IDES System for Client 800
To create Logical System we need use SALE tCode as showing in following figure
When you are creating Logical System that is cross client so confirm the alert message shown while
creation.
The Next screen shows list of Logical Systems if you have in your SAP servers.
To create your own logical System click on New Entries button in the same screen you will display the
following screen where you can enter the details for new logical System
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
While saving the Logical System SAP will prompt for Work Bench Request as shown below to create click on
new button as shown in below
Enter the Short description and save the screen, as a result it creates a new transport request and new
number will be populated in Request text box. This transport number will be used for further process
Now need to assign the client to the newly created logical System for this you need to go back to SALE
tcode and click on “Assign Logical System to Client” as shown below screen.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
In the next screen you will display the list of logical System assigned to different clients. If you want to do
new assignment click on “New Entries” button and enter the following details.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
If you are changing any existing assignment then you need to use tool for conversion of Logical Systems
names using BDLS as shown below. In my case I changed Old Logical System to new Logical System for
this demo purpose for 800 client. So I am executing this as following screen
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
Step 2: Creation of Logical System in RD2 System for Client 120
We need to create a logical System in RD2 server by following the same points which are used to create
logical System in IDES. The logical System name is “RD2”
The following screen shot explains the same
Step 3: Creation of Another Logical System in IDES System
We need to create another Logical System in IDES with same name of logical System which was created in
another server i.e. RD2 server. As we created logical System name as “RD2” in RD2 server, so I am going to
create a logical System with a name of “RD2” in IDES System.
There is no need for us to assign client for this Logical System. We are creating this logical System in IDES
because we are moving data (Materials) from IDES server to RD2 System. If you want move the data from
RD2 to IDES then you need create logical System with a name of LSIDES in RD2 server.
The below screen shot explains the same
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9
Step 4: Creation of RFC Destination in IDES System
We need to create RFC destination in IDES System. This destination is for RD2 System for client 120
This can be done by the following steps
In SM59 you need to create New ABAP connection using create Icon shown the following screen
Select ABAP Connections and click on new button, and you need to fill details in the following screen shown
in the figures
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 10
After entering the required details and save RFC destination. After saving use “Connection Test” button to
test the connection from IDES System to RD2. You need to get the success message to move further.
Success message is shown as follows
Note: If you get any errors at this point you need to check physical connection from IDES System to RD2 server.
Because if you are connecting to SAP servers using VPN then VPN details are need to have in IDES application
server i.e. where IDES System installed. If you could not figure out the error take help of basis people for the
same.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 11
Step 5: Creation of tRFC Port in IDES System
We need to a Transactional RFC using WE21 TCode.
When you click on New button after selecting Transactional RFC you will be prompted for option to create
Port name option. You can create you own name port or SAP assigns new port number if you choose
Generate Port Name. In my case I am leaving SAP to generate Port number to make life easy 
After entering the above details, Save the Port details. I am skipping Transport request details. If SAP
prompts for Work bench request you can provide the same request which was create earlier. If SAP is
prompting for Customizing request create new transport request use the same customizing transport for
further use.
As I am creating this document after I created all the details it is not asking for me for transport request.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 12
Step 6: Creation of Partner Profile in IDES System
We need to create Partner Profile for the Logical System which we created. This can be done by using
WE20 TCode.
Select the “Partner Type LS” and click on “New” icon to create New Partner profile. In the next screen you
need to fill the require details as shown the above figure.
As the Materials are moving from IDES System to RD2 we need to enter the Message type related to
Materials in Outbound Parameter list as shown the above figure.
To add Outbound parameter you need to click on the Create Outbound Parameter Icon as shown in the
below figure.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 13
In the next screen you need to enter the Message Type, Receiving Port and Base Type details as shown in
the figure
Step 7: Creation of Distribution Model in IDES System
We need to create Distribution model in IDES System using BD64 tCode. You need click on “Create New
Model” button after changing to Change Mode as shown in figure.
Once the Model is created we need to Add Message Type to the model to add this you need to select the
newly created model and then click on “Add Message Type” button as shown in the figure.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 14
To add Message Type you need to enter the following details
1. Sender - Logical System Name from the data is transferring
2. Received - Logical System Name to which server data is transferring in our case it is “RD2”
which was created in IDES System.
3. Message Type – Message type for Materials is MATMAS
After entering the above details and confirm the alert box you can see the following Distribution model.
Step 8: Creation of Logical System in RD2 System
We need to create another logical System in RD server. This logical System name should equal to the logical
System what we created in IDES System (Source System) “LSIDES”.
To create logical System we need to follow the same points which were explained in step1.
Once the Logical System is created in RD2 there is no need to assign the client for this Logical System.
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 15
Step 9: Creation of Partner Profile in RD2 System
We need to create Partner profile in RD2 System using WE20.
After creation of Partner profile we need add inbound parameter to the Partner Profile which was newly
created as shown figure.
After saving the Inbound Parameters you can see Partner Profile Inbound Parameter list as shown below
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 16
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 17
Step 10: Demonstration of sending Material
Create a simple material in DEV System as shown in figure. I created simple material with Industry Sector as
“Retail” and Material Type as “Finished Product” and I chosen Basic Data 1 and Basic Data 2 views while
creating.
Note: make sure the material industry sector and Material type is also available in RD2 System.
After creating material you need to send this material using BD10 tCode as shown in the figure
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 18
After entering above details you can execute. You need to get the following messages.
Now you need to know the IDoc is processed or not. All the IDoc status will be know using BD87 tCode as
shown in figure
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 19
Enter the appropriate details and execute the same. These results will be displayed in the next screen as
shown in the figure
The above status tells us that IDoc was transmitted from DEV System. Now we need to check in RD2
System for Inbound IDoc status to confirm that IDoc was received successfully in RD2 System.
Now the check the Material “UMA01042010_1” is present in RD2 System or not using MM03
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 20
Note: While working you may get various error messages while processing IDocs few of them are shown below
In Outbound IDoc
This error rose because physical connection was not there while transferring materials
This error rose in Inbound processing as material Industry sector is not available in target System ( RD2 )
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 21
Related Content
A Step-by-Step Guide on IDoc-to-File Using Business Service in the Exchange Infrastructure Integration
Directory
Inside SDN
For more information, visit the ABAP homepage
A Step-by-Step Guide on IDoc-ALE between Two SAP Servers
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 22
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

More Related Content

PDF
Canadian tax configuration in sap
PDF
SAP BI Generic Extraction Using a Function Module.pdf
PDF
How to extend an outbound i doc
PDF
How to write a routine for 0 calday in infopackage selection
PDF
Step by step on changing ecc source systems without affecting data modeling o...
PPTX
Ale idoc training kit sap Anilkumar chowdary
DOCX
Edit idoc , reprocess and test idoc
PDF
Business partner-2
 
Canadian tax configuration in sap
SAP BI Generic Extraction Using a Function Module.pdf
How to extend an outbound i doc
How to write a routine for 0 calday in infopackage selection
Step by step on changing ecc source systems without affecting data modeling o...
Ale idoc training kit sap Anilkumar chowdary
Edit idoc , reprocess and test idoc
Business partner-2
 

What's hot (20)

PDF
PDF
Funds management configuration sap ag
DOCX
BPD Design Template
PDF
Enhancing data sources with badi in SAP ABAP
PDF
Vertex Configuration Guide. A to Z Steps with Description.
DOC
SAP FI Configuration guide and enduser manual
PDF
inter-company-reconciliation in SAP
PPTX
New Asset Accounting in S4 HANA
PPTX
11 Enhancements & Modifications.pptx
PPT
Customizing Oracle EBS OA Framework
PDF
Pricing Routine In Vofm
PDF
SAP BCM.pdf
PDF
SAP SD QUERY REPORT_GANESH
PPTX
ISPM Equipment Warranty Solution for SAP
PDF
Electronic bank statement mt940 format
PPTX
WM - PP Interface
DOCX
Idocs tcodes and others , sap idoc
PDF
Sap auc internal orders as investment measures
PDF
SAP FICO Course Content .pdf
PDF
S4 HANA New GL Configuration
Funds management configuration sap ag
BPD Design Template
Enhancing data sources with badi in SAP ABAP
Vertex Configuration Guide. A to Z Steps with Description.
SAP FI Configuration guide and enduser manual
inter-company-reconciliation in SAP
New Asset Accounting in S4 HANA
11 Enhancements & Modifications.pptx
Customizing Oracle EBS OA Framework
Pricing Routine In Vofm
SAP BCM.pdf
SAP SD QUERY REPORT_GANESH
ISPM Equipment Warranty Solution for SAP
Electronic bank statement mt940 format
WM - PP Interface
Idocs tcodes and others , sap idoc
Sap auc internal orders as investment measures
SAP FICO Course Content .pdf
S4 HANA New GL Configuration
Ad

Viewers also liked (19)

PDF
Hareket Magazine-16-2015
PPTX
Reality Tv Research
PPTX
sistema Oper.ingles
PPTX
Rich Aquilone - Top 5 Funk Drummers
PPT
Task 1 Part 2
PDF
つくあそゲーム勉強会の企画
PPTX
Linked in’s Future!
PPTX
Film noir character: Femme Fatal
PPTX
Zhen wang demo3
PPT
Guerra fria en america latina y peru ç
PPTX
Soru cevap
PDF
PPTX
3D Game Environment Workflow
DOCX
DiMarco End of semester Communication
PPT
Mock objects 000
PPTX
Rich Aquilone- Top 5 Rock Drummers
PDF
20 Animals That Are Having Way for This Summer Than You Are
PPTX
Soru cevap
PPTX
Cuento el valle de boscombe por daniela
Hareket Magazine-16-2015
Reality Tv Research
sistema Oper.ingles
Rich Aquilone - Top 5 Funk Drummers
Task 1 Part 2
つくあそゲーム勉強会の企画
Linked in’s Future!
Film noir character: Femme Fatal
Zhen wang demo3
Guerra fria en america latina y peru ç
Soru cevap
3D Game Environment Workflow
DiMarco End of semester Communication
Mock objects 000
Rich Aquilone- Top 5 Rock Drummers
20 Animals That Are Having Way for This Summer Than You Are
Soru cevap
Cuento el valle de boscombe por daniela
Ad

Similar to A step by-step guide on i doc-ale between two sap servers (20)

PPTX
SAP ALE Idoc
PDF
Introduction to EDI & ALE Details On the full proces
PDF
ALE IDOC - FOR SAP sales order and payments
DOC
Ale idoc-guide
PPTX
SAP Inbound IDoc.pptx
PDF
Sujith ~ cross applications
PDF
CONFIGURATION_STEPS_IN_IDOC By Jallaj Kumar
DOC
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
PPT
ALE_Presentation.ppt
PPTX
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
PPTX
SAP IDoc Overview and Outbound IDoc.pptx
PPT
Sap abap ale idoc
PDF
AL_IDOC for Functional consultants-1.pdf
DOCX
All about idoc definition architecture, implementation
DOCX
All about idoc definition architecture, implementation
PPT
ALE IDOC EDI.ppt
PPT
ALE IDOC EDI.ppt
PPT
Ale Idoc
PPT
IDOC , ALE ,EDI
PDF
IDOC_handy_document.pdf
SAP ALE Idoc
Introduction to EDI & ALE Details On the full proces
ALE IDOC - FOR SAP sales order and payments
Ale idoc-guide
SAP Inbound IDoc.pptx
Sujith ~ cross applications
CONFIGURATION_STEPS_IN_IDOC By Jallaj Kumar
Docslide.net how ale-and-idocs-affect-sap-in-house-cash-configuration
ALE_Presentation.ppt
SAP+IDoc+Overview+and+Outbound+IDoc.pptx
SAP IDoc Overview and Outbound IDoc.pptx
Sap abap ale idoc
AL_IDOC for Functional consultants-1.pdf
All about idoc definition architecture, implementation
All about idoc definition architecture, implementation
ALE IDOC EDI.ppt
ALE IDOC EDI.ppt
Ale Idoc
IDOC , ALE ,EDI
IDOC_handy_document.pdf

Recently uploaded (20)

PDF
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
DOCX
Business Management - unit 1 and 2
PDF
IFRS Notes in your pocket for study all the time
PDF
Chapter 5_Foreign Exchange Market in .pdf
PDF
Nidhal Samdaie CV - International Business Consultant
PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
PDF
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
PPTX
HR Introduction Slide (1).pptx on hr intro
PPTX
Principles of Marketing, Industrial, Consumers,
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PPTX
ICG2025_ICG 6th steering committee 30-8-24.pptx
PPTX
Probability Distribution, binomial distribution, poisson distribution
DOCX
Euro SEO Services 1st 3 General Updates.docx
PDF
Laughter Yoga Basic Learning Workshop Manual
PDF
Ôn tập tiếng anh trong kinh doanh nâng cao
PPTX
5 Stages of group development guide.pptx
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PPTX
New Microsoft PowerPoint Presentation - Copy.pptx
PDF
Business model innovation report 2022.pdf
PPT
Data mining for business intelligence ch04 sharda
Stem Cell Market Report | Trends, Growth & Forecast 2025-2034
Business Management - unit 1 and 2
IFRS Notes in your pocket for study all the time
Chapter 5_Foreign Exchange Market in .pdf
Nidhal Samdaie CV - International Business Consultant
DOC-20250806-WA0002._20250806_112011_0000.pdf
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
HR Introduction Slide (1).pptx on hr intro
Principles of Marketing, Industrial, Consumers,
Roadmap Map-digital Banking feature MB,IB,AB
ICG2025_ICG 6th steering committee 30-8-24.pptx
Probability Distribution, binomial distribution, poisson distribution
Euro SEO Services 1st 3 General Updates.docx
Laughter Yoga Basic Learning Workshop Manual
Ôn tập tiếng anh trong kinh doanh nâng cao
5 Stages of group development guide.pptx
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
New Microsoft PowerPoint Presentation - Copy.pptx
Business model innovation report 2022.pdf
Data mining for business intelligence ch04 sharda

A step by-step guide on i doc-ale between two sap servers

  • 1. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1 A Step-by-Step Guide on IDoc-ALE between Two SAP Servers Applies to: All modules of SAP where data need to transfer from one SAP System to another SAP System using ALE IDoc Methodology. For more information, visit the ABAP homepage. Summary This Document explains step by step procedure to transfer the Material which was created in a SAP server to another SAP server using IDoc Methodology. Author: Boga Uamshankar Company: BOA Created on: 4 January 2011 Author Bio SAP Interface developer working for MNC company in India
  • 2. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2 Table of Contents TCodes used in this Procedure ..........................................................................................................................3 Major Steps Involved in IDoc Processing ...........................................................................................................3 Step 1: Creation of Logical System in IDES System for Client 800................................................................4 Step 2: Creation of Logical System in RD2 System for Client 120.................................................................8 Step 3: Creation of Another Logical System in IDES System.........................................................................8 Step 4: Creation of RFC Destination in IDES System ....................................................................................9 Step 5: Creation of tRFC Port in IDES System.............................................................................................11 Step 6: Creation of Partner Profile in IDES System......................................................................................12 Step 7: Creation of Distribution Model in IDES System................................................................................13 Step 8: Creation of Logical System in RD2 System .....................................................................................14 Step 9: Creation of Partner Profile in RD2 System.......................................................................................15 Step 10: Demonstration of sending Material.................................................................................................17 Related Content................................................................................................................................................21 Disclaimer and Liability Notice..........................................................................................................................22
  • 3. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3 TCodes used in this Procedure When we are working with IDocs we need to know following Tcodes.  SALE - This is used to Customizing IDoc Interface/Application Link Enabling ( ALE )  SM59 - Used to configure RFC connections  WE21 - Create/Change Ports used in IDoc Processing  WE20 - Used to define the Partner Profiles  BD64 - Used to define Distribution Model for IDoc Processing  BD10 - Used to send Materials  BD87 - Used to check the status of IDoc Major Steps Involved in IDoc Processing  Creation of Logical Systems  Assignment of logical System to processing Client  Creation of RFC Destinations  Checking the RFC Destinations  Creation of tRFC Port  Creation of Partner Profiles  Creation of Distribution Model  Sending Materials  Checking the Success/Errors In the following documents I am using 2 SAP application servers i.e. IDES with 800 client and RD2 with client 120 servers. My plan is the material which is created in IDES System should be moved to RD2 server using IDoc process. This is a combination of Technical and basis so make sure that you have enough permission to the above Tcodes.
  • 4. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4 Step 1: Creation of Logical System in IDES System for Client 800 To create Logical System we need use SALE tCode as showing in following figure When you are creating Logical System that is cross client so confirm the alert message shown while creation. The Next screen shows list of Logical Systems if you have in your SAP servers. To create your own logical System click on New Entries button in the same screen you will display the following screen where you can enter the details for new logical System
  • 5. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5 While saving the Logical System SAP will prompt for Work Bench Request as shown below to create click on new button as shown in below Enter the Short description and save the screen, as a result it creates a new transport request and new number will be populated in Request text box. This transport number will be used for further process Now need to assign the client to the newly created logical System for this you need to go back to SALE tcode and click on “Assign Logical System to Client” as shown below screen.
  • 6. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6 In the next screen you will display the list of logical System assigned to different clients. If you want to do new assignment click on “New Entries” button and enter the following details.
  • 7. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7 If you are changing any existing assignment then you need to use tool for conversion of Logical Systems names using BDLS as shown below. In my case I changed Old Logical System to new Logical System for this demo purpose for 800 client. So I am executing this as following screen
  • 8. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8 Step 2: Creation of Logical System in RD2 System for Client 120 We need to create a logical System in RD2 server by following the same points which are used to create logical System in IDES. The logical System name is “RD2” The following screen shot explains the same Step 3: Creation of Another Logical System in IDES System We need to create another Logical System in IDES with same name of logical System which was created in another server i.e. RD2 server. As we created logical System name as “RD2” in RD2 server, so I am going to create a logical System with a name of “RD2” in IDES System. There is no need for us to assign client for this Logical System. We are creating this logical System in IDES because we are moving data (Materials) from IDES server to RD2 System. If you want move the data from RD2 to IDES then you need create logical System with a name of LSIDES in RD2 server. The below screen shot explains the same
  • 9. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9 Step 4: Creation of RFC Destination in IDES System We need to create RFC destination in IDES System. This destination is for RD2 System for client 120 This can be done by the following steps In SM59 you need to create New ABAP connection using create Icon shown the following screen Select ABAP Connections and click on new button, and you need to fill details in the following screen shown in the figures
  • 10. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 10 After entering the required details and save RFC destination. After saving use “Connection Test” button to test the connection from IDES System to RD2. You need to get the success message to move further. Success message is shown as follows Note: If you get any errors at this point you need to check physical connection from IDES System to RD2 server. Because if you are connecting to SAP servers using VPN then VPN details are need to have in IDES application server i.e. where IDES System installed. If you could not figure out the error take help of basis people for the same.
  • 11. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 11 Step 5: Creation of tRFC Port in IDES System We need to a Transactional RFC using WE21 TCode. When you click on New button after selecting Transactional RFC you will be prompted for option to create Port name option. You can create you own name port or SAP assigns new port number if you choose Generate Port Name. In my case I am leaving SAP to generate Port number to make life easy  After entering the above details, Save the Port details. I am skipping Transport request details. If SAP prompts for Work bench request you can provide the same request which was create earlier. If SAP is prompting for Customizing request create new transport request use the same customizing transport for further use. As I am creating this document after I created all the details it is not asking for me for transport request.
  • 12. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 12 Step 6: Creation of Partner Profile in IDES System We need to create Partner Profile for the Logical System which we created. This can be done by using WE20 TCode. Select the “Partner Type LS” and click on “New” icon to create New Partner profile. In the next screen you need to fill the require details as shown the above figure. As the Materials are moving from IDES System to RD2 we need to enter the Message type related to Materials in Outbound Parameter list as shown the above figure. To add Outbound parameter you need to click on the Create Outbound Parameter Icon as shown in the below figure.
  • 13. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 13 In the next screen you need to enter the Message Type, Receiving Port and Base Type details as shown in the figure Step 7: Creation of Distribution Model in IDES System We need to create Distribution model in IDES System using BD64 tCode. You need click on “Create New Model” button after changing to Change Mode as shown in figure. Once the Model is created we need to Add Message Type to the model to add this you need to select the newly created model and then click on “Add Message Type” button as shown in the figure.
  • 14. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 14 To add Message Type you need to enter the following details 1. Sender - Logical System Name from the data is transferring 2. Received - Logical System Name to which server data is transferring in our case it is “RD2” which was created in IDES System. 3. Message Type – Message type for Materials is MATMAS After entering the above details and confirm the alert box you can see the following Distribution model. Step 8: Creation of Logical System in RD2 System We need to create another logical System in RD server. This logical System name should equal to the logical System what we created in IDES System (Source System) “LSIDES”. To create logical System we need to follow the same points which were explained in step1. Once the Logical System is created in RD2 there is no need to assign the client for this Logical System.
  • 15. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 15 Step 9: Creation of Partner Profile in RD2 System We need to create Partner profile in RD2 System using WE20. After creation of Partner profile we need add inbound parameter to the Partner Profile which was newly created as shown figure. After saving the Inbound Parameters you can see Partner Profile Inbound Parameter list as shown below
  • 16. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 16
  • 17. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 17 Step 10: Demonstration of sending Material Create a simple material in DEV System as shown in figure. I created simple material with Industry Sector as “Retail” and Material Type as “Finished Product” and I chosen Basic Data 1 and Basic Data 2 views while creating. Note: make sure the material industry sector and Material type is also available in RD2 System. After creating material you need to send this material using BD10 tCode as shown in the figure
  • 18. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 18 After entering above details you can execute. You need to get the following messages. Now you need to know the IDoc is processed or not. All the IDoc status will be know using BD87 tCode as shown in figure
  • 19. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 19 Enter the appropriate details and execute the same. These results will be displayed in the next screen as shown in the figure The above status tells us that IDoc was transmitted from DEV System. Now we need to check in RD2 System for Inbound IDoc status to confirm that IDoc was received successfully in RD2 System. Now the check the Material “UMA01042010_1” is present in RD2 System or not using MM03
  • 20. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 20 Note: While working you may get various error messages while processing IDocs few of them are shown below In Outbound IDoc This error rose because physical connection was not there while transferring materials This error rose in Inbound processing as material Industry sector is not available in target System ( RD2 )
  • 21. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 21 Related Content A Step-by-Step Guide on IDoc-to-File Using Business Service in the Exchange Infrastructure Integration Directory Inside SDN For more information, visit the ABAP homepage
  • 22. A Step-by-Step Guide on IDoc-ALE between Two SAP Servers SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 22 Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.