on 08-12-2009 5:32 PM
Hi Experts,
In the XSLT mapping,I would like to access my value mapping table which i defined in ID .The purpose of ID value mapping here is, the table entries will be changing in future and i don want to use fix values, XML table which is defined in runtime.
I have gone through the blog
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
which explians design value mapping table in XSLT.
Is there any way to access Configuration Value Mapping table in XSLT? If yes, can you explain how should i achieve it ?
I wrote a blog for you.
/people/kulwinder.grewal/blog/2009/08/21/xslt-runtime-value-mapping-from-integration-directory-using-xivmserviceclass
Thanks
Inder
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kulwinder,
> I wrote a blog for you.
I liked your idea. Its a great idea and can be referrenced by others also. Unfortunately I am unable to see the weblog. Probably you would have just submitted to SAP. I will recheck once again tomorrow.
Thats really a good job and keep up the good work kulwinder.
Regards,
---Satish
Hi All,
Fianlly i have implemented this solution mentioned byGulwinder. It worked fine.
One point here is, This XIVM class is avialble only from SPS15.
Please refer the following link for further details..
http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/value/api/XIVMService.html
@ Gulwinder,it would be better if you mention this point in your blog.
Points have been rewarded foe your excellent blog
Thanks
Rajesh
Hi,
you can use the xivmService to call ID val map tables.
Use tha java function executeMapping, Its a standard SAP api.
Declare the Service in XSLT at start
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vm="com.sap.aii.mapping.value.api.XIVMService" version="1.0">
Call the val mapping table using below template wherever required.
<xsl:template name="ValueMapping">
<xsl:param name="SenderParam"/>
<xsl:value-of select="vm:executeMapping( 'SenderType', 'SenderTypeSchema', $SenderParam, 'receiverType', ReceiverTypeSchema')"/>
</xsl:template>
Call template like :
<xsl:call-template name="ValueMapping">
<xsl:with-param name="SenderParam">
try it and let me know if you have any doubt.
regards
Inder
Edited by: Kulwinder Grewal on Aug 12, 2009 11:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.