Skip to Content

Whenever I use to start learning a new programming language I always use to search for a hello world program which can make me happy to see a output even though I did not did understand what’s going inside. Even my boss asks me many a times “Can you please show me, what this tool does?” Well, this kind of guides helps many new babies to understand a typical hello world program kind of stuff using XI.

I am not going to copy and paste much theory that you can find in many of good articles in the sdn library. In turn, I am going to just elaborate more on the basic steps to implement this simple scenario (That’s what the heading say so?). Even I am doing as I write this blog. So, Let’s Start!

Scenario

Suppose, you want to transfer a XML file (some user-defined XML format) 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
Interface Diagram

Step by Step Solution

  Step 1: Login into XI
  » Login into the SAP XI server using the logon pad.
  » Type “sxmb_ifr” transaction code to launch the Integration Builder.
  » Page will popup showing the first screen of the integration Builder which looks similar to this.

  Step 2: System Landscape Directory
  » Click on the “System Landscape Directory” link.
  » This will open up the first screen of the SLD (System Landscape Directory). Here we are going to define our Product, Software Component, Technical System and Business System. (What is Product, Software Component, Technical System and Business system?)

  Step 3: System Landscape Directory – Define a Product
  » First step is to define a Product. For that, click on “Software Catalog” link.
  » Click on “New Product” Button to create a Product.
.
  » Now define the Product as per the inputs and click on “Create” button.
  » Can you see this message on your page when u clicked “Create” button. [Keep an eye on such kind of messages on top of the page]
  »

If yes then Great. Congratulations! You have created a Product successfully.


  Step 4: System Landscape Directory – Define a Software Component
  Next step is to create a Software Component. To make the life easier XI automatically takes u to the Software Component page and by default it will select the Product that you have created.
  » Now define the Software Component as per the inputs and click on “Create” button.
  » Fine! You are done with Product and Software Component. If you see this screen then lets go back to main SLD screen as we have created the product and software component successfully. To go back to the main SLD screen click on “Home” Link on the top of the page.
.

  Step 5: System Landscape Directory – Define Technical System
  Now we need to define two Technical Systems (One for Sender and another for Receiver).
  » Click on “Technical Landscape” from the SLD main page.
  »

When the page opens up select the “Third-Party” from the Technical System Type drop-down and press on the
New
Technical System” button.

  » A page will pop-up asking for details of creating a Technical System.
  » Click on “Next>” button and then Fill all the values and then click on “Next>” again.
.
  »

Your next screen will ask you where is your product? Just search in the box or select it from the list and when it is listed just double click it or select it and say “Add”.

Points to be noted before pressing Finish:
– Check that your Product is listed in the “Selected Products box
– In the Components is your Software Component is selected. It should be selected as per the figure shown below.

Checklist done! Okay enough reading click on “Finish” now.
Are you with me? – Just nod

  »

Can you see this:

AND

If Yes Great! We are on the same track then. Let’s move ahead.
  »

Now, I think you are intelligent enough to create one more Technical System. Just go back to the SLD Main Screen – This is can be done by clicking on “Home” link on the top.

  »

When you reach to the SLD main screen click on Technical System again to create the Receiver Technical System. Follow the steps as per used earlier in order to create the Sender Technical system.

  » Don’t forget to select correct Product and Software Component from the list displayed.
  »

This is what I can see what about u?

AND

  Okay we have done with the Technical Systems and now we are going to create Business Systems. Go back to the SLD Home Page – Don’t ask me how now it’s shown in the top.

  Step 6: System Landscape Directory – Define Business System
  » Click on the “Business Landscape” on the SLD Main Page.
  »

This will open up the Business Landscape page. Just click on “New Business System” button.

  » Enter the Business system name and Press “Next>
  » Select and Press “Next>
  »

Now select the Technical System for which you are creating the Business System.

  » Fill the fields with these values and press “Next>
  »

Don’t forget to check the product. Anyhow by default it is selected. Just check that it is like this.

  »

Select the Integration Server from the Drop down and Click on “Finish“.

  » Now Lets see what u have learned till now. Create one more Business System with different Logical System name (Leg002). All other steps are same.
  »

Can you see the two business system

  Okay now move to SLD Home page again and check that the Technical Systems are correctly added to the Products or not.
  »

If you are at SLD Home Page then click at ”Software Catalog” and then search you Product.

  »

Click on the version and this will show the Software Component.

  »

To check the Technical system, click on “Installed Systems” this should show something like this.

  »

Can you see this? Yes Thank God! Okay fine we have done with the SLD (Products, Software Component, Technical System and Business System)

  »

Just close the SLD window and now come back to our main XI screen.


  Step 7: Integration Repository
  » Click to open the “Integration Repository” if you are using the XI for the first time this will take some loading time.
  »

You will be shown an Integration Builder: Design Screen.

  »

First step is to import the Software Component which you have created in the “System Landscape Directory


  » Select you Software Component from the list shown and click on import button. Done importing – click on “Exit

  »

Now you can see the Software Component on the Left hand side with no objects in it.
Double click your Software Component, a page will open up in the right hand side. Can you see it?
Now everything will be in Disable mode to make it in Enable mode click in Edit or Change Icon.

  » Just enter the Namespace.
  »

