Regarding Value Mapping

Hi,
Iam doing a scenario which deals with value mapping,and there are duplicate values in destination for different sources.I have created a Group for all repeating values in destination,and i have used that name to map for different sources.But my scenario is not working as desired.What do i do?

Hi
You may not be using value mapping for its intended purpose. It should be used to map between different ID schemes for the same entities, such as companies, persons etc. An ID for such an entity must always be unique, or it would be of no good use. And then you cannot have duplicate target values, because you would then get an ambiguity if you were to map in the other direction.
But sometimes you really need value mappings just in order to make something configurable rather than hard coded into a message mapping. This is when you run into this sort of problem. For example:
Jim -> Manager
Bob -> Employee
Sue -> Employee
The job title is NOT an ID, and certainly not unique. As you can see you cannot map backwards from "Employee" to a unique target value.
I think you might be better off using the mapping lookup API. If you don't want to go this way, you could of course do a hack, such as
Jim -> Manager_1
Bob -> Employee_1
Sue -> Employee_2
and then afterwards remove the underscore + suffix.
Regards
Jorgen

Similar Messages

  • Regarding Value mapping in SAP+XI

    Hi Experts,
    In vaule mapping what does throw exception in behavoir if lookup fails under Value mapping properties of ESR do? Why is it needed and how to use it.
    Thanks and regards,
    Aniruddha Bhattacharya

    > In vaule mapping what does throw exception in behavoir if lookup fails under Value mapping properties of ESR do? Why is it needed and how to use it.
    Maybe you tell us what you want to achieve and we discuss, how you could do it?

  • Value Mapping - size limit

    Hi all,
    We got a doubt regarding value mapping,
    Is there any size limit for value mapping tables that we are creating in Configuration?
    Thanks and regards,
    sasi

    Hi,
    since the valueMapping will be executed on Java Stack, the size limit will rely on your JVM memory setting (Heap size, basically).
    But the memory request will be from your payload. As a rule of thumb, the memory requirement will be 5-10 times of your payload size.
    Cheers,
    Aaron

  • Regarding  Exception handling for  Value mapping

    Hi
    We have a requirement for resending the message (using  SXMB_MONI)for Value mapping and other message mapping related errors . Is there any others way we could achieve this , Any help on this is appreciated ?
    Thanks in advance,
    Jishi

    Hi Jishi,
    I don't think that SXMB_MONI is the solution.
    If you have a mapping error this can belong to two things:
    a) either your mapping is wrong
    b) or your message is wrong.
    In case a) you have to correct your mapping
    In b) The sending system must look what happend.
    In my opinion in both cases (a & b) the process must be restartet from the source system. That's the way we do it.
    Additionally we send a information message in the exception branch to the sending system
    Regards Mario

  • Regarding Limitations in Value mapping

    Hi All,
    I Want to Know the Limitations in Value Mapping.
    Please Let me Know .
    Regards
    Vamsi

    Hello Vamsi
    Limitations.
    1. It can be a ongoing process.
    for example
    suppose application1 represents tax code 1 as TX1 and application2 represents tax code 1 as TAX1 and we had used value mapping in this case.
    This can be a ongoing process suppose if you need to add new tax code or change the tax code.
    2.suppose you have a huge number of value mapping shifting from quality to production is a pain. (i am not sure about other easy method)
    3.Identification of fields for value mapping in big implementation is also difficult.
    4.It consumes certain time
    Regards
    Ramesh P

  • Import conversion data table from SAP R/3 into value mapping table in XI

    Hi:
        Somebody knows how to import a table with conversion data that are in SAP R/3 and to take it to a value mapping table in XI?
        The purpose is to use a mapping table that can change in the future. Must I use a ABAP programming that retrieve data and build the value mapping table?
        If so, how I specify in the ABAP programming the group id, the scheme, the agency and the corresponding value?
        Please, help me.
        Regards!!!

    Hi David,
    please refer to this section in the help: http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    There is an interface for mass replication of mapping data. The steps you need to carry out to use this are:
    +Activities
    To implement a value-mapping replication scenario, proceed as follows:
           1.      Register the Java (inbound) proxies.
    To do so, call the following URLs in the following order in your Internet browser:
    ¡        http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication (for the asynchronous replication scenario)
    ¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous (for the synchronous replication scenario)
    You only need to perform this step once (for each installation).
           2.      Application programming
    The ABAP program must perform the following tasks:
    ¡        Read the value mapping data from the external table
    ¡        Call the outbound proxy used to transfer the data to a message, which is then sent to the Integration Server
           3.      Configuration of the replication scenario in the Integration Directory
    This involves creating all the configuration objects you need to execute the scenario successfully. One special aspect of the value-mapping replication scenario is that the receiver is predefined (it must be on the Integration Server). The sender, however, is not predefined in the replication scenario and can be defined to meet your individual requirements.
    For example, you can use the shipped ABAP proxies.
    In the case of the receiver communication channel, choose the adapter type XI. Ensure that you configure a channel for the Java proxy receiver in this case.
    Enter the path prefix /MessagingSystem/receive/JPR/XI for this purpose.
    +
    Regards
    Christine

  • Partial match for Value Mapping in Import Manager

    Hello Experts,
    We have a import map which is used to do mass insert of data into the main table. This is done as & when required by the end user.
    We have a qualified lookup field which has a flat lookup filed as the Non-Qualifier. This flat lookup field is refering to a Lookup Flat table, which has mulitple dispay fields like Code,Name, Status etc. (14 fields in total) where as only the Code is the unique field.
    We have only the unique field in our source file which we use for the import. Since we have only a part of the display fields in the source, the automap functionality in the Value maping section doesn't work. It becomes very tedious for the user to manually map all the values for this field.
    Is there any way by which we can convert the source or target values in the import map, so that we can map the values using the Automap feature?
    Your help & suggestion for alternate approach is highly appreciated.
    Thanks in advance.
    Regards,
    Uday
    P.S. We are using SAP MDM 5.5 SP6.

    Hi Uday,
    No need to enable remote key mapping for QLT. Please execute the below steps(stated with an example) -
    1.  Among all the fields in the referenced lookup table, identify the lookup fields and the tables they are looking up .
    For eg.If you have a lookup field as 'Country' as one of the fields, look up table will be 'Countries'
    2.For the identified lookup tables, set 'key mapping =Yes' in Console.
    For eg, For Country Lookup table ,set Key mapping to 'Yes'
    3.Import values into Lookup table (Import manager)/ Remote key update -
    In import manager, select source (local file) and destination as Countries flat table.This Table will be haing 2fields - Code and description.Clone the 'Code'field and map it to Remote key field in destination hierarchy.Map code and description to equivalent destination fields. Select 'Code' as matching field > Perform import into lookup table.
    Check if the records in countries table are updated with remote keys(in Data manager> right click on a record> select 'Edit key mappings' > view key mapping for the record)
    3.Import to Qualified table/Auto value mapping -
    Now, in the import map for qualified import , map the source field and destination field (of lookup type), all the values of this field will automatically map.
    Similarly, refresh remote keys mappings for all the lookup tables first and then you can see auto mappings of values happening for the lookup fields.
    Regards,
    Vinay M.S

  • 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 in PI 7.0

    Hi All,
    I need to implement the value mapping.
    The mapping rule for the value mapping is for varius z tables like
    ztable1
    ztable2
    ztable3
    ztable4
    ztable5
    ztable6
    ztable7
    Can you please help me in implementing the value mapping ?
    Can you please tell me the steps to umplement it?
    Thanks in advance

    How can I come to know about the Agency and Schema to implement the Value Mapping?
    Check the blog # 5479
    From the blog:
    Enter Value Mapping Properties such as Agency, Schema for Source and Target messages. Any arbitrary string value can be
    used. But enter the Value Mapping Context as http://sap.com/xi/XI
    I am not getting which Value Mapping should be done for my mapping requirement,but I thibk it should be for the fixed value,but dont know whether I need to implement the Valume Mapping replication or not?
    If you give more details about your requirement then somebody may help you out on the approach.
    Regards,
    Abhishek.

  • N: 1 relationships in Value Mapping 3.0

    Hi,
    in our Value Mapping we need to process n:1 relationships between values. E.g. 2 different codes for reason-for-rejection in the sending system need to be mapped to 1 value in the receiving system.
    As we see now, and this is also mentioned somewhere in this forum, this doesn't work. Is this correct?
    As suggested in this forum one option would be to add the sending value in the receiving value and use mapping to trim the value. So e.g.
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 B
    A2                                 B
    would become
    A1                                 A1_B
    A2                                 A2_B
    Of course, this would work, but just one-way (from SystemX to SystemY). From SystemY to SystemX this would not work, since only value B is available at that time. If you apply the same logic, so implement another value, this would eventually mean:
    Agency: SystemX                    Agency: SystemY
    Scheme: Augru                      Scheme: Augru
    Value                              Value
    A1                                 A1_B
    A2                                 A2_B
    C_A1                               C_B
    D_A2                               D_B
    So you end up with a lot of values to maintain.
    Another option would be to use different Value Mapping scheme's, but this would influence the reusability of the mapping.
    Any suggestions?
    Thanks a lot!

    When you have an n:1 mapping and want to use this in both directions, you need a logic, how the values are determined, if you have several entries to choose.
    In your example:
    A1 -> B
    A2 -> B
    If you come from the other side, what value should B have?
    For the default value you could use a unique prefix (eg: 1_) and add that prefix to the value before calling the value mapping.
    Let us assume, you have maintained the table like this:
    A1 -> 1_B
    A2 -> 2_B
    A3 -> 1_C
    A4 -> 1_D
    A5 -> 2_D
    A6 -> 3_D
    so you have B ->A1, C -> A3, D -> A4
    Regards
    Stefan

  • Value Mapping in BPM

    We are using Value Mapping in XI 3.0 in the integration builder under the configuration.
    Value Mapping is not working during the transformation step in BPM. See help.sap.com under transformation step: http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Does anybody have a solution for executing the value mapping in this case.
    Thanks in advance,
    Glenn van Kamperdijk

    Dear Stefan,
    What if you do want to use value mapping in a ccBPM? What values should be entered at:
    Source Values For Agency?
    and
    Target Values For Agency?
    Best regards,
    Roelof Jan

  • Accessing values during runtime in value mapping

    Hi all,
    We have a specific requirement , where in we have a set of fields coming from the source system. All the fields have values expect few. The few which don't have values are reserved for future use, and for each source field there is a corresponding target value and we need map them.
    We have used value mapping here, but it doesn't work for fields which don't have values.
    We have thought of  accessing the fields which do not have values, dynamically or at runtime by connecting the database of the source system.
    Is it possible to do this, if yes, please provide with your inputs and alternatives.
    thanks,
    younus

    Go through this:
    http://help.sap.com/saphelp_nw70/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    <b>To implement Value Mapping, following activities have to be performed:</b>
    <b>1.</b> Register Java Proxies. This is one time activity for each installation. Following URL has to be called for registering asynchronous replication scenario:
    http://<Server>:<Port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication
    <b>2.</b> Application Programming: ABAP program has to be written to perform following tasks:
    <b>a.</b> Read Value Mapping data from table.
    <b>b.</b> Call Outbound Proxy to push the data into a message to Integration Server.
    <b>3.</b> Configuration of Replication scenario in Integration Directory.
    Regards,
    Sarvesh

  • Error in Value Mapping Replication

    Hi
    I am trying to upload a flat file  to value mapping table using the standard interface given by SAP. I am getting the error ' HTTP_RESP_STATUS_CODE_NOT_OK' in message monitoring.
    I have already registered the interface on the proxy and is successful and created adapter on reciever side for java proxy as stated in the documentaion. on the reciever side I craeted a business service as reciever of interface 'ValueMappingReplication' and communication channel that I created for java proxy input.
    Any thing I am missing ? Any help willl be appriciated.
    Thanx & regards
    Vinod ahir

    Check if you have trailing spaces in the communication channel. If so, remove them.
    Check the port number of the URL which leads to the Java Proxy. It has to be the J2EE port.
    Regards
    Stefan

  • 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

  • Dynamic value mapping

    hi,
    can u plz explain about Dynamic value mapping and where it actually use this
    thanks
    guna

    Hi ,
    Dynamic value mapping.is nothing but
    It is FixValues and ValueMapping under Conversion Functions.
    Eg:
    You need such a requirement. Where the values in the source are mapped to someother value in the target as below.
    1--> Mr
    2--> MS
    3--> MRS
    FixValues is used when you know the entire set of Key value pair in the Design Time. You give the Key and the value in the FixValues and the mapping checks and maps the values to the target.
    In the case of Value mapping, you maintain this Key - Value pair in the Integration Directory and thereby make changes easily and also use them in the Mapping in IR
    Refer These blogs
    ValueMapping using the Graphical Mapping Tool -value mapping using grapic mapping tool
    Value Mapping replication - value mapping replication
    Accessing Value Mapping defined in Directory using Java functions - accesing value mapping
    Dynamic Date Conversion in Message Mapping - dynamic date conversion
    Dynamic Configuration of Some Communication Channel Parameters using Message Mapping - dynamic confighuration
    Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II - dynamic file name
    and also
    Refer this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm - external context mapping
    Regards,
    Suryanarayana

Maybe you are looking for