XSLT call Value Mapping

Hi Folks,
please, i need a step by step Solution for calling Value Mapping with XSLT Mapping Program.
best regards Michael

XSLT call Value Mapping
  Maintain the value mapping using the option available in the Integration directory. The following values should be entered for maintaining the value mapping. In the XSLT Mapping use the Java function “Valuemappingaccessor”  to read the values from the table.
Class ValueMappingAccessor
          This class is used read the Value mapping stored in the Integration server (Java Cache). Class has a method getValueMapping. The Class is imported into the SWC Eyyy_xxxx under namespace “http://xxx.ash.com/COMMON/Common”
Method public static String getValueMapping(String srcContext, String dstContext, String srcAgency, String srcSchema, String dstAgency, String dstSchema, String key, Map inputParam, String throwException)
Paramters     Description
srcContext     Source context in the Integration server (Java Cache) under which, the value is stored.
For example, if the source values are stored using standard Value mapping table in the ID, then use source context as http://sap.com/xi/XI
dstContext     Destination context in the Integration server (Java Cache) under which the value is stored
For example, if the source values are stored using standard Value mapping table in the ID, then Target context as http://sap.com/xi/XI
srcAgency     Source Agency,  a unique identifying value,  value to be used is not yet decided.
srcSchema     Source Schema, For example this can be source field name
key     Source field value, that is required to determine the target, In the figure 1 shown below, We need to send ‘IN’ to get ‘India’
dstAgency     Destination Agency, a unique identifying value, value to be used is not yet decided
dstSchema     Destination Schema, For example this can be target field name
inputParam     Mapping transformation constants, to write the trace into the header of the message
throwException     An indicator to throw an exception, if the value is not found in the cache. If the parameter is set to “true” or “TRUE”,   an exception is raised & message fails in the mapping step of the Pipe line.
Returns the value, that is stored in the Value mapping context for the given parameters
If the value mapping is maintained using Integration Directory value mapping, then we need to call the value mapping function as follows
If  it has to be called using XSLT Mapping., then the sample code shows how to use the java class the java class “ValueMappingAccessor”.
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.ashok.com/idoctofile/employee" xmlns:ValueMap="java:com.xxx.yyy.ValueMappingAccessor">
    <xsl:param name="CountryCode">
        <xsl:value-of select="ns0:MT_EMPDETAILS/Country"/>
    </xsl:param>
    <xsl:param name="inputparam"/>
    <xsl:template match="/">
        <ns0:MT_EMPADDRESS xmlns:ns0="http://www.ashok.com/idoctofile/employee">
            <EmployeeNo>
                <xsl:value-of select="ns0:MT_EMPDETAILS/EmployeeNo"/>
            </EmployeeNo>
            <FirstName>
                <xsl:value-of select="ns0:MT_EMPDETAILS/FirstName"/>
            </FirstName>
            <LastName>
                <xsl:value-of select="ns0:MT_EMPDETAILS/LastName"/>
            </LastName>
            <Address1>
                <xsl:value-of select="ns0:MT_EMPDETAILS/AddressLine1"/>
            </Address1>
            <Address2>
                <xsl:value-of select="ns0:MT_EMPDETAILS/AddressLine2"/>
            </Address2>
            <City>
                <xsl:value-of select="ns0:MT_EMPDETAILS/City"/>
            </City>
            <State>
                <xsl:value-of select="ns0:MT_EMPDETAILS/State"/>
            </State>
            <Country>
                <xsl:if test="function-available('ValueMap:getValueMapping')">
                    <xsl:value-of select="ValueMap:getValueMapping('http://sap.com/XI/xi', 'http://sap.com/XI/xi', 'Canonical','Country', 'KCRS', 'Country', $CountryCode, $inputparam, 'TRUE')"/>
                </xsl:if>
            </Country>
            <ZipCode>
                <xsl:value-of select="ns0:MT_EMPDETAILS/Zipcode"/>
            </ZipCode>
        </ns0:MT_EMPADDRESS>
    </xsl:template>
</xsl:stylesheet>
If the values are maintained using Value mapping replication technique
Edited by: Ashok Reddy Thatigutla on Feb 15, 2008 9:43 AM
Edited by: Ashok Reddy Thatigutla on Feb 15, 2008 9:44 AM
Edited by: Ashok Reddy Thatigutla on Feb 15, 2008 10:06 AM

