Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos



This is basically

      the continuation of my earlier blog Step by Step Guide: XML File 2 XML File Scenario: Part I. Click on “*Integration
Directory
*”




 

»


I am here now into the
Integration Directory now right click on the left side box and select
“New”. It's okay that Scenario is selected.


             






 

»

              Just fill the values and press “Create”.

              Then you need to save it in order to see the Configuration Scenario

              on the left hand side.


!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_75.gif|height=65|width=576|src=https://w...!






 

»

Fine!
Spit on your hand for some more work.

           

           






 

»

              Did you remember what we did in SLD ? Yes,

              we created Product , Software
Component
, Technical System and Business
System
.


[Product | #Product]

              and Software Component  is used in Design Part

              and here we are going to use the Business system ?

              Why not Technical system ? My Favorite Question?


If you remember correctly when
we create the Business system in SLD we selected
the Technical system
from the drop down menu means if you are
going to use the Business system then indirectly you are linked
with the Technical System.


In Design also we have imported
Software Component

not the Product because When we create the

              Software Component we have selected the Product .

              So, they both are linked.


How Business systems are linked
with Product?

              We selected the Product when we created

              the Technical System. So your Business Systems are linked with the

              Product. Also the objects that you have designed in the Design part

              are linked with the Software Component which is inturn linked with

              the Product and Product linked with the Technical system and Technical

              system linked with the Business system.


Huuuuuuufffffffff! Soo much

              linked. Where were we? – We are in the Configuration part

              and next step is to import the Business System? Right click the

              Business system and select “Assign Business System

              this will opens up a wizard.+*

             

             

*+






 

»

First

            screen is Introduction (Sorry no theory as I promised) just say “Continue

            button and then it will ask for Party - Sorry no Party say “Continue

            button. Select the Business system and press “Finish

            button.

           

           




 

»

     

              Next step Right Click on the Communicate Channel and say “New”.

             

             






 

»

     

              Now configure your Sender Communicate channel. First Click on the

              Help button to select the Adapters - Select "File"

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_81.gif|height=173|width=501|src=https://...!.






 

»

Then

            select “Sender” and give the

            All other are default


            [ | ]

           




 

»


Let’s not discuss what each of the Fields do. I just mentioned
what need to be changed.

              Folder path should be XI Server system path not your system folder

              path. As I have installed it on my machine that is the reason I

              have given my C: path but If you are having XI server not

              on your machine then create the folder in the XI Server and give

              the Local path.


Its logically make sense that
from where XI will pick up the file, give that path and check that
can Adapter access that path from XI server. I mean a share drive.
Did u understand?





















 

»


If yes smile and save the Sender Communication channel.

 

»


Now in the same manner create the Receiver Communication Channel.
I know you are clever you know how to do this?


!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_83.gif|height=137|width=311|src=https://...!

 

»


My Screen is like this. Only Filename and Target Directory are different.


!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_84.gif|height=357|width=576|src=https://...!

 

»


Left hand side Communication channel are like this

             

             






 

»

     

              Done! Next is “Receiver Determination

             

             






 

»

     

              Did I told u that XI makes our job easier then here it is the proof.

              Just use the help button to select the Service means your

              Business system and in the Interface box it will present you the

              correct interface just select. Before closing, match the following

              input as below.

             

             






 

»


You know what you are doing here? We are trying to say to XI that
this is the

Sender Business system, Sender Interface, Sender Namespace (This
is the key)

              And to this sender information we need to map the Receiver Business

              system. In order to do that select the Help option from the “Service

              option in “Configured Receivers



!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_88.gif|height=67|width=575|src=https://w...!








 

»

     

              After selecting the Receiver Business System. Click on “Save

             

             






 

»


Now we will create Interface Determination. Just select as it is
shown

             

             






 

»


Fill as it has shown below.

             

             






 

»


This interface Determination will ask for Inbound Interface and
also for Interface Mapping. Just use help button to select it. Always
save when it is done.

             

             






 

»


Next Sender Agreement

             

             






 

»


Nothing special we do here. We just attach the Communication channel
to the Sender Key (Sender Business system, Sender Interface, Sender
Namespace)


             

             






 

»

     

              Simple as it shows. “Save

             

             






 

»


Now same way create Receiver Agreement. Thinking How? Now I need
to raise my Eyebrow.

             

             






 

»


Simple again. Just select the Receiver Communication Channel.

             

             

              Are we in the same Boat?






 

»


You know what? We have done the scenario. Its time for result

             

             






 

»

     

              Activate the scenarios same steps as we have done in the Design

              part. You need to move to “Change List"

              tab in order to see the activate option.

             

             


















 

»


Yupp we are there! Smile on my face

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_100.gif|height=66|width=300|src=https://...!

 

»


Are we done? Where is the output? What’s next? So, XI is going
to run the file? What I need to do Next? Finished?

These were the question when I did my first Hello world scenario
using XI by reading the Blogs. They just end up saying “Provide
the input file and then you will get the output file”. You
know one my student gave XSD content as the input when he did the
first scenario. Don’t worry I am not going to leave half path.
lets go to the target and shout from there that we have done it!

 

»

     

              Now XI will be a Scheduler job which tries to search for the file

              in the “Sender Folder” what is this? This is the folder

              (C:XI_FILESSENDER) that we have configured

              in the Sender Communication Channel and

              also we gave the file name to pick up. As the file is not there

              so there will not be any output in the Receiver Folder (C:XI_FILESRECEIVER)






 

»

So

              how can I provide the file to XI? You need to create a file +*xi_xmlfile_input.dat

              +in the folder +C:XI_FILESSENDER*+

              But what is the content. Content should be XML data. But where can

              I get it? I will show you.






 

»

     

              Open your Design: Integration Builder and open you Software Component

              and then open the Mapping Objects under it open Message Mappings

              select the mm_mapping . This will open

              the mapping program .

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_101.gif|height=123|width=177|src=https:/...!
















 

»


On the right hand side. Select the Test Tab and click on Source
Document View button

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_102.gif|height=175|width=392|src=https:/...!

 

»


Can you see the XML? Yes good

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_103.gif|height=154|width=275|src=https:/...!

 

»

     

              Copy this and paste it into the file C:XI_FILESSENDERxi_xmlfile_input.dat

              only the xml contents and now wait for the XI to pick the file.

              Once XI picks the file then it will delete the file.



!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_104.gif|height=89|width=191|src=https://...!











 

»


Hurray I got the output file!

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_105.gif|height=67|width=253|src=https://...!

 

»

     

              How to debug if anything went wrong? Login into the XI server and

              type the TCode “SXMB_MONI

              this will take u to the message monitoring screen. Just select the

              first option then press “Execute”.

              One more screen opens up Just Press "Execute"

              again.

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_106.gif|height=135|width=345|src=https:/...!











 

»


Now open the message which has your business service name. If it
is in red color box then error or else if you are seeing what I
am seeing then You have successfully created a “XML FILE 2
XML FILE Scenario” from Scratch.

!https://weblogs.sdn.sap.com/weblogs/images/251692121/Figure_107.gif|height=40|width=420|src=https://...!

*+Thanks
for spending time with me to learn this scenario we will meet in
the next session. Happy Learning!+*



21 Comments