ALE - Idoc S
ALE - Idoc S
ALE :
ALE is a technology which is used to communicate between the servers available at different geographical locations.
To send the data and receive the data from one server to another server, we need a dedicated network which is called as ALE(Application Link Enabling). Application means customer Master Appl, Material Master Appl, Sales Order Appl. Link means a network or connection . Enabling means Enable the link.
So ,we use the Middleware technologies like TIBCO (or) XI to communicate between SAP to Non-SAP.
The data transfer is always through a type of a document called as IDOC.(Post Cover)
Since IDOC is an SAP tool , only SAP system can understand IDOCs.
Non-SAP system cannot understand the IDOCs . So we use the middleware technologies like TIBCO or XI to communicate between SAP to Non-SAP. The IDOC is converted into XML and it is given to TIBCO or XI. The middleware technologies will again convert the data into a format which can be understood by the receiver system.
IDOCS
IDOC: - It is an intermediate document which contains the data. Technically IDOC is a group of segments. Each segment is group of fields. Segments are like structures. All the standard SAP segments will start with letter E1. All the custom segments must start with the letter Z1. EX: - 1. DEBMAS: 01, 02, 03,04,05 is an ex for customer IDOC. 2. CREMAS: 01, 02, 03is an example for vendor IDOC.
Example for segment:DEBMAS is an IDOC E1KNA1(Cust.Master Seg) kunnr, name1, land1 are fields. E1KNB1(Cust.Companycode)kunnr, bukrs are the fields. E1KNBK(customer bank details)kunnr, Banks are the fields. WE31 is the transaction code for segment definition. WE30 is the transaction code for IDOC type.
Runtime components of IDOC:Whenever an IDOC is transmitted at runtime, there are 3 components which are added automatically to the IDOC.
Control record.
Data record. Status record.
Steps to create an IDOC:Step1: First create the required segment in WE31 with some fields. Step2: Create an IDOC in WE30 by inserting all the above segments. Step1: Steps to create a segment. Go to WE31. Give the segment type as Z1KNA1. Click on the button create. Give short description.
Click on save and back. Click on edit from menu barset release.
The segment definition is completed and it is released also Released status indicates that the segment definition is completed and it can be used to transfer the data.
Step2: Create IDOC from T-CODE WE30. Go to WE30 and give IDOC name as ZDEBMAS05 Click on the button create. Give description and press enter. Click on the button create segment
A pop-up is raised. Give the segment name as Z1KNA1. Give the minimum and maximum no. as 1, because customer master will have single record. Select the check box if we want to make the segment as mandatory segment.
Press enter
Now, Put the cursor on Z1KNA1, click on the button create. A pop-up is raised. Select the first radio button and press enter.
Give the segment type Z1KNBK. Give the minimum no. as 1, maximum no. as 99999 because each customer will have more than 1 bank account. Press enter.
1.Define Logical system: In this step we define a logical name for the sending & receiving SAP server systems. The Tcode is SALE. 2.Assign client to the Logical system: Here we maintain a client for the sending & receiving system to transfer the particular client data. The Transaction code is SALE. 3.Maintain RFC Destination:
In this step we maintain a connection between sender system and receiver system which is called as RFC Destination.
The Tcode is SM59.
4.Define Port : Port specifies the medium of transferring the data from one system to another system WE21 is the Tcode for defining a Port. 5.Maintain Outbound Partner Profile: Here we need to maintain the details of the receiver's system. The details are
MASTER IDOC:
OUTBOUND PROGRAM: A program which is used to start the process of data transfer from SX to RX.
With the help of selection screen , MASTER IDOC will be generated and then COMMINICATION IDOCs will be generated and will be sent to Receiver system.
PROCESS CODE (OPEN SQL): Process code is a function module . It is available at receiver side. Processing code is responsible for receiving the data from IDOC and updating the data into data base tables.
MESSAGE TYPE
MESSAGE TYPE:
It specify the type of the application from which IDOCs are being used .The application may be material master or customer master and vendor master etc. WE81 is Tcode for defining a message type. Always IDOC type and Message type should be linked with each other.
WE82 is Tcode used to create a link between message type and IDOC
--------------------
WE81
Custom IDOCs
Custom IDocs:
Custom IDocs are generally copied from the standard IDoc by adding OR removing extra segments.
We have two concepts available under custom IDocs.
Ex:
STEP2:
Goto WE30.
Give IDoc name as ZDEBMAS05. Select Extended Idoc radiobutton.
Click on create.
Press enter.
Put the cursor on any segment. EX: EIKNAIM. Click on create button. Give the custom segment name Min No=1 Max No=1 Press enter Click on save.
Reduced IDoc Type: It is an IDoc which consists of only the required segments and fields. All the unwanted segments and filters are completely removed. BD53 is the Tcode for reduced IDoc. STEPS: Goto BD53. Give the message type as ZDEBMAS05_R. Click on the Create button. Give the message type reference as DEBMAS.
Press enter. Give short description. Again press enter All the list of the segments will be displayed in different colors. Color: RED ---------- Deselected segments / fields. Color: WHITE-------- Selected segments/ fields. Color: GREEN------- mandatory segments/fields.
The color will turn from RED to WHITE which indicates that it is a required segment.
Now double click on the segment, select the checkboxes for the required Fields and click on the select button.
The color will turn from RED to WHITE which indicates that it is a required field.