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.
Give the list of the fields as below.
Click on save and back.
Click on edit from menu bar->set 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.
Similarly create one more segment by the name Z1KNBK
with the list of the below fields.
Field name Data element
Kunnr kunnr
Banks banks
Bankl bankl
Save it and release it.
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.
Finally, the hierarchy should look as below.
CONFIGURATION SETTINGS FOR ALE :
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
1.whom to send (Receiver's name)
2.what to send (IDOC name)
3.when to send(Immediately or collect)
4.How to send(Name of the port)
6.Maintain Distribution Model:
It contains the list of receivers who receives the data.
MASTER IDOC:
It is an internal table which consists of data to be sent from SX system to RX system.
Suppose we are sending 100 materials from SX to RX , then MASTER IDOC will be generated for each material . i.e. for 100 materials we get 100 MASTER IDOC’s.
COMMUNICATION IDOC:
These are the IDOC’s which are derived from MASTER IDOC.
A Communication IDOC is which is generated for each server.
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 COMMUNICATION 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 and updating the data into the data base tables.
ConversionConversion EmoticonEmoticon