Value mapping : target value need to be blank

Hi,
I have a requirement like below (just example).
Source                        Target
A                                 Z
B                                 Y
C                                 X
N                                 BLANK or ""
When I did this using value mapping it works fine for all values except for source value 'N'.
When the source is N then the target should have value space or blank. Is this not supported by value mapping?
For value N, do i have to explicitly check 'if value N then make it blank'?

> For source value N I am getting target as N though in value mapping I have mentioned the target as blank.
This is standard behavior of value mapping when any value is not present in value mapping table then it return the input value as it is. So this means when you declare N with a bank value as result then value mapping won't consider it as an valid entry in the value mapping table. So now you have to take care of N explicitly.

Similar Messages

  • Value Mapping Problem - Values not appearing in destination system

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

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

  • Value Contracts - Target value at header

    Hello Gurus,
    I have a scenario where in we need to provide the target value in the contract for all the items present in the contract.
    I am using the value contract type wk1, its only allowing me to provide target value for each material. Is there a way to have the value contract for all the materials in the contract.
    I have used assortment module with no use....
    Thanks and regards,
    Pavan P

    Mark teh condition WK00 as header group condition. The target value would be applied for the complete order.

  • Is there any way to read the Value mapping input values dynamically?

    Hi all..
    I have a scenario where i have used value mapping. now the issue is when the input is not having any corresponding output value in value mapping then i should get null as output. can anyone suggest how can this be achieved?..
    Regards
    Anu.

    Hi,
    Do you know if the value in not maintained/found in the value mapping then it returns the same value as a result at runtime.
    So, simply if and else will help you to get your desired result..
    SourceField ---> ValueMapping------>|
                                        |----->equalS---IF---->Then -----> Map constant (null) ----> Target
    SourceField------------------------>|
    Else ---->map (SourceField ---> ValueMapping) --->Target.
    Regards,
    Sarvesh

  • Free Goods to be issues if Sales value exceed target Value

    HI,
    User wanted us to configure the sales order such that when the total sales order vlaue exceed a certain amount, the system will automatic include a certain free items to the order as FOC item.
    How do I go about configuring it?
    Thanks

    Hi Colin,
    1: With standard SAP your requirement will not be fulfilled.
    2: To do this you need some ABAP development.
    Ask your ABAPER to write a code in user exit MV45AFZZ
    where check the Value of the Sales order. If the Sales order value exceeds a specific value then add the FOC items in the Sales order where the item category should be TANN (or equivalent).
    You might need a custom Z-table where you can store what Materials are to be added as FOC items in sales order & at what value.
    regards
    Edited by: Innovation is key on Mar 4, 2011 9:22 AM

  • Value Mapping Replication-Values not reflected in Cache Monitoring

    Hello
    I implemented Java proxy for populating values in Java cache. The call was successful also i could see successful messages in SXMB_MONI. also in message moniotring it says "JPR successfully processed the message".
    But when i am checking in cache monitoring i couldn't view the context that i populated through proxy.
    Do i need to refresh any of the cache or restart the server?
    Thanks in advance.
    Regards
    Rajeev

    Hi Rajeev,
    Close the Integration Builder and RWB pages and open again with browser cache refresh. it works for me
    Regards,
    Ricardo.
    Message was edited by:
            Ricardo  Quintino

  • Mapping multiple source value to one target value in value mapping

    Hello experts,
    In my scenario, i need to map more than one source value to one target value in value mapping. Like:
    1        TenderPickup
    2        TenderLoan
    7        TenderPickup
    101     TenderPickup
    102     TenderLoan
    107     TenderPickup
    But when I enter the same target value for the second time and try to save it, it gives me an error saying value mapping already exists.
    But this should logically be allowed. How can this be done. Please provide a solution.
    Thanks,
    Yash

    Hi Prabhu,
    When i right click on the target field, it gives me only 3 options:
    1) Insert Row
    2) Delete Value Mapping
    3) Value Mapping in all agencies
    I dont see nay option for duplicating rows.
    What I hae done is in ID i clicked on TOOLS and then VALUE MAPPING. I checked the option "Value Mapping Agencies" and gave my source and target agencies detials. Then i clicked on DISPLY and in the next page I have 3 columns - Value for <source agency>, Value for <target agency> and Group name.
    When I give duplicate values in the column Vlaue for <target agency>, it doesnt allow me to and if i right click in this column, i get the above mentioend options.
    Please point out where i m going wrong.
    Thanks,
    Yash

  • Entering Source and Target Values in Value Mapping

    Hi,
    Is there any auomative way of entering source and target values in Value Mapping or FixValues instead of manually entering the values.
    I have around 400 values to be entered on both sides.....just thinking of an easy way to do it....
    Thanks for suggestions.
    Regards,
    Bharani

    Hi,
    Use value mapping replication
    chk this link as to what SAP docs say on value mapping replication
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    Value Mapping replication - Value Mapping replication
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    ValueMapping using the Graphical Mapping Tool
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=value%20mapping%20in%20xi&cat=sdn_weblog
    Regards,
    Swathi

  • 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

  • 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

  • Runtime value mapping

    hey ,
    The requirement is like  a record is being accessed from the database through a JDBC adapter into XI.In the record there are different fields concatenated as a string and these fields are to be mapped to the target side i.e Idoc which can be done by extracting the fields according to the length using substring function.Now, some src fields say   "code" "sign" "cause "
    are having some combination of values and these combinations are deciding the value of other fields Mv_TYP  MV_REAS COSTCENTER  GM_CODE MVT_ IND
    in the Idoc .i.e runtime value of these three fields is deciding the value of other fields in the Idoc.
    e.g
    Source                   
    Description  Sign  Cause Code
    1PO/STO            +   1     none
    2rvrs PO/STO   -   1     none
    3returngoods   +   1     none
    4RevrsRtrnGoods     -  1     none
    5RvrsScrap     +  1     none
    6Qty2Qlty     -  6     none
    Corresponding target
    Mv_TYP  MV_REAS COSTCENTER  GM_CODE MVT_ IND
    101     none               01     B
    102     none               01     B
    202     1072     511100          03
    201     1072     511100          03
    552                    03
    322     none               06
    How to do the value mapping so as to have the runtime value of src in the target fields in the Idoc

    Hi Indu !
    If your mapping values are fixed, and a few, you can put them manually in the Integration Repository, using the standard FixValues function within graphical mapping.
    Otherwise, you can use the ValueMapping standard function of graphical mapping to access Value Mapping Groups (loaded by hand or dynamically) in Integration Directory.
    If this kind of value mapping doesn't fit your requirements, you can call an RFC or JDBC query via an UDF to query an external data source to map src values to target values.
    Regards,
    Matias.
    ps: please award points if helpful.

  • Value Mapping  and Lookups

    Hi all,
    I know something about Value Mapping.
    And I heard that the Lookups (DB and RFC) are types of Value Mapping.
    I am confused how value mapping is related to lookups.
    Request you all to provide me some information regd.this.
    Thank you.
    Regards
    Krishna.

    Hi,
    All the links above are quite useful in understanding Value Mapping and RFC lookups.
    Both solutions could be used for getting values from R3 tables at runtime. However, there's difference in way both operate.
    RFC lookup is performed at runtime, since it is executed from the UDF in message mapping. Thus at runtime, call is made to R3 table and value is fetched.
    In value mapping replication, Value Mapping program is run from SAP R3 and values from table are updated in XI Runtime Cache. Thus at runtime, while performing message mapping, call to R3 system is not made. Values are available in XI cache.
    Thus, it is quite obvious that Value Mapping is more performace efficient since it doesn't make a call to SAP R3 system for each incoming message. If the table data does not change very frequently(since for every change value mapping scenario has to be run for update of XI cache), and it is not very large, then it is a good option as compared to RFC lookup.
    However, in cases where either data is frequently changing in table or the volume of data is too large, RFC lookup should be prefered choice.
    Hope it would be helpful.
    Thanks,
    Bhavish
    Kindly award points if comments are useful

  • Value Mapping  Transport Problem

    Hi All,
    I hv some value Mapping Values  in my XI Devvelopment system while i am transporting these values to the XI Quality System  all Development values are able to transport but,some values are duplicating.aferter that
    In  XI Production System newly added values are not transported eventhough imported Sucessfully.
    I was tryed two transport systems i.e CMS & File System.
    Plz, help me to solve this is....
    Thanks
    Mahesh

    Hi Mahesh,
    while value mapping make sure that u refresh the run time cache
    in value it uses another table that which helps in value mapping
    make sure that even that table is imported if any doubt pls chk this link
    value mapping uses values from the cache so you can you value
    mapping replication for your purpose - but you will not
    see those values from ID
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    /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
    if found  worth pls do reward points
    Thanx
    Sampath
    Edited by: venkata sampath on May 29, 2008 11:15 AM

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

  • 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

Maybe you are looking for

  • Create password access to a site in Dreamweaver CC

    Trying to create a password protected site. I have an intro page and want to have a password required to access the main site. I am using hostgator and from what I can see, they only have a username password access. I need just the password access fo

  • I can no longer receive text messages on my iphone 4 after ios 5.

    i upgraded to ios 5 and since then i cannot receive text messages. i can send sms messages but i am not receiving them. all my phone is saying my inbox is full. any help would be great. thanks

  • Question about Portege 2000 boot with Linux

    Hi everyone, My Portege 2000 PIII 750MHz, 512 RAM, 20GB is simply driving me mad. I would like to try to install Linux, and have downloaded some distros to try it. The point is I am using an external CD/DVD reader, with a 16 bit pc card connector cab

  • Firefox CTRL+F Search bar searching with Case Sensitive

    is this only for me or all ? Fiefox search bar is working with case sensitive.. if i type in capital.. it is only showing the results with capital. for example. Type "vishnu" in search bar. it will only show you the small vishnu below. VISHNU vishnu

  • Unexpected rights

    After creating a user, I set its privileges as follows. In many respects, this dose what I wanted such as the user was not able to create table, create materialized view etc. However, to my surprises, the user can A: drop materialized views, even tho