If you are not able to see the Namespace it will in the minimize mode. Just click on “Namespace” and then click on Cap button. This will maximize the Namespace box.

  »

Press save icon .

  » Can you see this on the left hand side?
  »

Now we are going to create Two Data Types.

  »

Right Click on Data types and click on “New”.

  »

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

  »

Now start inserting the Fields that you are going to have in the input XML file.

  »

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

  »

Now we need to create the Receiver Data Type (dt_receiver) as per shown below:

  »

Receiver Data type Fields:

  »

Now we need to create two Messages Types one for Sender and other for Receiver. In order to create anything new just right click on the object on the left side and select “New”.

  »

Select the Data Type (dt_sender) for the Message Type (mt_sender) by clicking the help button and then save it.

  »

Similar way, create the Receiver message type (mt_receiver) and then press save.

  »

It’s the time to create Interface now. Say “New” on the Message Interface on the left hand side

  »

Please make sure that you selected Outbound and Asynchronous and then select the Message Type (mt_sender) using the help button . Your screen should be like this before u save it.

  »

Now we need to create Receiver Interface. Say “New” and then fill the details as per shown.

  »

This time the Category isInbound and Mode is same Asynchronous and then select the Receiver Message Type – atlast save it.

  »

Where we are?
– We have Created two Data Types (dt_sender and dt_receiver)
– Then we have created two Message Types (mt_sender and mt_receiver)
– Last we have made 2 Interface (mi_sender and mi_receiver)
My Screen says this. What about urs?


Same output! Let’s move ahead.

  »

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.

  »

Here are the inputs for the Message Mapping Screen. Press “Create

  »

You can drag and drop the Message Types in the corresponding boxes shown as Black. Drag mt_sender Message Type and drop it in the Black Box as shown

  »

Same way drag and drop the mt_receiver Message type on the Target Box.

  »

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.

  »

In order to see the Mapping lines what you have done Graphically select the Option as displayed below. Right Click on the field and then select “Dependencies” and select “Show All

  »

Nice functionality Right! This is what called as Graphical Mapping. Save it

  »

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”.

  »

Now this is tricky. Here you can drag and drop the Interfaces on the white text boxes or you can use the help button to select the interface.

  »

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

  » Okay now we are about to close this Integration Repository. Just select the Message Mapping Program using the help button. What was the mapping program? – (mt_…..).
Don’t worry as I told XI has made life of us easier it will show only one message mapping program just select it. 🙂
  »

Good! This is what I Can see now? Okay then save the work.

  »

Now its testing time before saying yes we have done everything correct in the Designing Part. Click on the “Test” tab in the same Interface Mapping Screen.

  »

Enter the values and press “Execute” button on the same screen

  »

Does it works? If Yes wow! This is what I can see? and
The message box says:

Messages:16:12:37 Start of test
Executed successfully
16:12:42 End of test

  »

Here is the list from my XI Tool. Now its time to activate. This is something like results time after you write the exam but here best thing is you can see the errors but in real exam result we can feel the beatings? 😉

  »

To activate click on the “Change List” tab

  »

Expand your Component and Do it by yourself!

  »

Change the name of the Activate List and then press the “Activate” button in the bottom.

  »

Hurray ! My first design is Successful.

Sorry for making this blog so big, my intension was to make this a reference guide for all the new Babies. I was not aware of the limitation of the Blog. Anyways, click here for the Continuation of this blog: Step by Step Guide: XML File 2 XML File Scenario: Part II

To report this post you need to login first.

21 Comments

