cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Coding in XI

Former Member
0 Kudos

Hi Experts,

developing the new scenario for XSLT.

Here i need to write the condition in XSLT. Pls let me know if you have any idea on this....

Condition : i<10 and i>1

Note : Here i need to know inplace and postion..like how to write the code in XSLT.

Reward points for helpful answers...

Regards,

Yeswanth.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi

Condition : num1<10 and num1>1


<xsl:if test="Test001/num1 &lt; number(10) and Test001/num1 &gt; number(1)">
<test/>
</xsl:if>

Condition : num1<num2 and num1>num3

 
<xsl:if test="Test001/num1 &lt; Test001/num2 and Test001/num1 &gt; Test001/num3">
<test/>
</xsl:if>

Try with this sample code

Regards

Viswanadh Vadde

vijay_b4
Active Contributor
0 Kudos

Hi Yeswanthraj,

For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..

See below examples..

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

http://www.troobloo.com/tech/xslt.toc.shtml

http://www.w3schools.com/xsl/

http://www.w3.org/TR/xslt

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

https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/gen...

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

Reward points if helpful.

Regards

Vani.

Former Member
0 Kudos

Hi,

Follow this links it should be helpful to you

http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm

/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi

http://www.saptechnical.com/Tutorials/XI/XSLT/page1.htm

If suppose you use Altova Map Force tool then it will automatically generate the XSLT code. You done mapping like a graphical then internally it generates the code.

former_member556603
Active Contributor
0 Kudos

Raj,

If we want to wotk with XSLT mapping means we can use Altova XML Spy for the same.

There u can make the .xsl extension file. and Zip that.

After that come to IR and Imprt that Zip file into Import Archives.

Then no need of Mapping development in IR separately.

Steps required for developing XSLT Mapping :

http://www.saptechnical.com/Tutorials/XI/XSLT/page1.htm

Thanks,

Satya Kumar

Reward if it is useful..

pradeep_nellore
Participant
0 Kudos

Hi,

Check below links.

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

/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi

Thanks

--Pradeep

Reward points if helpful.

former_member556603
Active Contributor
0 Kudos