3.introduction to simple(file-xi-file)scenario.pdf

6
7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 1/6 Getting Started Newsletters Store Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Log On Join Us Hi, Guest Search the Community Activity Communications Actions Browse venkat.donela 0 Tweet 0 Here specifics of SLD are not covered.Scenario is simple the csv file is picked up by the file adapter from a business system and posted on to the same system using file adapter.At the end of this scenario I am sure you will be able to challenge with various other complex scenarios. Overview The Map Designer is a client component of the Design Builder used to develop maps defining input and output specifications and mapping rules that perform data transformation as desired. The Mapping Object of the Integration Repository uses the definitions of data stored or defined in the data type object (that are created using the Data Type Design editor) to specify the transformation logic in the form of map rules. Map rules operate on input data objects and build output data objects. Basic Steps for Building the Desired Output Data Building the desired output data consists of two main steps: 1 Choose the message types in the Mapping Design. 2 Defining the data definitions in the data type editor object. Introduction to simple(FileXIFile)scenario and complete walk through for starters(Part1) Posted by Venkat Donela in venkat.donela on Mar 2, 2005 7:06:05 AM Share 0 Like

Upload: ankaiahyadav

Post on 25-Jan-2016

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 1/6

Getting Started Newsletters Store   

Products Services & Support About SCN Downloads

Industries Training & Education Partnership Developer Center

Lines of Business University Alliances Events & Webinars Innovation

Log On Join UsHi, Guest Search the Community

Activity Communications Actions

Browse

venkat.donela 

0 Tweet 0

Here specifics of SLD are not covered.Scenario is simple the csv file is picked up by the file adapter from a businesssystem and posted on to the same system using file adapter.At the end of this scenario I am sure you will be able tochallenge with various other complex scenarios.

Overview

The Map Designer is a client component of the Design Builder used to develop maps defining input and outputspecifications and mapping rules that perform data transformation as desired.The Mapping Object of the Integration Repository uses the definitions of data stored or defined in the data type object(that are created using the Data Type Design editor) to specify the transformation logic in the form of map rules. Maprules operate on input data objects and build output data objects.

Basic Steps for Building the Desired Output Data

Building the desired output data consists of two main steps:

1 Choose the message types in the Mapping Design.

2 Defining the data definitions in the data type editor object.

Introduction to simple(FileXIFile)scenario andcomplete walk through for starters(Part1)Posted by Venkat Donela in venkat.donela on Mar 2, 2005 7:06:05 AM

Share 0Like

Page 2: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 2/6

Working on the Message Mapping Object

In order to use the Mapping Object, you must already have the data structure that defines your data in the data Typeobject. The Mapping Object uses the data object definitions that are stored in the Data type Object.

The Mapping Editor is used to:

1.Create maps to specify the logic necessary to transform the input data to the desired output data.

2.Identify the source and data objects of the input data.

3.Validate and resolve the source data type properties defined in the Data Type Object.

4.Identify the target and data objects of the output data.

5.Specify and build the output data according to the rules specified during mapping.

6.View the test results of the map execution.

Create Maps to Specify Sources and Targets

After defining data objects and their properties in the Data Type Editor, define the mapping in the Mapping Objectswhere you specify the outbound and inbound Data Types. 

To create maps using the Map Designer

1 Select the message type source file and the Target file.

2. Specify the logic necessary by using various functions to transform the input data to the desired output data.

3 Map the respective elements 

4 Test your maps with Test tab.

Development of all design objects for the Integration Repository at design time

The objects in the Integration Repository are assigned to a product using the software component version and cantherefore be shipped with this product.

A data file is a simple example of data. The file consists of records and eachrecord consists of fields. Three kinds of data objects exist in this data file: a file,a record, and a field. In a file of records, think of the data in terms of the threeData objects:1)Define your Fields FirstName, MiddleName, LastName, Place, City, State, and Country 

Samuel,J,Jackson,Lakefront Drive,Earth City,Missouri,USA

Kenny,m,George,North Beauregard street,Alexandria,Virginia,USA

Page 3: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 3/6

To define this data , create a Data Type in your Integration Repository.create Three data types: FileInput, Record, and RowDefine your fields FirstName,MiddleName,LastName,City,Place,State,Country as shown and their respectiveproperties.

!https://weblogs.sdn.sap.com/weblogs/images/28987/1.JPG|height=200|alt=image|width=578|src=https://weblogs.sdn.sap.com/weblogs/images/28987/1.JPG|border=0

The entire contents of your data must be defined. Define the input data so that each data object of the source data isidentified. Define the output data according to your output specifications.Here the requirement is output conatins thesame fields as the input.

