cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing ID Value Mapping table in XSLT

Former Member
0 Kudos

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 ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I wrote a blog for you.

/people/kulwinder.grewal/blog/2009/08/21/xslt-runtime-value-mapping-from-integration-directory-using-xivmserviceclass

Thanks

Inder

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Gulwinder,

Thanks a lot for your inputs. But as mentioned we cannot access the blog which u wrote for us.

Former Member
0 Kudos

Hi Rajesh,

It is being reviewed by SAP. That is the reason why you are unable to see it. I hope it will be approved soon. We can just wait as of now.

Regards

Inder

Former Member
0 Kudos

Please close the thread as its solved now.

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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