Similar Messages

  • 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

  • How to identify there is no translation value in Value Mapping

    Hi ,
      I am using value mapping to translate one of the fields of data. Whenever the input has a translation value, the output is the translated value. But when there is no translation value for the given input in the runtime cache, the output is the input itself. But my requirement is to either error out or send a blank value as output when it doesnt find a corresponding translation value for the given input.
    Example:(A,1)(B,2)(C,3) are the values present in the value mapping runtime cache. When the message looks for value mapping for A , as expected it gives an output of 1. Similarly for B and C.
    But if the input is "Z", the output is "Z" since there is no lookpu value fo r"Z",which is an anamoly.
    Please let me know if you had a prioir experience on this issue and a solution to this.
    Thanks,
    Valli.

    U can call value mapping functionality in UDF. Write a UDF with VM parameters.... Validate in the Source Value( U can also raise exception in the UDF).
    Here is the link...
    [http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/value/api/XIVMService.html|http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/value/api/XIVMService.html]

  • Reg:Value Mapping Replacment

    hi friends
    i need to design a scenario using value mapping .i have nearly 600 records to be replaced but i observed in the configuration part that we have to enter all the values manually which is not prefferable for 600 records. so is there any alternative to place the values like copy paste from excel sheet.
    regards
    suman

    Hi,
    >so is there any alternative to place the values like copy paste from excel sheet.
    there is something called value mapping mass replication
    it's an interface for value mapping table
    and you can use it in your own abap report that will
    process excel files
    but remember you will not see those values in ID
    you can only view them from RWB but they will work
    in standard value mappings
    but I'd suggest doing a normal lookup and not using value mapping tables at all
    Regards,
    Michal Krawczyk
    https://mypigenie.com XI/PI FAQ

  • 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

  • How to call Java Map in XSLT map

    Hello,
    Can anyone tell me how to call Java Map in XSLT map.
    Thanks and Regards
    Hemant

    Hello, Vijay,
    Can you help in understanding how can we pass whole payload in the parameter in XSLT map.....
    for eg
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:javamap="java:DATEandTIME.Date_Time">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:param name="inputparam" />
         <xsl:template match="/">
         <MT_TARGET>
              <date>
                   <xsl:if test="function-available('javamap:getDateValue')">
                       <xsl:value-of select="javamap:getDateValue($inputparam)"/>                    </xsl:if>
              </date>
              <time>
              <xsl:if test="function-available('javamap:getTimeValue')">
                       <xsl:value-of select="javamap:getTimeValue($inputparam)"/>                       <xsl:value-of select="$test"/>
              </xsl:if>
              </time>
              <project>
                        <xsl:value-of select= "//project"/>
              </project>
         </MT_TARGET>
         </xsl:template>
    </xsl:stylesheet>
    here we are passing static value in parameter.....
    Java code is:
                private static AbstractTrace trace = null;
                public static String getDateValue(Map inputparam)
                        trace = (AbstractTrace)inputparam.get(
                                 StreamTransformationConstants.MAPPING_TRACE );
                        Date now1 = new Date();
                        SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMd");
                        String dateString = formatter.format(now1);
                        return dateString;
                public static String getTimeValue(Map inputparam)
                            trace = (AbstractTrace)inputparam.get(
                                    StreamTransformationConstants.MAPPING_TRACE );
                            Date now1 = new Date();
                            SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");
                            String dateString1 = formatter.format(now1);
                            return dateString1;
    I want to pass whole payload so how can i pass it.

  • 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

  • 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

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

  • Is it possible to call XSLT from Java Mapping Class?

    Hi,
    does someone have experience with this? Or any ideas?
    And, if yes, how can be this XSLT called? Is it necessary to specify special path? Or it is the XSLT file placed in the same directory?
    Thanx in advance, Peter
    Message was edited by: Peter Jarsunek

    Hi SUdhir,
    Thanx 4 your answer. I have seen this link before, but there is only Java->Java or XSLT->Java calling.. I need Java->XSLT.. When I create Java mapping, I want to use stored XSLT stylesheet to convert the message. Because, my problem is,that my primary message contains characters which I want to be changed. For this reason I need java class - to replace the characters. And then I want to do transformation with the XSLT stylesheet. Can you post some example?
    Thanx, Peter

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

  • Calling AIF for Value Mapping from standard ES

    Hello All,
    Is there any option of using SAP AIF for standard ES (for adding value mapping). We have requirement where value mapping needs to be done for standard ES. I was thinking of making explicit call to AIF using following method :
    * Call method to AIF
         /aif/cl_enabler_proxy=>process_message(
         exporting  is_input = input
          iv_exception_classname = ' ' ).
    However this method doesn't have any exporting parameter to get the changed data back.
    Is there any workaround ?
    Thanks & Regards,
    Dijesh Tanna

    Hello Gita,
    Both these notes talks about monitoring the existing interfaces / ES using SAP AIF. However, doesn't talk about enhancing existing ES.
    Secondly , I had look at function module /AIF/FILE_PROCESS_DATA. However, question is from where we should call this. I was aiming the EXECUTE_ASYNCHRONOUS method of ES and calling this FM from implicit enhancement spot. However, the structure INPUT inside EXECUTE_ASYNCHRONOUS is not changeable. So even if AIF performs value mapping , I can't pass that modified data to standard implementation of SAP ES.
    Have a look at below code :
    You can see that I passed INPUT to my custom function module which calls AIF internally and performs value mapping , checks etc.. and return the modified data in OUTPUT but SAP's standard code is still using INPUT in subsequent code. I can't assign OUTPUT to INPUT as it is import parameter not changeable.
    Thanks & Regards,
    Dijesh Tanna

  • Calling graphical mapping from XSLT mapping Prog

    hi guys;
    can anyone tell me that weather we can call graphical mapping  from XSLT mapping prog.If this is possible then can anyone guide me through the steps

    Mudit
    Can you go through the links which might be useful to you:
    Use of XSLT mapping?
    Re: Java Mapping  and Graphical Mapping
    ---Mohan

  • Accessing Party identifiers using value mapping

    Hello
    Does anyone know if it is possible to access identifiers defined under a party using a value mapping (in my case from an xslt mapping calling a java function, but it doesn't really matter I guess).
    For party ADVDENV_US I have the following identifiers:
    http://sap.com/xi/XI    XIParty    ADVDENV_US
    INTERNAL                 GLN       1806367142
    At runtime I have value 1806367142 and I would like to retreive the value ADVDENV_US in order to perform dynamic receiver determination... would that work?
    Thanks
    Greg
    Edited by: Grégory VIAL on May 19, 2008 8:06 AM

    Grégory,
    If you wish to use identifier during the java mapping then check in below mention value mapping java docs.
    https://help.sap.com/javadocs/NW04S/current/pi/index.html
    Gaurav Jain

  • Fixed value mapping

    Any one there to explain me what is fixed value mapping Coz when i used LOOK UPS , they told me you can used fixed value mapping instead of it , as i was having only to values , please send me a detail explanation abt it thanking you
    sridhar

    There is a lot of difference between fixed value mapping and Lookup:
    Fixed value mapping is used when you need to populate the some differnt target value based on some inpur value.
    Take example
    I have used fixed value M:
    My input is ABC
    Now for this input I wanted to poupulate some different values.
    Suppose when A comes in File it should map the target value to America.
    When B come it should map to Belgium
    and C -> California
    Now come to Looup:
    What is Lookup and why we need:
    Within an XI mapping it is a common requirement to be able to perform data lookups on-the-fly. In particular, there may be a need to look up some data that is maintained in an R/3 application.
    In the error handling topic we have seen the different validations which need to be performed on file. This can be done through Lookup.
    Some use cases:
    • Look up material number from table MARA.
    • Look up cost center budget.
    • Look up employee information.
    • Look up unit-of-measure (UOM) information from table t006a.
    • Lookup for raising an alert.
    The purpose of the lookup may be:
    • To perform application-level validation of the data, before sending it to the backend.
    • To populate fields of the XML document with some additional data found in the backend application.
    This is a form of value transformation.
    The "value mappings" offered by XI are not adequate in this case, since the data would have to be manually entered in the Integration Directory.
    There are two ways in which we can do lookup:
    • Call lookup method from GUI mapping.
    • Call lookup method from XSLT mapping.
    I think u got ur answer
    Thnx
    Chirag

Maybe you are looking for