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!

Similar Messages

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

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

  • 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 - Mass replication and Integration Directory interface

    Hello all,
    The following question is often approched in this forum but answer is never cleary provided. Thus I'm sorry to ask it again.
    We are using Value Mapping mass data replication using special interface provided by XI. We can easily see results in cache using Cache Monitoring tool in RWB.
    My question is :
    Is it possible to see and then to maintain such data (mass replicated) using Integration directory (Tools > Value Mapping menu)
    In this menu, we don't see our loaded data.
    How to do this ?
    Thanks a lot.

    Hi Jean-Charles !
    We also use VMR, and we find no way to access the cache data from  Integration Directory. I think that by design this is not possible.
    Value Mapping Replication for Mass Data
    http://help.sap.com/saphelp_nw04s/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    You cannot display the replicated value mapping data in the Integration Directory user interface (see Displaying/Editing the Value Mapping Table) since the original runtime data is stored in the application from which the data is copied. The value mappings created in this way using the user interface of the Integration Directory are just one of many possible sources of data.
    Regards,
    Matias.
    ps: please award points if helpful

  • 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

  • Value Mapping - Mass replication

    Hi all,
    I have set a lot of Value Mapping groups using the JPR mass replication
    One of my context : http://sap.com/xi/XI/LanguageCodes
    I can see the cache content using RWB but is it normal I can't see it using Integration Directory ?
    Thanks a lot

    Hi Jean,
        From ID we can't see the other contexts except http://sap.com/xi/XI.U r saying valuemapping is not returning any values. The conversion for Source value is maintained in the list of values it would return the value other wise it would return as empty.For all the values you are unable to get the return values or for some of the values and remember if you test mapping then you didn't view the values.At runtime only you can able to view the values.
    /people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions, Check this weblog and follow the UDF code, so that u will able to view what are the values does not maintain in the list of values.
    And once check the same from CacheMonitoring in RWB for that particular value for which value u r not getting the return value.
    Cheers
    Veera
    >>> Reward Points, If it is needful

  • 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

  • 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

  • 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

  • Reg:Value Mapping Replacment

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

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

  • Raising error from Value Mapping

    All,
    We are using value mapping for a particular field in our messages. The value mapping table does have entries for most of the entries.
    Is there a way to raise an error - when the runtime gets a value that is not defined in the value mapping table?
    Thanks.

    Let me also explain what we are trying to do. probably that will help in getting a better or easier solution.
    we are using the value mapping mass replication, where in we get the whole translation table into the cache and use it in our application. This table is pushed from R/3 using a report/proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    I was worried that what will happen, if for some reason the cache is cleared during a restart or something. All the value mappings will fail - till the time the data is sourced again from the R/3 system - right? (we are currently having the R/3 proxy push the translation data every 12 hours or so, but was worried about the time in between).
    Thanks.

  • Fix Values Standard Function

    Hi
    My question is regarding the standard function Fix Values :
    There is a Table where a field from the Legacy File ,if has a value X then 123 has to be passed to ERP and so on .....
    I want to use Fix Value (key-Value Pair) in the same , but the limitation is that there are 200 such combinations
    Is it advisable to manually fill these or is there a way that it can be accomplished in SAP XI  deriving it from an excel sheet or somewhere?
    The same are not stored in SAP and thus can't be looked up  !
    Kindly advise if there is an alternate if the Key value pairs are of large number of the order say 500 etc
    Thanks
    Dev

    >
    sd wrote:
    > Hi
    >
    > My question is regarding the standard function Fix Values :
    > There is a Table where a field from the Legacy File ,if has a value X then 123 has to be passed to ERP and so on .....
    >
    > I want to use Fix Value (key-Value Pair) in the same , but the limitation is that there are 200 such combinations
    > Is it advisable to manually fill these or is there a way that it can be accomplished in SAP XI  deriving it from an excel sheet or somewhere?
    >
    the best is to go for a value mapping instead of fixed values when the count is high
    > The same are not stored in SAP and thus can't be looked up  !
    >
    > Kindly advise if there is an alternate if the Key value pairs are of large number of the order say 500 etc
    >
    > Thanks
    > Dev
    For mass loading of values, value mapping replication can be used - /people/udo.martens/blog/2009/04/03/value-mapping-replication-scenario

  • Not able to get distict values even after defining  MAP MEMBER FUNCTION

    Hi,
    I am trying to get distinct values from a query to a table type. Please see the code below
    CREATE OR REPLACE TYPE T_COPY_EVNT_DTL
    IS
      OBJECT
        eventId               VARCHAR2(100),
        eventDescription      VARCHAR2(100),
        promoMonthDescription VARCHAR2(100),
        promoStartDate        VARCHAR2(100),
        promoEndDate          VARCHAR2(100),
        PROMOCOSTSTARTDATE    VARCHAR2(100) ,
        MAP MEMBER FUNCTION sort_key
        RETURN VARCHAR2 );
    CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
    AS
      MAP MEMBER FUNCTION sort_key
      RETURN VARCHAR2
    IS
    BEGIN
      RETURN eventId ;
    END;
    END;
    CREATE OR REPLACE TYPE T_EVENT_TABLE
    IS
      TABLE OF T_COPY_EVNT_DTL;
              with event_data as (
    select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all     
    select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
    select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date     ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
    SELECT  cast(collect(distinct t_copy_evnt_dtl(event,
                                                                                                                        event_desc,
                                                                                                                        promo_month_desc,
                                                                                                                        promo_start_date,
                                                                                                                       promo_end_date,
                                                                                                                  promo_cost_start_date) ORDER BY
                                                                event_desc,
                                                                promo_month_desc,
                                                                promo_start_date,                                                   
                                                                promo_end_date,                                           
                                                                promo_cost_start_date) as t_event_table)  from event_data;
    result :
    T_EVENT_TABLE('T_COPY_EVNT_DTL('2','desc2','monthdesc2','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('3','desc3','monthdesc3','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')',
              'T_COPY_EVNT_DTL('1','event1','monthdesc1','01/01/2001','01/01/2002','01/02/2001')')Please help me to find out the reason why it is not working...

    Remove the comma from T_COPY_EVNT_DTL TYPE.
    ORA-22800 indicates invalid user-defined type.
        PROMOCOSTSTARTDATE    VARCHAR2(100) ,
        MAP MEMBER FUNCTION sort_keyAnd it will be fine.
    SQL> CREATE OR REPLACE TYPE  T_COPY_EVNT_DTL
      2  IS
      3    OBJECT
      4    (
      5      eventId               VARCHAR2(100),
      6      eventDescription      VARCHAR2(100),
      7      promoMonthDescription VARCHAR2(100),
      8      promoStartDate        VARCHAR2(100),
      9      promoEndDate          VARCHAR2(100),
    10      PROMOCOSTSTARTDATE    VARCHAR2(100),
    11      --,
    12      MAP MEMBER FUNCTION sort_key
    13      RETURN VARCHAR2 );
    14  /
    Type created
    SQL>
    SQL> CREATE OR REPLACE TYPE BODY T_COPY_EVNT_DTL
      2  AS
      3    MAP MEMBER FUNCTION sort_key
      4    RETURN VARCHAR2
      5  IS
      6  BEGIN
      7    RETURN eventId ;
      8  END;
      9  END;
    10  /
    Type body created
    SQL>
    SQL> CREATE OR REPLACE TYPE T_EVENT_TABLE
      2  IS
      3    TABLE OF T_COPY_EVNT_DTL;
      4  /
    Type created
    SQL>
    SQL>     with event_data as (
      2  select '1' event,'event1' event_desc,'monthdesc1' promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      3  select '1' event,'event1' event_desc ,'monthdesc1'promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      4  select '3' event,'desc3' event_desc ,'monthdesc3' promo_month_desc,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date,'01/02/2001' promo_cost_start_date from dual union all
      5  select '2' event ,'desc2' event_desc ,'monthdesc2' promo_month_desc ,'01/01/2001' promo_start_date  ,'01/01/2002' promo_end_date ,'01/02/2001' promo_cost_start_date from dual )
      6  SELECT  cast(collect(distinct t_copy_evnt_dtl(event,
      7                                                 event_desc,
      8                                                 promo_month_desc,
      9                                                 promo_start_date,
    10                                                promo_end_date,
    11                                              promo_cost_start_date) ORDER BY
    12                          event_desc,
    13                          promo_month_desc,
    14                          promo_start_date,
    15                          promo_end_date,
    16                          promo_cost_start_date) as t_event_table)  from event_data;
    CAST(COLLECT(DISTINCTT_COPY_EV
    <Object>

  • XSLT mapping for fixed values

    Hi,
    i am doing a XSLT mapping. i have a field which has fixed values(can be performed using graphical mapping). but the same i am not able to implement for XSLT. can anyone give me a idea about this
    <removed by moderator>
    Thanks
    Deepika
    Edited by: Mike Pokraka on Jul 24, 2008 12:57 PM

    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                         
    Step – By – Step Simple Approach for XSLT Mapping                         
    generic xslt mapping part 1                                             
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1                                             
    generic xslt mapping part2                                   
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a                                             
    xslt recursive templates                                             
    XSLT: Recursive Templates
    regards
    kummari

Maybe you are looking for

  • Need Help Fast Please

    Why does this code not do what I want to happen? I have a 7 non functional buttons above the buttons for the days in the month and I would like to be able to layout the buttons starting on the day that the month begins and ending where it ends. Like

  • Updating to iTunes 7 - error:  files are missing

    After downloading an update to iTunes 7: When I click on iTunes, I get an error message which says: "iTunes cannot run because some of its required files are missing. Reinstall iTunes." If I reinstall from the beginning, will I lose all the hundreds

  • Report service Integration vs Report Service SharePointMode

    Hi, I see some msdn docs using the terms "RS Integrated mode" while some other msdn docs use the terms "RS SharePoint Mode". Are those the same thing? I guess it is just diferent terminology used with diferent produtcs versions RS2008/SP2010 & RS2012

  • Q: how to register as MIME application? (JDk1.5)

    According to this document: http://java.sun.com/j2se/1.5.0/docs/guide/jws/enhancements-1.5.0.html (Desktop Integration) It seems to say that one could register the "text/calendar" mime type to start ScheduleWorld. This way, perhaps I could integrate

  • TA21437 safari unable to download attachment on ipad

    When I try to open an email attachment on my ipad I get a message that safari is unable to download.  How do I open the attachment?