XSLT Value Mapping Problem

Hello,
we want to use the value mapping table in ID with XSLT.
Here is my source:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Source xmlns:ns0="http://comsol-ag.com/xi/rfcxslt">
    <CustomerNumber>A</CustomerNumber>
</ns0:Source>
XSLT Mapping:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:trg="http://comsol-ag.com/xi/rfcxslt" xmlns:ns0="http://test/xi/tsts" xmlns:ValueMap="java:com.sap.aii.mapping.value.api.XIVMService">
    <xsl:template match="/">
        <trg:Target>
            <CustomerInfo>
                <xsl:variable name="sourceValue" select="ns0:Source/CustomerNumber"/>
                <ID>
                    <xsl:value-of select="$sourceValue"/>
                </ID>
                    <xsl:variable name="response" select="ValueMap:executeMapping('http://sap.com/XI/xi','SourceAgency','SourceScheme',string($sourceValue),'http://sap.com/XI/xi','TargetAgency','TargetSchema')"/>
                <Name>
                <xsl:value-of select="$response"/>
                </Name>
            </CustomerInfo>
        </trg:Target>
    </xsl:template>
</xsl:stylesheet>
Target:
  <?xml version="1.0" encoding="utf-8" ?>
<trg:Target xmlns:trg="http://comsol-ag.com/xi/rfcxslt">
<CustomerInfo>
  <ID>A</ID>
  <Name /> ???????????????????????????????????
  </CustomerInfo>
  </trg:Target>
But the receiving data is not converted to value table in ID:
Integration Directory Value Table :
http://www.image-load.eu/out.php/i26896_pic1.PNG
Please point out where i m going wrong.
Thanks

problem solved!

