Login

           | 

Integration Repository (IR)

Your First XI Scenario

Attention: open in a new window. PDFPrintE-mail

Last Updated (Monday, 29 November 1999 16:00) Written by Riyaz Friday, 07 August 2009 15:35

If you have gone through the previous post and decided to start learning XI, this article will help you create your first XI scenario. You will understand the concepts better since do-it-yourself is always the best approach rather than simply reading through. I assume that you have read the previous post and are by now fairly familiar with the architecture of Exchange Infrastructure. I shall still introduce the different components of XI Architecture in course of this example.

The Scenario

SAP XI First ScenarioA custom XML document containing certain data is picked up from the file system by file adapter. The message is mapped to IDoc-XML format and then routed to the IDoc adapter. A custom IDoc is posted into the partner R/3 system by means of a call to an inbound function module. Data is updated into custom DDic tables in the R/3 system. A custom IDoc type ZRZORDER and message type ZRZSO_MT have been defined in target R/3 system.

Overview of DDic tables

Custom IDoc ZRZORDER contains three segments to hold the data records of these tables. If you haven’t already created, create three data dictionary tables as shown below:

SAP Custom or Z-Table Cardinality

In this example we are using a custom IDoc. However, you may use any existing IDoc to try out this scenario. To understand how to create a custom IDoc, refer to my post on ALE and IDocs.

Courtesy of http://www.riyaz.com. Click this link to read entire article.

 

Designing with Integration Repository

Attention: open in a new window. PDFPrintE-mail

Last Updated (Monday, 29 November 1999 16:00) Written by Riyaz Friday, 07 August 2009 15:33

Integration Repository is a design time tool where we can design and develop different objects involved in XI Integration. This helps us create integration scenarios, message types, data types, interfaces and mapping objects and designing integration processes. These objects are organized under the software component versions. These SWC versions hence need to be imported from SLD before we can begin IR development.

In the previous article, we discussed the scenario and SLD settings required for the same. Here we will understand the IR part.

Go to XI Start Page (Transaction SXMB_IFR) and choose Integration Repository.

  • Go to menu path Tools -> Transfer from System Landscape Directory -> Import Software Component Versions…
  • Select your SWC and click ‘Import’
  • The newly created SWC should now appear in the left frame. Expand the SWC, and double-click on the version
  • On the Definition tab, select the Interface Import option as ‘Import of RFC and IDoc Interfaces from SAP Systems Permitted’
  • Specify the System name and Client of the SAP system
  • Add a namespace to the SWC to hold the repository objects
    • Namespaces can be defined in two ways:
      • URI format – http://abc.com/xi/scenarios
      • URN format – urn:abc-com:xi:scenarios

Import IDoc Interface from SAP System

  • Expand the SWC and right-click on Imported Objects
  • Choose to Import RFCs and IDocs
  • Provide Logon credentials
  • Choose the IDoc ZRZSO_MT.ZRZORDER, and continue
  • Click ‘Finish’ to import the IDoc
Courtesy http://www.riyaz.com. See full article here.