cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping

Former Member
0 Kudos

still now i am using Graphical mapping, but now i need to do one interface with

XSLT mapping please help me out in this i dont know how to do it please help me out urgent

thanking you

sridhar

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

<b>

XSLT Mapping</b>

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)

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

    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.

<b>

Disadvantages of using XSLT mapping</b>

    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.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/xmlXSLTwith+ABAP&

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/mapping+techniques&;

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/xsltsampletoencode%2CdecodeXMLfile&

<i><b>

source: sdn WIKI</b></i>

Best Regards,

Srikanth

Reward the useful answers and you will get

ONEPOINTyourself

<b></b>

Former Member
0 Kudos

Hi;

Try this out

XSLT mapping

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

Mudit

Former Member
0 Kudos
Former Member
0 Kudos

Hi

Here is all you want.

XSLT mapping is just a mapping similar to Message mapping available in the SAP XI, the xml mapped file is said to be XSLT mapping, A tool available from Stylus studio . it will be graphical one and very easy one.assume if u want to add zero in front of the

field we have to add that many zeros in that field thats it.. similar kind of lot of functions ready made available.

this will make the performance of the system bit slow.. if we use XSLT mapping and BPM then the interface is in Task ( will have performance impact a lot )

Advantage is we can mappe as we wish and import the file that it.

see the below links

XSLT Mapping

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt

/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping

XSLT Mapping with java enhancement

/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners

XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20

Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -

/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping

xpath functions in xslt mapping -/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffb...

Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]

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

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

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

So go with XMLSpy or Stylus Studio editors for the XSLT Mapping.

You can get XSLT Tutorial from the Stylus Stutdio site. Refer

http://www.stylusstudio.com/xml_product_index.html

Source: Another Thread in SDN

regards

krishna

Shabarish_Nair
Active Contributor
0 Kudos

http://www.w3schools.com/xsl/default.asp - that would be a good start.

Former Member
0 Kudos

anything regarding mapping please help in this

thanking you