Similar Messages

  • Value Mapping Problem - Values not appearing in destination system

    hello everyone,
    Here's my scenario: XML > XI > IDOC
    I have a problem with the ValueMapping and FixedValue function in XI. When I test the message in the Integration Repository, I don't get any problems (the value is converted appropriately), but when I view the IDOC in SAP, the value that is supposed to be in the field is missing.
    When I check the payload in SXMB_MONI in XI, no conversion occurs. I have refreshed the caches, and everything seems to be fine. I don't know why the value mapping functions seem to have stopped working altogether. Will anyone be able to help me out with my problem?
    Thanks in advance!
    Glenn

    Hi Glenn Bumanlag,
            I think the values that you have given for source values (Agency and scheme)
    and Target values (Agency and scheme) may be mismatching so kindly chek that...even i got the same error in the past..........
    If you the this problem kindly change it accordingly and also refresh the cache once you that with this.........
    Kindly follow the below mentioned link and check if you have followed these steps.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    Thanks
    Sai     
    PS: kindly reward points if helpful

  • Fix Value Mapping Problem

    Hi All
    I am doing a fix value mapping for a perticular field.I am getting a value say Y001 from the client system which i convert it to Z001 in my system. I tested the XML in the message mapping test tab.It is giving proper result.But at the output file i am getting the same value of Y001 instead of Z001.Can anyone please provide any inputs on this.
    Thanks
    Amit

    HI,
    Please chek the imput values..
    Sure if you fix the value in Fix Value mapping then you will get the resukt value otherwise empty.
    Please see the below links
    value mapping - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards
    Chilla..

  • Value Mapping problems

    Hello Team,
    I'm trying to use the Value mapping functionality but is not working for me, all the transaccion failed because of invalid account code. Create the map rule but is not executed. Watching the B1iSN Graphical Design tool i see that i have an error on the Sender ObjectType it said "ValueMappingKeyTable B1.2004_JE does not exist on the B1iSN Repositiry" any idea???

    GARG23,
    I had a same issue.
    How did you manually create the B1.2004_JE file?
    Could you please show me step by step?
    Thansk
    Joanne
    Edited by: Joanne Lee on Mar 25, 2011 12:37 AM

  • XSLT Value Mapping

    Hello Experts,
    I have a XSLT senario where XSL map is calling a xml file for value look ups. Can someody help me implement the senarion in PI?
    - Rajan

    Thanks fo ryour reply Mike,
    I have an existing xslt map with the following structure -
    -->
    <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://interlog.dupont.com/transoval/xmlschema">
         <xsl:import href="../Common/ErrorHandling.xsl"/>
         <xsl:import href="DPC_ZSHPMNT5_46C_to_ShipmentRequest20_ReceiverLookup.xsl"/>
         <!-- bizrules file -->
         <xsl:param name="bizrules" select="document('DPC_ZSHPMNT5_bizrule_code_list.xml')/Bizrules"/>
         <!-- Error Handling parameters -->
    Here thsi "bizrules" parameter is actually lokking in to the 'DPC_ZSHPMNT5_bizrule_code_list.xml' file for the values to map.
    Can I leverage this XSLT map in the PI or do I need to write a new map with the java extentions you are specifying here?

  • Value mapping problem

    Hi
    I am following this scenraio
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    but I am polling bunch of records (multiline)
    Scenario is successfull but in output file does not contain any  record?
    It contains only the following lines
    <?xml version="1.0" encoding="UTF-8" ?>
      <ns0:MT_HRInfo xmlns:ns0="http://ValueMapping.com" />
    where I have to check for the problem ?
    Thanks
    manian

    Here it is
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping  -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
      <Trace level="1" type="T">Party normalization: sender</Trace>
      <Trace level="1" type="T">Sender scheme external = XIParty</Trace>
      <Trace level="1" type="T">Sender agency external = http://sap.com/xi/XI</Trace>
      <Trace level="1" type="T">Sender party external = P_Valmap</Trace>
      <Trace level="1" type="T">Sender party normalized = P_Valmap</Trace>
      <Trace level="1" type="T">Party normalization: receiver</Trace>
      <Trace level="1" type="T">Receiver scheme external =</Trace>
      <Trace level="1" type="T">Receiver agency external =</Trace>
      <Trace level="1" type="T">Receiver party external =</Trace>
      <Trace level="1" type="T">Receiver party normalized =</Trace>
      <Trace level="1" type="B" name="CL_XMS_HTTP_HANDLER-HANDLE_REQUEST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">XMB was called with URL /sap/xi/engine?type=entry</Trace>
      <Trace level="1" type="T">COMMIT is done by XMB !</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />
      <Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />
      <Trace level="1" type="T">****************************************************</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">XMB entry processing</Trace>
      <Trace level="1" type="T">system-ID = SXI</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2007-01-20T14:16:48Z CET</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">****************************************************</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Message-GUID = DD7DFCA0A89011DB804E001676478B29</Trace>
      <Trace level="1" type="T">PLNAME = CENTRAL</Trace>
      <Trace level="1" type="T">QOS = EO</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_ASYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline = CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Get definition of internal pipeline = SAP_CENTRAL</Trace>
      <Trace level="1" type="T">Queue name : XBTI0008</Trace>
      <Trace level="1" type="T">Generated prefixed queue name = XBTI0008</Trace>
      <Trace level="1" type="T">Schedule message in qRFC environment</Trace>
      <Trace level="1" type="T">Setup qRFC Scheduler OK!</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Going to persist message</Trace>
      <Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>
      <Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>
      <Trace level="1" type="T">- Exit CALL_PIPELINE_ASYNC</Trace>
      <Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />
      <Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>
      <Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>
      <Trace level="1" type="T">system-ID = SXI</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2007-01-20T14:16:49Z CET</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT" />
    - <!--  ************************************
      -->
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">number of receivers: 1</Trace>
      <Trace level="1" type="T">Single-receiver split case</Trace>
      <Trace level="1" type="T">Post-split internal queue name = XBTO1___0000</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Persisting single message for post-split handling</Trace>
      <Trace level="1" type="T" />
      <Trace level="1" type="T">Going to persist message + call qRFC now...</Trace>
      <Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>
      <Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>
      <Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />
      <Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>
      <Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>
      <Trace level="1" type="T">system-ID = SXI</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2007-01-20T14:16:49Z CET</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
      <Trace level="1" type="T">Start with pipeline element PLEL= 5EC3C53B4BB7B62DE10000000A1148F5</Trace>
      <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Interface Mapping http://ValueMapping.com IM_EmpInfo_To_HRInfo</Trace>
      <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_EMPInfo_To_HRInfo_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:MT_HRInfo/Record. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:291) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:231) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="T">Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_EMPInfo_To_HRInfo_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:MT_HRInfo/Record. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</Trace>
      <Trace level="1" type="T">com.sap.aii.ibrun.server.mapping.MappingRuntimeException: Runtime exception occurred during execution of application mapping program com/sap/xi/tf/_MM_EMPInfo_To_HRInfo_: com.sap.aii.utilxi.misc.api.BaseRuntimeException; RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:MT_HRInfo/Record. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:72) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:MT_HRInfo/Record. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:291) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:68) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:231) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:63) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy24.processFunction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      </SAP:Trace>

  • Lookup value mapping table through message mapping.

    Hello All,
    I am working on a graphical mapping (message mapping). When trying to map the source message to the target message, I need to find out it a particular <b>key</b> exists in the <b>value mapping table</b>. Depending on the result, I need to map different source fields to the target field.
    Is there any inbuilt function which will allow me to do a lookup on a value mapping table, or is it possible to lookup a value mapping table from a UDF?
    Please help!
    Warm Regards,
    Keerti

    Hi,
    Please see the below links for Value mapping ..
    Value mapping /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions
    Value mapping in XSLT /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    Value Mapping replication - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Also see
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards
    Pradeep N

  • Value mapping with some return values

    Hi Experts,
        I  am facing value mapping problem.
    My requirment was My source elemnet having 4 value mapping(Key and Values)  and also if not passing that 4 keys also it will  display same thing in my reciver.
        Can Anybody please suggest me how can i handle this situvation.
    (01 02
      02 03
    04  05
    06   08)
    this are the value mapping  .out of this if iam passing any like(00  it will goes to dn field).This is my requirment.Can u please let me know  how can i handle tthis.

    Hi,
    For you Requirement Please use  USE key option.
    In graphical mapping when you will select valuemapping function then you can see the
    "Behaviour if lookup fails " option
    Double click on the value mapping function to see this options.
    There 3 options for lookup fails:
    1)USE KEY
    2)throw Exception
    3)Use default value
    you can select use key for your requirement.
    If you pass 00 as input to value mapping and it unable to find any value in value mapping for 00.
    then it will pass 00 to the targhet without any conversion(in case of use key option)
    If you pass 01 then it wiill do value mapping and send 02 to target.

  • How to create Value Mapping scheme

    I want to create a new scheme and agency pair which can be listed in Scheme Selection dialog.
    Open ID --> Tools --> Value Mapping --> Click input helper for Scheme --> Display the Scheme Selection dialog.
    I want to know, how to add on scheme and acgency pair in this dialog.

    Hi,
    Check this thread:
    Value mapping problem
    This is how u do it:
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii Check the value mapping section.You have everything you need in that section.
    Regards,
    AKshay.
    reward points if find useful.
    Message was edited by:
            Akshay Jamgaonkar

  • Value mapping in xslt mapping

    Hi,
    I have 2 mapping program one is main .xsl program and other one is value mapping program .xsl .
    I have zipped both the program and imported into Imported archive in IR but while testing in interface mapping i am getting error.
    error:could not compile xslt stylsheet.
    Some of the interface having one .xsl program and value mapping is also defined in the main program itself,these interface i am able to execute successfully but unable to execute wherever there are 2 program (main prog + value mapping).
    It seems that value mapping is not loading / executing.
    Can anyone please guide me how to call value mapping using xslt mapping?
    Thanks,
    Subbu

    Hi Prateek,
    Thanks for the response.
    Yes i have 2 program and both needs to execute in one interface mapping.
    First program (main) is MappingMOAPS_SAVEMULTIPLE2013.xsl and second program i.e (value mapping) MO_vmf.xsl.
    From main program itself value mapping program is called.
    Please look below code for main & value mapping prog.
    In main prog this is the parameter (<xsl:import href="MO_vmf.xslt"/>) where value mapping prog name is mentioned.
    I have already zipped and imported but while testing in interface mapping it is giving error that "could not compile xslt stylsheet".
    Could you plaese tell how to check or make XSL to accommodate multiple mappings?
    Main mapping : MappingMOAPS_SAVEMULTIPLE2013.xsl --
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    This file was generated by Altova MapForce 2008sp1
    YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
    OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
    Refer to the Altova MapForce Documentation for further details.
    http://www.altova.com/mapforce
    -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" exclude-result-prefixes="vmf xs xsi xsl">
         <xsl:import href="MO_vmf.xslt"/>
         <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
         <xsl:template match="/PPR">
              <MOAPS_SAVEMULTIPLE201>
                   <IDOC>
                        <EDI_DC40>
                             <xsl:for-each select="SI_ID_IDOCS">
                                  <xsl:for-each select="ID_TABNAM">
                                       <TABNAM>
                                            <xsl:value-of select="."/>
                                       </TABNAM>
                                  </xsl:for-each>
                             </xsl:for-each>
                             <xsl:for-each select="SI_SP_SAP_PARTNER_INFO">
                                  <xsl:for-each select="SP_MANDT">
                                       <MANDT>
                                            <xsl:value-of select="."/>
                                       </MANDT>
                                  </xsl:for-each>
                             </xsl:for-each>
                             <xsl:for-each select="SI_ID_IDOCS">
                                  <xsl:for-each select="ID_DIRECT">
    Value mapping : MO_vmf.xsl:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    This file was generated by Altova MapForce 2008sp1
    YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
    OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
    Refer to the Altova MapForce Documentation for further details.
    http://www.altova.com/mapforce
    -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs xsi xsl">
         <xsl:template name="vmf:inputtoresult">
              <xsl:param name="input"/>
              <xsl:choose>
                   <xsl:when test="$input='01'">
                        <xsl:value-of select="'PM1C'"/>
                   </xsl:when>
                   <xsl:when test="$input='02'">
                        <xsl:value-of select="'PM2C'"/>
                   </xsl:when>
                   <xsl:when test="$input='03'">
                        <xsl:value-of select="'EXT3'"/>
                   </xsl:when>
    Regards,
    Subbu

  • Value Mapping using XSLT mapping

    Hello All,
    We have change requirement of storing some xsl Key-Value in SAP PI and on run time existing XSLT mapping need to look that values and in target structure map the value as per source key value.
    For this requirement i am going with value mapping that will call from  XSLT mapping and created a test scenario before actual changes in XSLT mapping
    I have created table in ID.
    But unfortunately  i am getting below error :
    Transformer Configuration Exception occurred when loading XSLT Test_Mapping.xsl; details: Could not load stylesheet.com.sap.engine.lib.xsl.xpath.XPathException: Prefix not mapped: ValueMap -> java.lang.Exception: XMLParser: Prefix 'ValueMap' is not mapped to a namespace
    Below is my XSLT mapping code :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
       <xsl:if test="function-available('ValueMap:getValueMapping')">
         <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'S','S1', 'T', 'T1', $Dept_ID, $inputparam,'TRUE')"/>
       </xsl:if>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    Thanks,
    Anant

    Thanks again.
    But after adding the namespace  I am still getting error.
    Can you please extend your help so that i can proceed further.
    Please check below code that i tried to execute :
    1st :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ValueMap="com.sap.aii.mapping.value.api.XIVMService"
    xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
       <xsl:if test="function-available('ValueMap:getValueMapping')">
         <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'S','S1', 'T', 'T1', $Dept_ID, $inputparam,'TRUE')"/>
       </xsl:if>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    2nd :
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ValueMap="com.sap.aii.mapping.value.api.XIVMService"
    xmlns:ns0="urn:kesko.fi.XSLTTest" xmlns:ns1="urn:kesko.fi.XSLTTest">
    <xsl:template match="/">
      <xsl:param name="Dept_ID">
      <xsl:value-of select="ns0:MT_EmpDet_S/ID"/>
      </xsl:param>
      <xsl:param name="inputparam"/>
      <ns1:MT_EDet_R>
      <Name>
       <xsl:value-of select="ns0:MT_EmpDet_S/Name"/>
      </Name>
      <Department>
         <xsl:value-of select="ValueMap:executeMapping('S','S1',$Dept_ID,'T','T1')"/>
      </Department>
      <PersonalInfo>
        <xsl:value-of select="concat(ns0:MT_EmpDet_S/Add, ns0:MT_EmpDet_S/SAL)"/>
      </PersonalInfo>
      </ns1:MT_EDet_R>
      </xsl:template>
    </xsl:stylesheet>
    for above both the cases messages are failing in MONI.
    Thanks in advance.
    Anant

  • Value Mapping in XSLT

    Hello,
    I am implementing value mapping in XSLT using template
    I call following template to retrieve the value from ID....
    <xsl:template name="NonMerchandiseSaleValueMapping">
    <xsl:param name="GMNonMerchandiseType"/>
    <xsl:value-of select="vm:executeMapping( 'GMNonMerchandiseType', 'GMNonMerchandiseTypeSchema', $GMNonMerchandiseType, 'IXRetailPOSLogLineItemType', 'IXRetailPOSLogLineItemTypeSchema')"/>
    </xsl:template>
    It works fine for 1 entry that was added long back. I added few new entries in ID value mapping table. All of them does not work. Is there any step we need to do after entering new data in value mapping table. I can see the values in cache monitoring also.
    regards
    Grewal

    Hey
    In Both IR and ID go to Environment->Cache Notifications
    Do you see any error(red icon) for cache update,it must be all green to refresh cache.If there are any red color icons,click that and manually do a cache refresh(by clicking the small cache refresh icon).
    also refresh Cache in RWB.
    If all the above does not work,you can re-import the XSLT mapping in IR and see if it works.
    Thanks
    Aamir

  • Problem in value mapping in POSDM configuration!

    Hi Experts,
                              I am sending data from POS to POSDM. I hav used standard name spaces like GM store Connectivity, BI and Store Connectivity 2.0. I hav also done settings in ID . Made a File adapter and RFC adapter and RD, ID, SA and RA settings.
    Data from Sourse: GMTLogTransaction_out is going to the RFC :/POSDW/CREATE_TRANSACTIONS_EXT  .
    So I hope users can Understand I hav used standard mapping.
    Now the issue is in the source structure a perticular field called TENDER ID is mapped with Target Field :Tender Code.
    But there is a value mapping in between.
    The name of the source Agency is IXREtailPOSLogRetailTransactionTenderID  and schema is IXRetailPOSLogRetailTransactionTenderIDSchema  and 
    The name of the Target  Agency is POSDWTENDERTYPECODE  and schema is POSDWTENDERTYPECODESCHEMA.
        And the Value mapping Context is : http://sap.com/xi/XI.
    The problem is I can see this , but I cant assign any value as it is in disabled mode in Messege mapping.
    Again In the ID I cannot see this Value mapping , which I expected to see and maniputale.
       experts, please tell me hw to I use this  manipulate / incert some values so taht the input when 01 becomes 3101 at output.
    If any doubts/ querioes, pls revert back.Please note , I am using all standard components in IR.
    Regards,
    Arnab .

    Hi Arnab / Abhijith,
    I am also going to work on the similar kind of requirement which u guys  have worked.
    Pos( third Party)->PI>POSDM-->IS-Retail ( Inbound)
    IS-Retail-> PI->POS( third Party) ( Outbound)
    Appreciate if you could help me with some clarifications..
    1) What transactions we can update to POSDM..?
    2) Does we need to POST all POS transactions first to POS DM and then IS-Retail ( Inbound).?
    If that is the case, once transactions posted in POSDM, does we need to do any settings to post idocs automatically to Retail system .. (OR) do we need to develop interface again from POSDM>PI>IS-Retail.( please clarify).
    Please suggest .. is it feasable to post only Non aggregated data directly to POSDM and Aggregated Sales ,FI , GRNs to directly to ECC.( Based on client requirement ).
    Awaiting for your suggestions.. Please suggest the best appraoch
    Thanks & Regards,
    Suman

  • How can i access value mapping table using xslt mapping

    Hi All,
    I have maintained value mapping table in integration directory.I want to access the data from the value mapping table in XSLT mapping using java function.PLease suggest me to do this.
    Thanks
    Pullarao.

    Value mapping that thread should solve your query !!!

  • 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 ?

    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

Maybe you are looking for

  • Have iPhone 5 set to back up to iCloud but need both iTunes and iCloud done...

    after going from 4s to iphone 5 and dragging and dropping like 15 playlists and about 4300 plus songs there must be a better way. I backup complete itunes folder, exporting all playlists as xml files i am learning as i went from 3 to 3GS to 4 to 4s a

  • How do you use Logical Expressions in the RTF?

    How do you use logical expressions such as "and", "or" when you want to do conditional printing of XML data in the RTF? For example: if (conditionA and conditionB) then... Regards, Smita

  • Share Address Book Over Network

    I have 8 Imacs on my network. I would like to link all address books to one main one on the network. Is this possible?

  • Info Record mass price changes

    rather than someone entering new validity periods and prices for several materials one by one is there a transaction i'm missing?  i expected it to be in memassin.  either for revisions or creations of new periods.  maybe eCATT is an alternative?  cu

  • Master data loading delta failed

    Dear All, For master data loading, last delta got failed. we tried the reason for the failure but we couldn't find it. we want to know how to do last request repeat delta. Good day. Thanks and regards Arun S