cancel
Showing results for 
Search instead for 
Did you mean: 

MAPPING

Former Member
0 Kudos

Hi guys,

plz help me.plz tell me about MESSAGE-MAPPING,JAVA-MAPPING,ABAP-MAPING,XSLT-MAPPING.

with warm regards.

vikash

Accepted Solutions (0)

Answers (11)

Answers (11)

Former Member
0 Kudos

Hi Vikash Shrivastava ,

The following websites will answer u'r questions in detail :

Excellent PDF Document on Mapping

http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf

Mapping Development with the ABAP Workbench

http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm

ABAP Mappings

http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm

how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

How to Use ABAP Mapping in XI 3.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4...

cheers!

gyanaraj

****Pls reward points if u find this helpful

Former Member
0 Kudos

Hi Vikash

Mappings are used to define structure or value mappings between messages that are exchanged between interfaces. You can define these mappings as graphical message mappings or you can import them into the Integration Repository as XSLT or Java archives.

As an alternative to graphical message mappings (which the Integration Builder uses to generate Java programs), you can also import externally-defined XSLT mappings or Java mappings to the Integration Repository, to execute at runtime. It is also possible to combine different mapping program types with each other .

Message mapping

A message mapping refers to a mapping of messages; the procedure is supported by a graphical mapping editor. The editor enables you to design a structure mapping between any two XML structures and connect to a value mapping.

The mapping tool generates Java source code from the graphical mapping description, which is then compiled and packed in a JAR file that the Integration Engine executes at runtime.

http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/content.htm

XSLT Mapping

Interface descriptions are in the form of XML documents. XSL Transformation (XSLT) is a member of the XML family of languages. It describes how an XML structure is transformed into another XML structure.

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm

Java Mapping

Purpose

You can implement mapping programs in Java. To process XML documents, use Java API for XML Processing (JAXP), for example. The JAXP supports the Document Object Model (DOM) and the Simple API for XML (SAX). This gives you great flexibility for mapping definitions with Java.

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm

Imported Archives (XSLT/Java)

http://help.sap.com/saphelp_nw04/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/content.htm

Thanks

sandeep

if helpful reward points

vijay_b4
Active Contributor
0 Kudos

Hi Vikash,

There are 4 types of mapping in XI

1. Graphical Mapping

2. XSLT Mapping

3. JAVA Mapping

4. ABAP Mapping

Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve any complex logic.

Java and XSLT mapping are used when graphical mapping cannot help you.

When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. One among them being that you cannot use Java APIs and Classes in it. There might be cases in your mapping when you will have to perfrom something like a properties file look up or a DB lookup, such scenarios are not possible in XSLT and so, when you want to use some specific Java API's you will have to go for Java Mapping.

Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.

SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.

For further info on each of the mapping, refer to these links,

Graphical Mapping,

http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

XSLT Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm

http://www.w3.org/TR/xslt20/

Java Mapping

http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm

DOM parser API

http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html

Check this blog on Mapping:

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

Also, check this thread for more info,

Reward points if this helps

Regards

Vani.

Former Member
0 Kudos

hi check the below blog

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

regards

chandrakanth

Former Member
0 Kudos

HI buddy

i think u have got wht u ahve asked for.Reward the SDNers n make the thread closed or answered.

cheers

Former Member
0 Kudos

Hi,

XI provides 3 standard ways of interface mapping between source and target.

Graphical mapping

Java Mapping

XSLT Mapping

Two more additional mapping types can be activated in XI by making changes to the exchange profile. Those two mappings are

ABAP mapping

XSLT mapping with ABAP Extensions

Graphical Mapping

Graphical mapping is a common approach followed by everyone for generating desired target structure. It involves simple drag-n-drop to correlate respective nodes (fields) from source and target structure. It hardly involves coding. (Exception - User defined functions). But sometimes with graphical mapping it is difficult to produce required output. For example ... text/html output, namespace change, sorting or grouping of records etc.

ABAP Mapping

A person comfortable with Object Oriented ABAP can go for ABAP mapping instead.

Java Mapping

Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.

SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.

XSLT Mapping

One can also think of Java mapping as another option but it is a bit complex and required knowledge of Java. In such cases, XSLT mapping can be the best approach to meet the requirements.

A few example cases in which an XSLT mapping can be used:-

When the required output is other than XML like Text, Html or XHTML (html displayed as XML)

When default namespace coming from graphical mapping is not required or is to be changed as per requirements.

When data is to be filtered based on certain fields (considering File as source)

When data is to be sorted based on certain field (considering File as source)

When data is to be grouped based on certain field (considering File as source)\

Advantages of using XSLT mapping

    1. XSLT program itself defines its own target structure.

XSLT programs can be imported into SAP XI. Message mapping step can be avoided. One can directly go for interface mapping once message interfaces are created and mapping is imported.

XSLT provides use of number of standard XPath functions that can replaces graphical mapping involving user defined java functions easily.

File content conversion at receiver side can be avoided in case of text or html output.

Multiple occurrences of node within tree (source XML) can be handled easily.

XSLT can be used in combination with graphical mapping.

Multi-mapping is also possible using xslt.

XSLT can be used with ABAP and JAVA Extensions.

Disadvantages of using XSLT mapping

    1. Resultant XML payload can not be viewed in SXMB_MONI if not in XML format (for service packs < SP14).

Interface mapping testing does not show proper error description. So errors in XSLT programs are difficult to trace in XI but can be easily identified outside XI using browser.

XSLT mapping requires more memory than mapping classes generated in Java.

XSLT program become lengthier as source structure fields grows in numbers.

XSLT program sometimes become complex to meet desired functionality.

Some XSL functions are dependent on version of browser.

Reward points if it helps......

Thanks,

Madhu

Former Member
0 Kudos

HI

Different Mapping Techniques are available in XI. They are: Message Mapping, XSLT Mapping, Java Mapping and ABAP mapping.

u2022The integration repository includes a graphical mapping editor. It includes built-in functions for value transformations and queue and context handling. There is an interface for writing user-defined functions (java) as well.

u2022XSLT mappings can be imported into the Integration Repository; java methods can be called from within the XSLT style sheet. Advantages of this mapping are: open standard, portable, extensible via Java user-defined functions.

u2022If the transformation is very complex, it may be easiest to leverage the power of Java for mapping.

u2022ABAP mapping programs can also be written to transform the message structures.

.Message mapping are of 2 types.

a.Structure Mapping: transform entire message structure.

b.Value Mapping: Transform values within messages.

Message Mapping

SAP XI provides a graphical mapping tool that generates a java mapping program to be called at run time.

u2022Graphically define mapping rules between source and target message types.

u2022Queue-based model allows for handling of extremely large documents.

u2022Drag-and-drop.

u2022Generates internal Java Code.

u2022Built-in and user-defined functions (in Java)

u2022Integrated testing tool.

u2022N:M mapping is possible

Mesage mapping is done in IR part of XI.

Java mapping is done in java and imported as an imported archive in XI

ABAP mapping is done using Exchange Profile.

cheers

    • reward points if found useful

Former Member
0 Kudos

hi,

Mesage mapping is done in IR part of XI.

Java mapping is done in java and imported as an archive in XI

ABAP mapping is done using Exchange Profile

reaward points if helpful

PraSHAnT

Edited by: Prashant Menon on May 19, 2008 9:44 AM

Former Member
0 Kudos

Hi,

please check this blog for mappings in XI.

/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi

prateek
Active Contributor
0 Kudos

Please make an sdn search and then come up wid ur questions

Regards,

Prateek