cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Techniques

Former Member
0 Kudos

Hi All,

how many mapping techniques ?

Docs on Mapping

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

These links provided below will deal with various techniques that are handled in mappings.

Simple java code in graphical mapping - XI

GlobalContainer - in graphical mapping (XI)

XI: How to test your mapping (in real life scenarios)

XI: XML node into a string with graphical mapping?

Sending Java code as payload to do mapping in XI

Skelton of Mapping Runtime in SAP XI Did we bother to understand why the RFC Destination AI_RUNTIME_JCOSERVER is very important

Accessing System Parameters in Mapping Runtime

Message Mapping Simplified - Part II NODE FUNCTIONS

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Limitations of Message Mapping Editor in XI-Can we make it user-friendlier?

The Use of "suppress" in the XI 3.0 Graphical Mapping Tool

New functions in the Graphical Mapping Tool SP13

SAP PI 7.1 Mapping Enhancements Series: Correct Structural Inconsistencies

SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups

SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings

SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series

SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo

SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree

SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable

SAP PI 7.1 Mapping Enhancements Series: Share User-Defined Functions

SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata

Using Folders in PI 7.1

TechEd 2006: EPI351 - Graphical Mapping Tool-Advanced Message Mapping

Minimize memory usage during Message Mapping when replicating an element

New Arithmetic and Statistical Functions in Message Mappings in SP18

Never, ever use XI's built-in arithmetic functions

Sequence Number Generation: Mapping Pattern in PI

Summarization: Mapping Pattern in PI

Message Mapping - using of E1BPPAREX => experience in the aspect of maintenance and customer usability

Duplicating Sub trees and Numbering Them Using the Graphical Mapping Tool

Message Splitting Using the Graphical Mapping Tool

Replication of Nodes Using the Graphical Mapping Tool

Standard functions in message mapping

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

New Arithmetic and Statistical Functions in Message Mappings in SP18

Hack: Using XPATH in XI Message Mappings

Message mapping verification

Mapping Context Changes in XI

Mapping trouble shooting

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e01e9400-9e81-2910-20a5-a862945a...

Mapping Context Changes in XI

File Content Conversion for Multi Hierarchical Structure

Number formatting to handle LARGE Numbers

Optimizing Lookup's in XI

Data Mining using APriori Algorithm in XI - Part I, II & III

/people/jeyakumar.muthu2/blog/2005/12/19/data-mining-using-apriori-algorithm-in-xi-150-part-ii

/people/jeyakumar.muthu2/blog/2005/12/30/data-mining-using-apriori-algorithm-in-xi-150-part-iii

/people/jeyakumar.muthu2/blog/2005/11/23/data-mining-using-apriori-algorithm-in-xi-150-part-i

Java Mapping to handle flat files in SAP XI

xpath functions in xslt mapping

"JAVA MAPPING", an alternate way of reading a CSV file

B2B Mapping Techniques Using the Graphical Mapping Tool

How to parse "XX/YY/ZZ;AA/BB/CC;11/22/33" in message mapping

Introduction to queues in message mapping

ValueMapping using the Graphical Mapping Tool

Accessing Value Mapping defined in Directory using Java functions

Multi-Mapping without BPM - Yes, it's possible!

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Designing Mapping:

http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/content.htm

User-Defined Functions

http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

Standard Functions

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

Runtime Procedure

http://help.sap.com/saphelp_nw04/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm

Mapping Fields Within a Context

http://help.sap.com/saphelp_nw04/helpdata/en/e4/82cf0ec8b9494db92e27e2be69524f/content.htm

Structure Mapping by Setting the Context

http://help.sap.com/saphelp_nw04/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/content.htm

Comparing Performance of Mapping Programs

Mapping examples:

All mapping concepts:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mappingConceptsinSAPXI

Comparison of various Mappings:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping%2btechniques

How to test mapping:

Mappings:

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

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb...

Message Mapping:

http://help.sap.com/saphelp_erp2004/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm

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

- Sravya Talanki

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii - Sravya Talanki

Java Mapping:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/09b16006526e72e10000000a422035/content.htm

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a08e8c15-682d-2b10-7798-c4592a41... - by Santhosh

XSLT Mapping:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/content.htm

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

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30ac53f2-21d7-2a10-afa2-ce1a0577...

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

Generic XSLT Mapping for SAP XI,Part I

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2e...

Generic XSLT Mapping for SAP XI,Part II

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923...

XSLT: Recursive Templates

Easy RFC lookup from XSLT mappings using a Java helper class

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc...

ABAP Mapping:

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

Answers (6)

