cancel
Showing results for 
Search instead for 
Did you mean: 

mappings

Former Member
0 Kudos

hi.....

!) what is the diff b/n java mapping and xslt mapping

2)what is the diff b/n abap and xslt mapping.

3)what is the use for xslt mapping.

4) brief explanation about mapping.

thanks advance

Prasad.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

java mapping - Pure Java Code to map the source with target

Check <a href="/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i">this</a> link for more

xslt mapping- using XSL transformation (xslt stylesheets) to map the source xml to the target xml

Check <a href="http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm">this</a> link for more

Regards

krishna

Message was edited by:

Krishnamoorthy Ramakrishnan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prasad,

Types of Mapping in XI:

Different types of Mapping in XI

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

Check on ABAP Mapping:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d030259...

XSLT Mapping:

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

Regards,

Subhasha Ranjan

former_member529475
Active Contributor
0 Kudos

Hi Prasad

Mapping Techniques

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.

Cheers..

Vasu

<i>** Reward Points if found useful **</i>