2)Define output data type structure name as FILEOUTPUT_TEST containing the same elements as the input.

!https://weblogs.sdn.sap.com/weblogs/images/28987/3.jpg|height=284|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/28987/3.jpg|border=0

3)Create a Message Type comprises a data type that describes the structure of a message.

This is used to refer the message in SAP XI to be exchanged at runtime.specify your datatype name in this case it isFILEINPUT

!https://weblogs.sdn.sap.com/weblogs/images/28987/4.jpg|height=400|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/28987/4.jpg|border=0

4)Create a Message Interface to describe interface, which you want to use to exchange messages betweenapplication components using SAP Exchange Infrastructure. for a message interface, it can either have the task ofsending a request (outbound) or receiving a request (inbound).This is an outbound interface,where the Output message type is FILEINPUT and attributes are defined as shown.

!https://weblogs.sdn.sap.com/weblogs/images/28987/5.jpg|height=349|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/28987/5.jpg|border=0

This is an Inbound Interface where you specify the Input Message type FILEOUTPUT_TEST and the attributes asshown.

!https://weblogs.sdn.sap.com/weblogs/images/28987/19.jpg|height=328|alt=image|width=600|src=https://weblogs.sdn.sap.com/weblogs/images/28987/19.jpg|border=0!/

A mapping refers to the mapping of interfaces or messages to other interfaces or messages.You can define mappings for an interface pair (source and target interface) by using message interfaces and messagetypes in the Integration Repository.

5)Create a Message Mapping FILE_TO_FILE which refers to a mapping of messages and is supported by a graphicalmapping editor. The editor enables you to design a structure mapping between any two XML structures and connect toa value mapping.

Using the editor which enables you with the drag and drop metaphor,design your mapping by dragging the elementsfrom the source FILEINPUT structure and dropping them on to the elements on the target structureFILEOUTPUT_TEST. load the two message types and define the mapping as shown.

Page 4: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 4/6

6)Create an Interface mapping FILEINPUT_TO_FILEOUTPUT_NTERFACE.Interface mappings register your mappingprogram for an interface pair in the Integration Repository.

Enter the source and target interfaces which in this case are FILEINPUT_OB and FILEOUTPUT_IB. 

To import the properties of the interfaces, choose Read Interfaces

An interface mapping can only refer mapping programs that belong to the same or an underlying software componentversion of the interface mapping.select the mapping program,in this case it is FILE_TO_FILE.

save and activate in the change list where you select your saved objects.Now the status become from BeingProcessed to Active.

Please Dont forget to follow up the Part2 for configuration the contents,the Sender and Receiver File adapter inintegration directory.         

Page 5: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 5/6

Average User Rating

(7 ratings)

My Rating:

0 Tweet 0

      

3292 Views  

Share 0Like

6 Comments

Like (0)

Gerardo Ramon Espino Jun 7, 2006 2:26 PM

Hi,

Could you please tell me where do you specify that the output format will be XML?

Regards,

Gerardo.

Like (0)

Venkat Donela Jun 8, 2006 4:55 AM (in response to Gerardo Ramon Espino)

Hi,

There is no need to specify the output format.XI uses XML standard.

Please elaborate the question if i am not clear.

Cheers!Venkat

Like (0)

Reddy P Jun 26, 2006 8:53 PM

Hi Venkat,

It is very nice and useful for new commers like me. Can you please tell me what is the differencebetween record and row in your example.

Thanks,Reddy P

Like (0)

Venkat Donela Jun 29, 2006 2:06 AM (in response to Reddy P)

Hi,

A record can contain multiple types of substructures identified by logical names.In this caseis the row. There can be a fixed or variable number of substructures in a record.

Cheers!Venkat

Jennifer Lee Jan 4, 2007 1:16 PM

I followed this blog exactly but nothinghappened to the xi_input.dat file.

How to debug?

Thanks!

Page 6: 3.Introduction to simple(File-XI-File)scenario.pdf

7/19/2015 Introduction to simple(FileXIFile)scenario an... | SCN

http://scn.sap.com/people/venkat.donela/blog/2005/03/02/introductiontosimplefilexifilescenarioandcompletewalkthroughforstarterspart1 6/6

Follow SCNSite Index Contact Us SAP Help PortalPrivacy Terms of Use Legal Disclosure Copyright

Like (0)

Like (0)

Venkat Donela Jan 11, 2007 8:59 AM (in response to Jennifer Lee)

Hi Jeniffer,

sorry for the delay,Plz check if the ftp server is running and also your file adapter status inRuntime work bench.

Cheers!Venkat