Вы находитесь на странице: 1из 20

ALE/IDOC

Introduction:
Earlier SAP used EDI technology for data transfer
Later SAP Introduced Ale for data distribution
ALE: Application Link Enabling
IDOC: Intermediate Document: container of Data.
Data in SAP will be in ASCII format.
Ale:
ALE Settings:
1. Design & Assign Logical Systems.
Tcode : SALE
Note: IN IDES Logical system for 800 client is T90CLNT090
2. RFC Destination :
It Establish Connection between Source and Target System
Tcode SM59
3. Port Creation
Tcode WE21
4. Distribution Model
Tcode BD64
Contains 2 Doc
Master Idoc
Communication Idoc
5. Partner Profiles
(Will create Inbound and Outbound)
Tcode WE20
IDOC:
Runtime Components of Idoc
1. Data Records
2. Control Records
3. Status Records
1. Data Records: EDIDD structure which is for responsible for holding data between server or
clients
2. Control Records: EDIDC Structure holds the control records data of the communication
settings and partner system profiles.
E.G : Logical System,RFC,Destination,Direction Etc.
3. Status Records: EDIDS Structure holds the status record.
Idoc Process
1. Outbound Process
2. Inbound Process
3. Both.
Outbound: Sending Data from our system to other systems
Inbound: Receiving data from other system
Two ways also possible.
IDOC Prerequisites:
1. Segment type (WE31)
2. Idoc Type (WE30)
3. Message type (WE81)
4. Assign Idoc type to Message type (WE82)
Standard Message Types
1. DEBMAS (CUSTOMER MASTER MESSAGE TYPE)
2. MATMAS (MATERIAL MASTER MESSAGE TYPE)
3. CREMAS (VENDOR MASTER MESSAGE TYPE)
4. COSMAS (COST CENTRE MESSAGE TYPE)
Standard Transaction for sending/receiving Idoc.
BD10: Sending material master
BD11: Receiving material master
BD12: Sending Customer Master
BD13: Receiving Customer Master
Path : Easy Access -> Tools -> ALE -> Master Data Distribution -> Cross Application ->customer
ALE Steps:
1. Basic Settings:
Tcode sale
Path : IMG->SAP Netweaver -> Applicatin Server-> Idoc Interface/Application Link
Enabling(ALE)
->Basis Settings->Logical Systems->Define Logical Systems
Note :
Usually we wont Create Logical Systems this is Basis Consultant Work.
Click new entries and save
We are creating zvin for client
800 and zvinoth for client 810.
Zvin is sender
Zvinoth is receiver
Step b: Assign Logical System to
client.
Select one client and click
details :
In IDES default LS is T90CLNT090
We are going to assign our Logical System Zvin
Change it to Zvin click save.
Similarly Click details of 810 Client.
Similarly assign our LS in T90CLNT810 zvinoth
And save it.
Step 2: RFC Connection.
Tcode sm59.
Click on abap connections
Click on Create
Enter Destination LS and specify connection type 3 (abap connection) and enter description
And press enter
Enter Host name and System number
Click Logon & Security Tab
Enter client,language,user id & password
And click save.
Step 3: Port Creation.
Tcode we21
Click on create .
Pop up window will come select own port
no and press enter
Specify Description and RFC Destination
and click save
Step 4: Distribution Model
Tcode BD64.
Click on change icon in application toolbar and click create model view.
Specify: Short text and Technical name
And click save.
Then select Distribution model which we have created. Click on add message type button in
application tool bar.
Specify sender :zvin
Receiver :zvinoth
Message type : DEBMAS
Save and back
Step 5:
Partner profiles
Select Partner type LS
and click create
Enter partner zvinoth and save.
We are sender so need to create outbound parameters
+ icon to add output parameters ;
We will get the following screen
Enter : Message type
Receiver port
o/p mode : transfer Idoc immediately
Click Save and go back.
In main screen we can find output parameters.
Repeat the steps in
client 810.
Specify the partner as zvin.
For incoming connection we need to create profile in inbound parameters.
Select debmas
in message type
and process
code debm
Inbound parameters generated for client 810.
Creation of customer master.
Create one
customer master
record.
In this example
customer
creation having
external number
ranges and
customer grp
z002
Same structure
should be in
client 810 then
only Idoc will
receive.
To send Customer master Tcode is bd12.
Enter customer no
Output type : debmas
Logical system :Zvinoth (810)
Click execute.
we will get the following pop ups.
goto client 810
enter Tcode we05 To
check the list of idoc
received
click execute.
We can see list of Idoc
Double the click Idoc to see the status
Goto client 800 and check Sent Idoc using we05
double click to know the Idoc status
These are all the settings we need to concentrate for interview.
If the Idoc is error, need to reprocess the Idoc.
Go to Tcode Bd87:
Specify the Idoc no which is need to reprocess: eg.70002
Click process button in application toolbar.
You will get result based on the reprocess.

Вам также может понравиться