Answers (6)

former_member192295
Active Contributor
0 Kudos

HI,

In PI we have four mappings are available Graphical, ABAP, JAVA, XSL Mapping, find the below link for more information.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb...

Former Member
0 Kudos

Hi,

check the following links

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

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)

Regards,

Rohit

Former Member
0 Kudos

refer the one link:

Mapping Concepts in SAP XI

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mappingConceptsinSAPXI

Former Member
0 Kudos

Hi

Simple java code in graphical mapping - XI

GlobalContainer - in graphical mapping (XI)

XI: How to test your mapping (in real life scenarios)

XI: XML node into a string with graphical mapping?

Sending Java code as payload to do mapping in XI

Skelton of Mapping Runtime in SAP XI Did we bother to understand why the RFC Destination AI_RUNTIME_JCOSERVER is very important

Accessing System Parameters in Mapping Runtime

Message Mapping Simplified - Part II NODE FUNCTIONS

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Limitations of Message Mapping Editor in XI-Can we make it user-friendlier?

The Use of "suppress" in the XI 3.0 Graphical Mapping Tool

New functions in the Graphical Mapping Tool SP13

SAP PI 7.1 Mapping Enhancements Series: Correct Structural Inconsistencies

SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups

SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings

SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series

SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo

SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree

SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable

SAP PI 7.1 Mapping Enhancements Series: Share User-Defined Functions

SAP PI 7.1 Mapping Enhancements Series: Import SQL Table's Metadata

Using Folders in PI 7.1

TechEd 2006: EPI351 - Graphical Mapping Tool-Advanced Message Mapping

Minimize memory usage during Message Mapping when replicating an element

New Arithmetic and Statistical Functions in Message Mappings in SP18

Never, ever use XI's built-in arithmetic functions

Sequence Number Generation: Mapping Pattern in PI

Summarization: Mapping Pattern in PI

Message Mapping - using of E1BPPAREX => experience in the aspect of maintenance and customer usability

Duplicating Sub trees and Numbering Them Using the Graphical Mapping Tool

Message Splitting Using the Graphical Mapping Tool

Replication of Nodes Using the Graphical Mapping Tool

Standard functions in message mapping

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

New Arithmetic and Statistical Functions in Message Mappings in SP18

Hack: Using XPATH in XI Message Mappings

Message mapping verification

Mapping Context Changes in XI

Mapping trouble shooting

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e01e9400-9e81-2910-20a5-a862945a...

Mapping Context Changes in XI

File Content Conversion for Multi Hierarchical Structure

Number formatting to handle LARGE Numbers

Optimizing Lookup's in XI

Data Mining using APriori Algorithm in XI - Part I, II & III

/people/jeyakumar.muthu2/blog/2005/12/19/data-mining-using-apriori-algorithm-in-xi-150-part-ii

/people/jeyakumar.muthu2/blog/2005/12/30/data-mining-using-apriori-algorithm-in-xi-150-part-iii

/people/jeyakumar.muthu2/blog/2005/11/23/data-mining-using-apriori-algorithm-in-xi-150-part-i

Java Mapping to handle flat files in SAP XI

xpath functions in xslt mapping

"JAVA MAPPING", an alternate way of reading a CSV file

B2B Mapping Techniques Using the Graphical Mapping Tool

How to parse "XX/YY/ZZ;AA/BB/CC;11/22/33" in message mapping

Introduction to queues in message mapping

ValueMapping using the Graphical Mapping Tool

Accessing Value Mapping defined in Directory using Java functions

Multi-Mapping without BPM - Yes, it's possible!

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Designing Mapping:

http://help.sap.com/saphelp_nw04/helpdata/en/d2/58cd3b11571962e10000000a11402f/content.htm

User-Defined Functions

http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

Standard Functions

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

Runtime Procedure

http://help.sap.com/saphelp_nw04/helpdata/en/3d/24e15bf9d79243b45d49b13b03de8f/content.htm

Mapping Fields Within a Context

http://help.sap.com/saphelp_nw04/helpdata/en/e4/82cf0ec8b9494db92e27e2be69524f/content.htm

Structure Mapping by Setting the Context

http://help.sap.com/saphelp_nw04/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/content.htm

Comparing Performance of Mapping Programs

Regard's

Chetan Ahuja

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

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

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.

- Message Mapping Simplified - Part I

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii - Message Mapping Simplified u2013 Part II

- Introduction to Context Handling in Message Mapping

- ValueMapping using the Graphical Mapping Tool

former_member183906
Active Contributor
0 Kudos

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:

Also, check this thread for more info,