Skip to Content
author's profile photo Former Member
Former Member

Accessing ID Value Mapping table in XSLT

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 08:29 PM

    I wrote a blog for you. 😊

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

    Thanks

    Inder

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 04:44 PM

    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

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.