cancel
Showing results for 
Search instead for 
Did you mean: 

xslt mappings

Former Member
0 Kudos

Hi all,

can any one send the blogs of XSLT mapping.

Thanks in advance

Naveen

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Naveen

Steps for XSLT Mapping

<b>>Create Data Type as> Sender></b>

<?xml version="1.0" encoding="UTF-8"?>

<ns0:SENDER_SABAPEXT_MTO xmlns:ns0="http://www.xenext.com/xsltmapping">

<PERSON>

<FirstName>Ajay</FirstName>

<LastName>Kumar</LastName>

<Gender>Yadav</Gender>

<ADDRESS>

<Flat>23</Flat>

<Block>67</Block>

<Society>Space</Society>

<Area>Time</Area>

<City>Salt Lake</City>

<State>WB</State>

<Country>India</Country>

</ADDRESS>

</PERSON>

</ns0:SENDER_SABAPEXT_MTO>

<b>>Data Type as Receiver> Receiver></b>

<?xml version="1.0" encoding="utf-8"?>

<PERSON>

<Title>Yadav</Title>

<Name>Ajay Kumar</Name>

<Address>23 67</Address>

<Society>Space</Society>

<City>Salt Lake</City>

</PERSON>

<b>>create message type>interface type</b>

<b>>Create a xsl file e.g abc.xsl</b>

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="PERSON">

<PERSON>

<Title><xsl:value-of select="Gender" /></Title>

<Name><xsl:value-of select="concat(FirstName,' ',LastName)" /></Name>

<Address><xsl:value-of select="concat(ADDRESS/Flat,' ',ADDRESS/Block)" /></Address>

<Society><xsl:value-of select="ADDRESS/Society"/></Society>

<City><xsl:value-of select="ADDRESS/City"/></City>

</PERSON>

</xsl:template>

</xsl:stylesheet>

<b>>create zip file of abc.xsl as abc.zip</b>

<b>>go imported archive> create a file> import that abc.zip file</b>

<b>>go to>Interface mapping>create interface mapping by selecting sender and</b> <b>receiver interface</b>

<b>>in the same window down the line go to Mapping Program section</b>

><b>in drop down select type = XSL then select abc.xsl</b>

<b>> now test the program</b>

<b>***Reward points if it helps u****</b>

Former Member
0 Kudos

Hi naveen

Check this /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Naveen,

Look in to these Blogs

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

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

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

https://weblogs.sdn.sap.com/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]

/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i

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

**Reward if helpfull**

former_member335553
Active Contributor
0 Kudos