cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT mapping

Former Member
0 Kudos

Hi Group,

What are the advantages of XSLT mapping over Message Mapping

Accepted Solutions (0)

Answers (5)

Answers (5)

udo_martens
Active Contributor
0 Kudos

Hi Swabap,

Advantages:

- XSLT is a web standard

- It is easy to learn

- It is easy to maintain

Handicaps:

- no real variables

- runtime can be bad some cases

- not so much possibilities as Java or ABAP

- not created inside IB Repository

Regards,

Udo

former_member529475
Active Contributor
0 Kudos

HI Swabap

<u>XSLT Mapping</u>

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)

<u>Advantages of using XSLT mapping</u>

    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.

Cheers..

Vasu

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

Former Member
0 Kudos

Hi,

These are few advantages of 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.

To have more info check this wiki page, XSLT Mappinf section:

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

Regards,

Subhasha Ranjan

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>What are the advantages of XSLT mapping over Message Mapping

in general XSLT allows you to create non XML structures (like HTML, SOAP with envelope, even excel files)

and message mapping does not allow that

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

henrique_pinto
Active Contributor
0 Kudos

XSLT also handles CDATA tags better than plain MM.

Regards,

Henrique.

justin_santhanam
Active Contributor
0 Kudos

Hello,

Please refer the below thread.

Best regards,

raj.