Fields in Value mapping function

Hello,
I am trying to use value mapping function in XI.
I don't know how to input values from data type fields directly to agency or schema.
Company "ABC" -> Agency "ABC"
Code "XXX" -> Schema "XXX"
There are too many different types of values to link.
It is for not inputting those manually in value mapping function.
Thanks in advance.

Hi,
See the below links
value mapping - /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
value mapping help - http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
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

Similar Messages

  • Export/Import the mapping value used in Value Mapping Function

    I used value mapping function, so I defined some mapping data at Integration Directory. now I need migration from development xi to production xi, so How to export the data I input at development xi and later import it? or anyone could provide other solution for replacing value mapping function?
    Hope from your helps
    Thanks
    Spring
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang
    Message was edited by: Spring Tang

    Hi Spring Tang,
      You can export your mapping object in .mte format.
      For this press ctrl+shift and right click in the
      mapping editor. Then go to tools and export the same.
      Similarly you can import the mapping object.
      Hope this will solve your problem.
      Thanks and Regards
      Vishal Kumar

  • Need Basic Materials for Value Mapping Function

    Hi  all,
               Can any one provide Basic Materials for Value Mapping Function???

    Hi Ragu,
    u can chk out this :
    http://help.sap.com/saphelp_nw70/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/frameset.htm
    Hope ths was helpful.
    kanan

  • SAP XI 3.0 Same source for different target in std Value mapping function

    Hi,
    We have replicated 4 value mapping entries from R3 to XI having the same Context , Agency , Schema and value for source, but each of the 4 values has the same Context and Agency but different Schema and Value respectively.
    To illusstate :
    Source                             |Target
    Context Agency Schema    Value -----Context Agency   Schema     Value
    CS1      AS1      SS1      1        CT1       AT1      ST1       A
    CS1      AS1      SS1      1        CT1       AT1      ST2       A
    CS1      AS1      SS1      1        CT1       AT1      ST3       B
    This value mapping is not working and we always get the source value as the result.
    We are wondering if the reason for this is that we use the same source for different targets. But we are not 100 % sure of it.
    When I read the documentation on Value mapping or when we use the value mapping standard function in graphical mapping, we pass the context , agency and schema of the source and target respectively and the source value to get the target value, and this combination is always unique in our case as seen in the above example.
    Has anyone faced this kind of an issue, if yes I would appreciate if anyone could help us resolve this problem.
    Thanks in advance.
    regards,
    Advait

    Hi Advait,
    From the below what I understand is that you are not able to do value mapping for the follwoing
    1     A
    2     A
    3     B
    As value mapping allow one to one mapping only. Please do it like as mentioned below
    1     1*A
    2     2*A
    3     3*B
    Then in the graphical mapping of Integration Repository do the mapping for the same as shown below
    source field > VALUEMAPPING> UDF--> TARGET Field
    In UDF suppress the value of  1* , 2* , 3* which can be done as follows
    create one UDF with one input field
    //write the code as below to suppress the field
    return input.substring(2);
    Here the davantage of using 1* , 2* , 3* etc is that you have the option to use value mapping for 100 values which I think is not normally the case for any Interface.
    If you have same source you can do the same thing for that.
    Hope this helps you to resolve your query.
    Thanks & Regards
    Prabhat

  • 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

  • Value mapping.

    hi
    sdn experts,
    could you please explain about value mapping?
    where the value mapping is used?
    thanks in advance.

    Hi Chinna Rao,
    Value mapping means mapping the data of some source fields to some target fields, in this mapping data can be transform in the format you required for your target system. You can do a value mapping simply by graphical mapping, using UDF etc
    Go thru this thread which talks about value mapping:
    Value mapping
    Value mapping : value mapping function to map different representations of an object to each other. You save the mapping rules for different objects in a value mapping table.
    we have two types ,
    And Value mapping is used to map different representations of an object to each other.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a6638
    You can do value mapping both in IR and ID
    IR: Message Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    ID: Tools --> Value Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/13/ba20dd7beb14438bc7b04b5b6ca300/content.htm
    Value mapping replication: For uploading data from tables, excel sheet etc. into XI
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Thanks,
    Ram
    *Pls reward if you find useful

  • Value mapping in the ERP system during IDOC creation

    We have a PI File-IDOC scenario.
    We can translate simple mappings such as currency or unit of measure in PI(7.1) using the Value Mapping function. For complicated mappings involving business logic (e.g. Tax code which is derived from multiple fields) we want to perform these mapping in the ERP (ECC6) system. Is there an approved generic SAP standard process where these value mappings can be done in the IDOC creation which is still valid when re-processing?
    e.g. a specific BADI or enhancement point recommended for these mapping?
    There might also be a requirement to add segments based on value mapping logic for example when a tax record segment is only required for a non-zero tax code which is mapped via business logic.
    Can someone please direct me in the right direction.

    Thanks for your answers but I assumed that using a user exit / Enhancement point was obvious. What I'd like to know is a generic entry point that I can estabolish a IDOC enhancement framework. Somewhere I can call a class containing methods linked to IDOC message types
    e.g. Call similar to my prototype (this will be where dependant on mappings certain segments will need to be inserted such as tax segments.
      ASSIGN control-mestyp TO <mestyp>.
        CALL METHOD (<mestyp>)
          EXPORTING
            control        = control
            data           = data
          IMPORTING
            have_to_change = have_to_change
            protocol       = protocol
            new_entries    = new_entries.
    The "entry point" must be processed both at creation and reprocess. We are also dealing with Inbound IDOCs not outbound

  • 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

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

  • Value mapping not working properly

    Hi All,
    I am using value mapping twice in same mapping program. But only 1 field is coming with value and other is taking same value from source payload, can you please tell me what can be issue here?
    Value mapping 1 -
    Context - http://sap.com/xi/XI
    SenderParty- SenderSchema
    ReceiverParty- ReceiverSchema
    Value Mapping table in ID -
    Value mapping at field 2 -
    Context - http://sap.com/xi/XI
    SenderParty1- SenderSchema1
    ReceiverParty2- ReceiverSchema2
    Value Mapping table in ID -
    Source payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Send xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
       <Record>
          <Emp_ID>123</Emp_ID>
          <Name>rash</Name>
          <Surname>sumit</Surname>
          <Gender>Male</Gender>
         <Grade>E2</Grade>
      </Record>
    </ns0:MT_VM_Send>
    Target Payload -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_VM_Receiver xmlns:ns0="http://xyz.com/Rashmi_CollectPatternDemo">
    <Record>
    <Emp_ID>123</Emp_ID>
    <Full_Name>rash sumit</Full_Name>
    <Designation>E2</Designation>
    <Gender>M</Gender>
    <Travel_Mode>Train</Travel_Mode>
    </Record>
    </ns0:MT_VM_Receiver>
    Here travel_mode is coming perfect, but designation is same as defined in source payload. Why here Value mapping not working???
    Thanks & regards,
    Rashmi Joshi

    Hi Rashmi,
    The problem would either be in cache update or your mapping. Please provide the sceenshot of mapping (after clicking the value mapping function).
    you can also choose the option to throw error in value mapping function, so it will throw error when value not found.
    regards,
    Harish

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

  • Pbm in Value mapping

    Hi,
    scenario is IDOC -> File
    I am getting sales org(VKORG) in source idoc and this have to be comverted into Country code(VKORG) in target side.
    IR:
    In the mapping of theVKORG  field, Value mapping function is used and I have defined Context :http://sap.com/xi/XI ,Agency: XXX Schema: YYYY
    ID:
    I have created Value mapping by going to tools->value mapping and maintained the list of values in table with group id:ZZZ
    My pbm is  If i give the payload in message mapping and test it.. then the value mapping is working fine..(ie,In Target side,sales org is getting converted to country code in VKORG field.)
    but if i trigger an idoc with sales org in field VKORG, output file is getting created but sales org is not getting converted to CountryCode.
    What is the problem and How to resolve this..??
    Thanks
    Kiruthi

    > My pbm is  If i give the payload in message mapping and test it.. then the value mapping is working fine..(ie,In Target side,sales org is getting converted to country code in VKORG field.)
    Do you mean when your are testing it under Test Tab in message mapping by using the payload values then it is working? If you ans is yes then you are getting wrong result because value mapping works only at run time. Secondly if value is not maintained in value mapping table then it returns the same value to target field.
    >
    > but if i trigger an idoc with sales org in field VKORG, output file is getting created but sales org is not getting converted to CountryCode.
    You can make sure if it is working or not under RWB. Go to RWB -->Cache Monitoring and the enter your agency & schema and then give the source value and see if it returns the correct result or not.
    Also check again if you have maintained the correct agency & schemaa in MM.
    Also try to refresh the cache because most of the time it happens because of cache problem.
    Regards,
    Sarvesh

  • Siebel EAI Value Maps

    HI,
    I need to understand how we use the EAI value Maps for mapping values for external System. I am using Siebel 8.0 and need to map values for 2 fields before sending the SOAP message using Outbound Web Service. I can send it and receive the response but the values currently are same in both the systems. Hence I need to understand how I can use Data Maps/EAI values maps for solving the mapping problem.

    EAI value maps are conceptually similar to LOVs, except that they are purpose built for use in mapping values between systems. I would suggest going through the Siebel bookshelf in order to gain an in-depth understanding. Here's a link to get you started:
    http://download.oracle.com/docs/cd/B40099_02/books/EAI4/EAI4_DataMapUSScripts28.html#wp134444
    Once you have read the basics, you will come to realize that depending on how you've configured your application you can use the mentioned functions in both WFPs and scripts by directly calling them or using Data Maps.
    To specifically answer your question, here's the process:
    a) Define the mappings (Eg. IN for external system = +91 for Siebel)
    b) Define direction - Incoming/ Outgoing (optional but useful)
    c) Create the mappings within Siebel EAI Value Maps Screen making sure you have, like in LOVs, a specific type defined for the mapping (E.g. Back Office Phone Numbers)
    d) Use one of the available Value Map functions (See link above for the description of each of them) either in data maps or scripts to obtain the mapping value keying off the type field defined above
    e) The rest is pretty much the routine stuff (convert to XML and post/ call adapter or whatever)
    Hope this makes sense and helps..
    - Mayuresh

  • 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

  • Value Mapping Issue in SAP XI

    Hello All,
    We are currently having an issue with our Value Mapping in SAP XI.
    We have set up Value Mappings in Integration Builder : Configuration and for some reason, some works and some doesn't work.
    For example, we have set up Value Mapping Scheme called "DDelTerm" with two Agencies "R2" and "MarketPlace".
    Then we set up a message mapping with DDelTerm Value Mapping function + custom logic to basically convert the value from R2 to value for MarketPlace.
    However when we test this Value Mapping, some works and some doesn't work.
    The following is the test results from two separate runs.
    C000
    Input:     <YYLIKON>C000</YYLIKON>
    Output:     <ShipmentTermsIdentifier>COL</ShipmentTermsIdentifier>
    Y000
    Input:     <YYLIKON>Y000</YYLIKON>
    Output:     <ShipmentTermsIdentifier>00</ShipmentTermsIdentifier>
    Can you think of a reason why the lookup of Y000 fails, yet C000 succeeds?  We checked for trailing spaces, etc, and there aren't any.  And the table has been activated.
    Note: the two leading characters of the value returned from the Value Mapping are stripped, hence COL.  So for Y000, we were expecting to see PPD.
    Is there any configuration step we are missing here?
    Thanks in advance for your help,
    Jay Ko

    Hello,
    What was the solution?

Maybe you are looking for

  • Windows server 2008 R2 to Windows server 2012 R@ Upgrade

    We have Team Foundation server 2010 server configured in our environment. operating system: windows server 2008 R2 Datacenter Server installed: Team foundation server 2010 with share point services 3.0. we need to upgrade this server with windows ser

  • Can I get a refund on opened iPhone 4 within 14 days ?

    I bought a white iPhone 4 32GB yesterday from Apple retail store, but I am not happy with the phone and I've opened it already, can I get a refund for it ?

  • PROBLEM IN RELEASING TRANSPORT REQUEST THROUGH SE10

    Dear all, I am trying to release transport request of development server via. transaction se10.Now my problem is that the child(DEVELOPMENT/CORRECTION) is getting released while the parent request is not getting released. I checked everything and its

  • Line wrap in JTextPane

    I didn't see a setLineWrap(boolean) method in JTextPane (as you can tell from my previous posts I'm having trouble going from a JTextArea to a text component that can format text). How would I force it to line wrap like a JTextArea would if you calle

  • Premiere CC won't playback on my second monitor

    I can use the second monitor for putting anything else (like a window) but it doesn't playback the footage I'm using like before. The problem started when I updated Premiere several months ago and I can't find a solution. It does recognize the monito