How to perform fixed value mapping in XSLT?

Hi All,
Kindly guide me to do a XSLT mapping for fixed values (done in graphical mapping)
eg: if  Band         Role
            A             JSE
            B               SE
  and so on.
Kindly help me out to implement the above logic using xslt.
Thanks
Deepika

Hi,
Please find the links below.
xpath functions in xslt mapping
Design time Value-mappings in XSLT
File to Multiple IDocs (XSLT Mapping)
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
Regards,
Phani

Similar Messages

  • 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

  • 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

  • Table lookup instead of fixed value mapping

    Hi Folks,
    My current scenario is that I have used fixed value mapping to map a single target field.  These details are actually maintained in the TP_Code table in R3 (a sample table).
    TradingPartner:SAP:Short Text
    PA:PA:Package
    PL:PAL:Pallet
    The table contains 20 entries.
    I am thinking that fixed value mapping is not a good option since there might have future changes in the TP_Code table.
    Is rfc lookup a good option?  But I am not sure which rfc to use and if there is any udf availble to be used in parsing the xml payload.
    Please advise.
    Thanks a ton!

    Thanks so much for the links!
    I managed to use and run the RFC lookup to an R3 table using JCo.  However, I am not getting the right result.
    I am getting the result in this format -> 800,PA,PAC,Package
    The correct output is PAC which is the third node.  Could this only be achieved by using java tokenizer?
    The code that I have used is as follows:
    Import com.sap.mw.jco.*;
    //write your code here
    String DBTABLE = a;
    String WHERE_CLAUSE = b" = ""'"c"'" ;
    String sapClient = "xxx";
    String hostName = "nnnxxx";
    String systemNumber = "xx";
    String userName = "nnnnn";
    String password = "******";
    String language = "EN";
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
                   sapClient,
                   userName,
                   password,
                   language,
                   hostName,
                   systemNumber );
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    // Create function
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
    function = ft.getFunction();
    // Obtain parameter list for function
    JCO.ParameterList input = function.getImportParameterList();
    // Pass function parameters
    input.setValue( DBTABLE, "QUERY_TABLE");
    input.setValue( "," , "DELIMITER");
    //Fill the where clause of the table
    JCO.ParameterList tabInput = function.getTableParameterList();
    JCO.Table inputTable = tabInput.getTable("OPTIONS");
    inputTable.appendRow();
    inputTable.setValue(WHERE_CLAUSE,"TEXT");
    mConnection.execute( function );
    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
    String resultSet = valueSet.getString("WA");
    mConnection.disconnect();
    return resultSet;

  • 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

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

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

  • 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 set fixed value in doDML

    Hi,
    My application is ADFBC.
    i am getting fixed value in backing_bean.this value is not coming form VO.how to set this value in doDML.because i want to save this fixed value(this value changing in backing_bean from UIpage) into database.
    actually i am using fixed list box values(these are not from VO) in UIPage and after submitting i am getting this vaue in backing_bean and some updatable table is displaying in UIpage.after filling some values in the updatable table and i am pressing commit button then i have to set this value into one table in databse.
    all updated values are saving because i am using ADF table.now i have to save this list value also in one of the column in this table.
    How to set this value into doDML?
    please help me.
    Thanks,

    Have you thought of creating a "transient" attribute in your EO or VO, that stores the fixed list box value? Then in the doDML method you could grab this attribute's value and update the other EO attribute you're interested in.
    Alternatively in the transient attributes setter in the EO, you could write the code to update the other EO attribute.
    Hope this helps.
    Regards,
    CM.

  • XI Fixed Value Mapping - Mass function?

    Is there a quick way to upload 350 fixed value to value mappings in XI 7.0 (or 3.0)??
    Short of pasting in one entry at a time!
    Is SAP going to develop a more user friendly alternative to this painstaking task?

    > Hi,
    >
    > >>>>Is there a quick way to upload 350 fixed value to
    > value mappings in XI 7.0 (or 3.0)??
    > Short of pasting in one entry at a time!
    >
    > if you talk about fixed values (in message mapping)
    > then
    > you need to go one by one I'm affraid
    >
    >
    > >>>>Is SAP going to develop a more user friendly
    > alternative to this painstaking task?
    >
    > who knows... maybe in next relase
    >
    It is fixed values in mapping!
    I was afraid of that...  I had been putting off the inevitable!
    Is there anyway we can put forward a request (for change) to SAP to change this in a later release??
    This is not the first time I have had to this, and I am sure, it won't be the last, or that I am the only person who has had to do this!

  • How to show fixed values instead of field values in ALV cell.

    Hi colleagues,
    I have a ALV object of type CL_GUI_ALV_GRID.
    I have associted a table with it which has a field called refresh type which is of type char1.
    My program works fine.
    But the problem is,
    The refresh_type field has fixed values in its value range.
    On display of ALV i want to show the associated fixed value instead of actual value in table content.
    I donno the way to do it.
    Please help me.
    -Trupti

    Another way to do this would be to define a conversion exit function for use in the report.
    You can copy a SAP-provided function group like ALFA as a template, but you may need untyped importing/exporting parameters. Name the new functions as CONVERSION_EXIT_Zxxx_OUTPUT and CONVERSION_EXIT_Zxxx_INPUT where Zxxx is some string you choose.
    In this case the input to the ...OUTPUT function will be the code value from the database and the output value will be the corresponding text. So the code of the function CONVERSION_EXIT_Zxxx_OUTPUT will do the conversion suggested in steps 2 & 3 of Marcin's response above.
    Here is an example based on the SFLIGHT model to enhance example report BCALV_GRID_DEMO.
    First the conversion function:  (I used 'zalv' as my identifying string for the conversion.)
    function conversion_exit_zalv_output.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(INPUT)
    *"  EXPORTING
    *"     VALUE(OUTPUT)
      field-symbols:
        <output> type c,
        <carrid> type c.
      assign input  to <carrid> casting.
      assign output to <output> casting.
      select single carrname from  scarr into <output>  " convert code to text
             where  carrid  = <carrid>.
    endfunction.
    In a copy of program BCALV_GRID_DEMO, make changes in the module pbo.
    module pbo output.
      set pf-status 'MAIN100'.
      if g_custom_container is initial.
        create object g_custom_container
          exporting
            container_name = g_container.
        create object grid1
          exporting
            i_parent = g_custom_container.
    * " changes start here
        data: gs_fcat type lvc_s_fcat,
              gt_fcat type lvc_t_fcat.
        tables: dd03l.
        select * from dd03l where tabname = 'SFLIGHT'. " fill field catalog
          if dd03l-fieldname = 'CARRID'.
            gs_fcat-inttype = dd03l-inttype.
            gs_fcat-outputlen = 20.
            gs_fcat-coltext = 'Carrier'.
            gs_fcat-seltext = 'Carrier'.
            gs_fcat-edit_mask = '==ZALV'. " == with the string you used to name the functions
          else.
            clear gs_fcat.
            gs_fcat-ref_table = dd03l-tabname.
          endif.
          gs_fcat-fieldname = dd03l-fieldname.
          append gs_fcat to gt_fcat.
        endselect.
    * " changes end here
        call method grid1->set_table_for_first_display
          exporting
            i_structure_name = 'SFLIGHT'
          changing
            it_fieldcatalog  = gt_fcat
            it_outtab        = gt_sflight.
      endif.
    endmodule.                    "PBO OUTPUT
    If you run this amended program, you see appropriate carrier texts in the ALV grid, where the original program had the IATA codes.
    This approach makes sense if, for example, the same translation is also required elsewhere, as the function can easily be reused.
    best wishes
    Ed

  • How to set fixed value to Column

    Hi Experts,
    I create a matrix in that matrix qty and %columns is there. Here first row % column is must and should 100.if user try to change then message will be get and % value chaged to 100 again how is it possible,only 1st row % column only.2nd and 3rd rows ect will be entere by User only .How is it possible?
    Thanks and Regards,
    MTR

    When u type any text in the matrix validate event is fired.In this event u can check the row number and column name.In this event u can set the required validation.

  • 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

  • Fixed Values and Value Mapping

    Hi Experts,
         I hav a doubt regarding these to funnctions in Messege mapping. In both teh functions , we can change a value coming from Load to some thing else.
    Like
    A=1
    B=2
    C=8.
    The difference i hav noted is the in case of fixed values, we can assign the valsues in the messege mapping itself, and in case  of value mapping it is assigned in the value mapping table  in integartion directory, and thsi can be seen through  Runtime Workbench in Cache Monitering. . Apart from that there seems to be no big significat difference in the application .
    Pls correct me , if I ma missing out something.
    Pls tell me if both hav the same functionality, why were these 2 functions made , any 1 of them, preferably Value Mappimg Function could hav been enough.
    Regards,
    Arnab.

    Hi
    Fixed value mapping is Message mapping Specific
    But Value mapping allows u to create a Schema and group .
    Value mapping functionality will be well understood in large integration where many mapping programs using same conversions.
    Maintain advantage is maintance is easy with value mapping because if any chnages in value , just ID change is enogh no need to go mapping but this is not with fixed value
    For instance if u r using Fixed value in 50 mapping programs u need to change in all
    But if u r using Value mapping just one ID
    Which one u prefer
    all based upon u r landscape for mapping
    Srini

  • Message Mapping - fixed values - not mapping

    Hi
    i have a simple fixed values mapping that is not producing anything.
    the input value can be 'Y' , 'N' , or a blank.
    The fixed value mapping is setting these input values to 'Yes', 'No', and 'No'
    however when i test this, nothing is getting mapped to the output record for this field.
    can someone tell me why?
    many thanks,
    Julia

    Hello,
    What happens when you use this logic?
    Source -> mapWithDefault: -> fixValues -> Target
    Configuration for fixValues would be:
    DefaultValue: No
    BehaviourLookUp: Use Default Value
    key             value
    Y                Yes
    Hope this helps,
    Mark

Maybe you are looking for

  • How can I sync Bridge between multiple computers at work with keywords/collections/search?

    We've been trying to find a digital asset management platform at work for a while now and I recently came across Bridge (we have the Creative Cloud). It's perfect! Except we're all on a bunch of different computers and would need to be able to search

  • Cursor type error.

    when i execute my code i keep getting this error, java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state. i have tryed using different cursor states and i still get this error. The error appears to come out only when i try to ta

  • Contract and scheduling aggremnt

    hi i am sunil basically from BI consultant. when we go tcode  ME33K , we need give aggrement no? how can i decide is it for contract or scheduling any other filed will decide ? field provide me some information Purchasing (MM-PUR) A longer-term arran

  • Unable to Connect to Database from Forms/Reports 6i

    I can't find anything wrong with my TNSNAMES.ORA file, yet I can't connect to my database through forms or reports. The errors I keep getting is TNS-12154 and TNS-12203. Please advise. Thanks in advance. E

  • How do I shrink a movie ive created so it can be emailed or put on Facebook?

    How do I shrink a movie or upload so I can email it or just upload it to facebook once ive finished editing it, dont want to use youtube,