cancel
Showing results for 
Search instead for 
Did you mean: 

Design Patterns needed for SAP XI

Former Member
0 Kudos

Hi

Accepted Solutions (0)

Answers (3)

Answers (3)

VijayKonam
Active Contributor
0 Kudos

Hi Amruth,

I take it this way. Design patterns are applicable at BPM level for XI interfaces. Check the BASIS software component supplied by default in the repositiry and expand the name spaces there. You should be able to find the pattern related objects there.

VJ

Former Member
0 Kudos

hi,

Here are the general step for designing for file to r/3 integration using IDOC,RFC

After doing this ull get good idea abt the sap xi designing

To Configure the FILE TO SAP R/3 OR SAP R/3 TO FILE, proceed as follows:

Step1:Repository

1 From the Integration Builder page, select “Integration Repository”. This will launch the Java Web Start Application. Log with the User id and password from the Integration Server.

2. Choose Tools->Transfer from System Landscape Directory->Import Software Component Versions

From the list of Software Component Versions, Choose your own software component version .Click Import.

3 On the left hand side frame ,software components will appear .Select your own software component. Open your own software component. Double click on this software component. A screen will appear .Switch to display mode. After doing this first add a namespace under Namespaces.

The namespace should always begin with urn:

4. Then choose the Radio Button ->Import of RFC AND IDOC interfaces from SAP systems permitted

After this specify the connection parameters to the R/3 system:

System : Name of sap R/3 system

Client : Sap R/3 client number

These two fields are mandatory. You must Specify these fields.

Then Save it. The new namespace will be visible under software component version node in the left frame.

Under the namespace node, you will find the section Imported Objects. Right click on it and choose Import of sap objects. A wizard will display. In the wizard provide the following details.

Application server:IP address of sap r/3 system.

System number: Number of sap r/3.

User name: user name of sap r/3 .

Password: Password of sap r/3 system.

Then click continue .You will find IDOC and RFC node. Click on this node and select the Idoc or Rfc which is to be imported from R/3. Click Finish to start the Import. Close the wizard. After doing this the Rfc and Idoc will be available into XI as Message types. So no need to create any Rfc or Idoc Structure. We need to create a structure for file only.

5. Under your namespace in the left frame, expand the node “Interface objects”. You will find a node “DATA TYPES”

6 Create new data types.

Right click on “Data types” and select “New”. Give a suitable name to Data Type(DT_datatype). In the data type Editor ,Create a structure having Elements of type String , integer, Boolean , Float etc as per the requirement.

Save the object.

6.2 The Import function for XSD files enables you to upload message definitions from external sources. The object type “External Definition” is a container to make external definitions available in the Integration Repository.. While Importing the XSD files from “External Definition “

no need to create Data types. They are imported directly as Message types.

To do so, In the left hand frame Under ” Interface objects” Create a new object of type “External Definition” and give name to it.

Select the following.

Category: XSD.

Messages: From All Available Global Elements.

File: Here we need to specify the file name(file.xsd)

Once the XSD is imported, click on “Message” tab , You should be able to see 2 messages(Request and Response)

7. Create a new Message Type.

7.1 In the left hand frame under “Interface objects”, right click on the “Message types” and select new.

7.2 Give a suitable name to the Message type.(MT_ messagetype).

7.3 For the section “Data type used” you can go to input help (F4) or Search help provided and choose your data type (DT_datatype) from there.

Save it.

8. Create a “Message interface” from the left frame and name(MI_ messageinterface) it.The interface Should be Inbound or Outbound and mode should be Asynchronous .It should reference your Message type(Use F4 or Search help).

Save it.

9. Create a graphical mapping between the target document and the sender .

9.1 In the left hand frame ,expand “Mapping objects”. Right click on “Message mapping” and name it.You are now in a graphical editor.The Source message is on left, the Target message is on right.

9.2 As Source message select your own Idoc , Rfc or Message type.You can choose “Search for Integration Object”.As a reminder you can find your Idoc or Rfc under Software Component- > Namespace->Imported Objects.

9.3 As Target Message you can choose your Message type or Idoc, Rfc .Choose “Search for Integration Object”.

9.4 Now that we have defined the Source and Target message, we can start defining the Mapping rules.

9.5 Map the fields of Source document to the equivalent fields in Target document .This can be achieved easily by locating the field in Target document and then Drag and Drop the Source fields to the respective Target Fields.

Save It.

You can also Test your Mapping by selecting the Test Tab.

9.6 Fill in the values in the Idoc fields and click Start Transformation. On the right hand side you will see Target Document populated with the appropriate Values.

10. Create an “Interface Mapping”.

In the left hand Frame expand “Mapping objects”. Right Click on “Interface Mapping” and Name it. You are in a Interface Mapping Editor .Assign the following References.

Source interface : Your Outbound Interface (Idoc from the Software component Version).You can Choose” Search for Integration Object”.

Target interface: Your Inbound Interface( The Target document interface).

Then Select Read Interface and Assign your “ Mapping Program” .

Mapping Program: Your Message mapping.

Then Save it.

11. Finally , in the left hand frame ,go to your change list and Activate it.

Rewards points if helpful

Vikas

Former Member
0 Kudos

Amruth

There is no design pattern as such.

For mapping , you can do it one of 4 ways:-

1.Graphical

2.ABAP

3.JAVA

4.XSLT.

You can have any type of scenario which posiibiliy can involve Idoc,file,RFC,BAPI

Vishal