You must be Logged on to comment or reply to a post.

  1. Michal Krawczyk
    Hi Srinivas,

    It’s nice that you want to post XI blogs
    but did you check XI blogs archive?

    we’ve got many ” file -> * ” and ” * -> file” blogs
    with all configuration described do we need to have all possible combinations?
    I believe such a redundancy will
    only confuse the readers as they will
    not know where to look for…

    I don’t mean to discourage you
    but maybe try to post about something
    that is not in the XI blogs archive yet ok?

    thanks,

    Regards,
    michal 

    (0) 
    1. Chandra Kalva
      michal ,

      I do agree with you that there are many blogs available on File scenarios however none of the blogs teach you from ‘SCRATCH’, most blogs start with the sentence “it is assumed that configuration already exists, so that part is skipped”.

      A starter/new bie requires these kind of blogs that teaches them step by step.

      Good Job Srinivas. Keep uu the good work

      (0) 
      1. Anonymous
        Don’t start speaking like ‘kids’. I presume you should be mature enough by now.
        Did u ever look at these ones..?

        Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
        Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)

        Is your recent blog more elaborate than these ones..? Its been redundent these days.. i agree with you michal..

        Blogging status should be stripped off from such ppl, who just want to add a couple of blogs to their profile rather than presenting/sharing something new with the SDN world..

        (0) 
        1. Anonymous
          This guy ‘Vanamala Srinivas’ has more than 4 years of IT experience… lol.. ha ha ha ha.. !!!

          Where did all your experience go..? It should be shame blogging that involves such redundency..

          (0) 
          1. Srinivas Vanamala Post author
            May be this blog is not for you Mr. Experience. Sorry, you were at the wrong place.

            Its nothing wrong when you share your basic  knowledge. Did I said that this blog is for Experience Developer?

            May be redundant but as mentioned there are many detailed level Step-by-Step guides which I think is not trapped at one place. So, better new babies read it and not by US. 🙂

            Thanks
            Srini

            (0) 
            1. ramesh Kumar
              Hi Sriniwas,

              I  am novice to XI  .This Blog looks informative for the beginners .I haven’t seen such ‘Hello World ‘ program  in XI.
              It cleared my confusion .
              Its good to present Concepts like this instead of Raw Data .

              Continue your good work.

              All the Best,
              Sagar

              (0) 
          2. Michael Nicholls
            Hi Pran

            I don’t think it’s necessary to make personal attacks on Srini. Yes, you can comment on the relevence of the content etc, but to question his claim to 4 years experience is not in the spirit of SDN.

            Cheers

            (0) 
            1. Anonymous
              I agree. I was impulsive, the very momemnt i saw this redundent weblog. I shouldn’t have done that.
              I respect SDN comunnity & its bloggers.
              (0) 
  2. Srinivas Vanamala Post author
    Hi Guys,

    Thanks for your views.

    Well let me tell you what’s in my mind? – I have been working from past some time on XI and now I think it time for me to give all that knowledge to people who are need of them? So, this is just a beginning. Can you tell me one SDN blogger who has planned to concentrate on one subject?

    Well may be u might not like my idea but my idea is to have all the scenarios from pin to paper at one place and also in detailed level. I see this forums saying – “I am new to XI and can you tell me one place where can I get all the scenarios step-by-step”. Well after some days I want to reserve this place by me.

    So, this is just a beginning my dear guys you will have different views regarding my first simple blog when you will re-visit my bogs section after some time.

    Thanks
    Srini

    (0) 
    1. Anonymous
      How different is your blog from the other blogs i mentioned below… (oh..!! u have got differnt namespace, SLD components & datatype names indeed..OOOPS.!! sorry for that, i  forgot. BAD Question)
      (0) 
    2. Michael Nicholls
      Hi Srini

      It sounds like it might have been better to make this a wiki in the XI space. This is obviously a comprehensive “go to whoa” guide to get an XML file read using XI, and beginners would appreciate it. However, the main target audience for the weblog area appear to want something new, and maybe you could have written a blog about some of the extra file sender attributes.

      I believe that beginners should be directed to wikis rather than having to search for possible blogs that meet their needs. If there are many hits on “file XML”, for example, they won’t know which one to start with, and they might miss this comprehensive example. If, on the other hand, they know to start with the main XI wiki page, which has an entry “getting started with the XI file adapter”, it will be more useful.

      Cheers

      (0) 
      1. Community User
        Srini, Michael has a point and it’s one of the main reason we added the Wiki – I would recommend you move your content there. The Wiki is an excellent spot for this and your future planned content!

        Love to see it there and for those to add on to it.

        In fact so much so that I’ll make this deal – make the XI Wiki space (you and everyone else) the largest and most comprehensive space for XI knowledge (more than help.sap.com, the blogs – everything) and I’ll throw and extra XI party at the SDN Clubhouse at all the TechEd locations this year just for all of you 🙂

        (0) 
  3. Shabarish Vijayakumar
    I have been watching the comments and i guess i would put in my voice here too ….

    Its been observed in the blog section of repeating content in the past few weeks and i am disappointed that its not being treated as it needs to be by the members and moderators. In case a majority sees the content objectionable i would suggest the removal of the same, else if it really seems to be a content worth reading it sud remain in the persistant stage.

    I guess its high time the moderaters enforce control on these blogs …

    I am just a concerned SDNer,
    ShaBZ !!!

    (0) 
    1. Michael Nicholls
      Probably doing their full time jobs! I think you’ll find most of the moderators have other responsibilities within their organizations…

      From past experience, they will jump in after a few comments appear, such as has happened in this blog.

      Cheers

      (0) 
  4. Naveen Muthadi
    Srini,
    It’s good to have a blog with step-by-step (screen wise) scenario..Appreciate your time.

    Others,
    How could you be so rude towards bloggers?? If you don’t wanna read.. just quit..and stop spamming with your un-necessary comments.

    (0) 
  5. murali mohan
    how r u ?

    It is great to see step by step procedure in blog, i had been searching for this from last month, finally i got it now,

    thanx srini.

    and i want to work on file to file and idoc to file scenarios also, please help me na with screens.

    (0) 
  6. Daniel Gallardo
    Hello Srinivas Vanamala

    I want to thank you your taking your time and make this wonderful blog, believe, I have read blue prints from SAP an books on XI but this clarify all my doubs in a nutshell.

    Again Thanks and please continue contributing to the great community

    (0) 
  7. Community User
    This was such an excellent blog that i have no words to explain how helpful it was for me.Keep up the good work and expecting more such blogs from you.

    Thanks,

    Karthik

    (0) 

Leave a Reply