The ultimate site for SAP XI certification and tutorial resources. Submit tutorials/scenarios and get assured gifts!!! For more info click here...

gift

scenario - simple file to file

Author : Hemanth Konduru
This explains all the basic steps required to implement a file to file scenario. I have chosen a simple File to File scenario because it covers all the steps that is required for creating any other kind of scenarios.
I am going to explain all the steps in detail.

Scenario
Suppose, you want to transfer a XML file from one system (Sender) to another system (Receiver) and also converting from one XML format to another XML format then you will use XI as an integration tool between the two systems.

Scenario

STEPS
Integration repository
Step 1:
Goto IR(design) and open your  SWCV ,under SWCV open ur namespace. Check it should like this.

1

Step2:    creating data types
Now we are going to create Two Data Types. One for the sender and the other for receiver.
Right Click on Data types and click on “New”. 2

Enter the details as per shown and press “Create” Button.
3

Create the Sender Data Type (dt_sender) which is some things like this.
4

Similarly create Receiver Data Type(dt_receiver) as per shown below

(dt_receiver) as per shown below:
6

Receiver Data type Fields:
5

Step3: creating message types
Now lets create message types for the datatypes created.
For sender.
7 
Select the Data Type (dt_sender) for the Message Type (mt_sender) by clicking the help button 8and then save it.
r

Similarly for receiver also.
Similar way, create the Receiver message type (mt_receiver) and then press save.
t
y
Step3: Creating message interfaces
Select “New” on the Message Interface on the left hand side for sender
u
Please make sure that you selected Outbound and Asynchronous and then select the Message Type (mt_sender) using the help button 9. i
Similarly for receiver
Now we need to create Receiver Interface. Say “New” and then fill the details as per shown.
o
This time the Category is Inbound and Mode is same Asynchronous and then select the Receiver Message Type
p

Your screen must look like this on the left hand side.
a
Step4: Create a message mapping.
Now its time to map the fields of Sender Message type and Receiver Message Type. This can be done by creating a Message Mapping Program. A "Graphical Mapping" which maps the field of Sender to Receiver.
s
Here are the inputs for the Message Mapping Screen. Press “Create
s

Select the sender message type on left side by clicking on the q icon and also select the receiver message type on right side
d
Now drag the elements say PO_NUM from mt_sender and drop it on the right hand side SONUM field. As you do you can see that Red Color fields turns into Green which means we are doing it right. Complete the mapping by dragging and dropping onto the right hand side fields and see that all the target fields are in Green color
Step5: Create interface mapping
Okay we have done with the Mapping program between the messages but we need to create mapping between the Interfaces even.
So, Select the Interface Mapping and say “New”. Fill the details and Press “Create”.
f
Here give the source interface on the left side blicking on w icon and select ur source interface,similarly select receiver interface on right side.
g

Once this is done click on Read Interface button below h. This will add the interface in the below box and then u can select the message mapping program for these interface.
j

Just select the Message Mapping Program using the help buttone
k
Now we have completed the design part .before proceeding further we can test the design part .
Click on the “Test” tab in the same Interface Mapping Screen. l
Enter the details for PONUM,POQTY,POAMT
;
Press the execute button .u will get a pop up window saying executed successfully.u can check the result on the right side
'

_______________________________Next page>>