Mapping values

Hi,
I'm using reports6i.
I have data like this
SQL> select btm_job_type,btm_description,btm_crt_type,btm_catg
  2  from booking_type_master;
BTM_JOB_TYPE    BTM_DESCRIPTION BTM BTM
CONSOL          FCL Imports     I   S
CONSOL          FCL Exports     E   S
CONSOL          LCL Imports     I   S
CONSOL          LCL Exports     E   SBased on this data i'm preparing a report, here 'I' and 'E' for column btm_crt_type indicates 'Imports' and 'Exports'
and 'S' in btm_catg indicates 'Sales'.
So in report i have to display the full string instead of 'I', 'E' or 'S'.
What i'm presently doing is,in reports query i've written case statements for these cases.
But since there are lot more columns like this which have short forms, but needs to diaplay full form
My manager told me to map those values instead of writing case for each columns.
But i've no idea how to do that
If anybody has done something similar to this, please help me do
Thanks

Hello,
My manager told me to map those values instead of writing case for each columns.First i want to know what is the meaning of MAP according to your manager and from where to map?
The best practice says you must create lookup for these types of fields. Mean a setup table where you will insert all these short codes with their description. So, while making report you can just join that table in your query and the description will be dynamic from the table. So, in future if there will be any new status of flag then no need to open the report and change the query or formula column.
And if you don't have the setup/lookup table for these shortcuts then you will have to use the CASE/DECODE in your query as you did.
-Ammad

Similar Messages

  • Get Map values using loops

    Hi,
    With a vector I can have a loop and to get the values with a index.
    Vector vec = new Vector()
    for(int idx=0; idx>vec.size(); idx++){
        System.out.println(vec.get(idx).toString());
    }I can do something similar with a map ? in other words have a loop and get the map values.
    I know that the map a other java.util Collections don't have a
    public Object get(int index)
    method as Vector, but How I can simulate this in a map.
    Some idea ??
    thanks

    what about using an iterator?
    Iterator it = map.values.iterator();
    while (it.hasNext()) {
    Object o = it.next();
    hf,
    dani

  • MDM Exception: Key mapping value must be unique. You cannot overwrite key

    "ServerException: Key mapping value must be unique. You cannot overwrite key mapping values."
    I received such exception when code tried to manipulate Key Mappings of the record.
    error was not happen on mdm 5.5 but on 7.1 it sometimes appears.
    What is probable reason of this?
    How to resolve this ?
    Code is approximate so:
                                         String[] keys = keyMapping.getKeys();
                        if (recordKeyMapping.containsKeyMapping(remoteSystem)) {
                    recordKeyMapping.replace(remoteSystem, keys);
              else {
                   recordKeyMapping.addKeyMapping(keyMapping);
              //Persist
              targetRecord.update();
    //where methods are:
         public void replace(RemoteSystem remoteSystem, String[] keys) {
              KeyMapping keyMapping = getKeyMapping(remoteSystem);
              if (keyMapping == null) throw new IllegalArgumentException("Can't update keys: key mapping for the system '" + remoteSystem + "' is not found");
              else {
                   keyMapping.setKeys(keys);
         public void addKeyMapping(KeyMapping keyMapping) {
              RemoteSystem remoteSystem = keyMapping.getRemoteSystem();
              for(int i = 0; i < keyMapping.size(); i++) {
                   addKey(remoteSystem, (String) keyMapping.get(i));
    Edited by: Vladimir Grigoryev on Oct 5, 2010 11:26 AM

    Hello -
    I am not sure on that coding part. but is it like are you trying to retrive Key Mapping from Memory accelerator. Here this information always needs to be read from Database.
    I am sure you also maintained  the required attribute for key mapping as in Property in Console should be set as "Yes" and other relevant things properly .
    Here also go through the below link for more insight from tools perspective.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30843106-5539-2b10-75a9-da483911b0d9
    http://help.sap.com/javadocs/mdm/sp06/com/sap/mdm/data/KeyMapping.html
    It may help
    Rgds
    Deep

  • Mapping Values to Data Type Enhancements in XI

    I want to a map values from a source XML to a target XML but the target fields are data type enhancements and not that of the standard one. The target message is the message of a predilevered interface of SAP for the SNC product. We did some enhancements to a particular data type. The enhancement was done in a different SCV and points to the datatype in a different SCV. Now, the mapping is in another different SCV (since the SCV for the SNC content of XI cannot be edited). When I was trying to map the values to the data type enhancement in the message mapping, the enhanced/additional fields are not there.
    How would I be able to map the values to the additional fields? Thanks in advance!

    check this:
    http://help.sap.com/saphelp_nw70/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/content.htm
    The Integration Builder does not recognize changes to software component versions that have already been imported. Therefore, if you want to define dependencies between imported software component versions at a later date, you have to import the superordinate software component versions into the Integration Builder again. You will not lose objects that have already been created.
    Not sure but this might help.
    Thanks,
    Beena.

  • Mapping Value Objects to Java Classes

    Hi All,
    I have one Java Class:
    public class MyBean {
        private ArrayList numbers;
    I have created one mapping value object for the same in Flex:
    package vo
        import mx.collections.ArrayCollection;
        [RemoteClass(alias="com.tcs.example.MyBean")]
        public class MyBean
            public function MyBean()
            public var numbers:ArrayCollection;
    but when I fetch the object using Remote Object, the returned object has "numbers" as null even though I'm returning from Java a filled ArrayList.
    Does any one know Why is it happening and what should I do for this.
    Thanks in advance

    Do you have getNumbers and setNumbers methods on your java bean?
    Try to activate the logs on blazeDS to see what's going on.

  • Value mapping values to be reflected dynamically

    Hi All,
       I have a scenario where R3 entries should be reflected in value mapping dynamically for a particluar field .
    Can anyone explain wht does the component SAP BASIS 7.00(NS- http://sap.com/xi/XI/System,MI -ValueMappingReplication) has the role. by generating a java proxy & deploying the jar file in visual admin helps, after this proceeding with abap mapping to retrieve the value from r3 dynamically using this MI.
    Correct me if Iam wrong?
    I have to schedule this evry week such tht  new entries should get populated dynamically form r3 in abap mapping.
    Appreciate if anyone has inputs.
    Regards
    Chaithanya

    Hi All,
    I am facing a problem while processing the message(value mapping values not been reflected in cache monitoring) .
    Iam getting the below error "INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK"
    SAP:AdditionalText><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  Go to <A HREF="/MessagingSystem" target="_parent">main page</A> of this application!</pre></font></td> </tr> </body>
    I  have created abap report to fetch the entries from t005 table , I am getting the entries in a internal table but these entries are not reflected in cache monitoring.
    Can anyone suggest me if you have gone through this error?
    Appreciate your inputs
    Regards
    Chaithanya

  • OSB Transformation Mapping values missing

    Hi,
    I'm new to OSB.We have a requirement where it structured in 3 layered architecture consists of BPEL(1),OSB(2),OSB(3).
    So i have created a Business service of my client WSDL from OSB(3) then proxy of type created bussiness service which is having local transport which inturn called by proxy service of http protocol in OSB(2) of type OSB(3) Proxy service.
    My Question is when i call transformations (xsl) in last OSB(3) Mapping is done properly(GETING VALUES MAPPED TO TARGET ONE) .But as per requirement we have to call mapping and transformations in OSB(2) ,wen i called in this way only set text valued paramters is displayed in target.... rest mapped values(like source to target mapping) are coming NULL....
    Please help us to resolve the issue soon since its very urgent requiremnt for our project developement..
    Adavance thanks......

    System hardly proposes rules after migration, you have to manually map them and migrate routines if any basing on ABAP OO.
    As it is a newer version it may not be consistent for all objects.
    What SP are you running ?

  • Mapping values on CRM

    Hi,
    I'm new on CRM and I'm trying to mapping values from KNA1 table in R/3 system to crmm_but_frg0041 table on CRM system. The fields on CRM system are ATTRIBUTE, ATTRIB_2 and ATTRIB_3. I thinks this is possible to do with BDOCs. My question is, which function module or exit can I change, on CRM System, to mapping these fields?
    Thks
    Paulo Paixã

    Hi Sharifuddin ,
    This is a great tip. Half of the work it's done but with this tip I realized  that some fields form table KNA1 like KDKG1..KDKG5, doesn't exist on C_BP_STRUCT sturture of the Zxxx funtion module. Do you know if I have other place on CRM side to mapping these fields?
    Thanks
    Paulo Paixã

  • MAP value negative in material master

    Hi,
    I am facing problem with few materials where the stock exists but the MAP value is negative.
    Movements 101,102,201,261 has taken place. Checked the material documents and did not find any problem in any of the movements.
    Is changing the MAP value in MR21 is advicable?? Will this create any problem in FI accounting??
    Pls advice.
    Regards,
    Radha

    HI,
    What is that material type.
    Check is there any sales against that material with less cost of MAP .
    The system shows that less amount as negative from the finanace point of view.
    So check any salaes docs agianst that material.
    Regards,
    Andra

  • Using an array list as a hash map value

    Hi,
    I have an object which has a "properties" field, which contains certain data for that object.
    Most of the time the key/values are both Strings, but in at least one instance, the key is a string, the value needs to be an array list.
    The Map is declared as HashMap<String, Object>
    when I populate the map, and then attempt to retrieve its value, it seems to work correctly.
    But when I try to retrieve the arrayList from another object, using its getter, it doesn't work,
    IOW, if I have code like this:
    // object created from outside the class where the map is populated
    ExampleObject eo = new exampleObject();
    eo.getProperties.get("string value that is a key for the map. ");
    // if I try to determine the class the value is,
    System.out.println("class: " + eo.getProperties,get("string value that is a key for the map. ").getClass());
    // the code above indicates the object is a string. I googled and found a suggestion on this forum, that instead of making the map value an arrayList, I should create an object that contains an array list as a field, and then use that new object as the map value. I tried that and had the same problem.
    any idea what I'm doing wrong? Hope that's clear...
    thanks!!
    bp
    Edited by: badperson on Aug 13, 2008 9:38 AM

    threw this together and it worked fine, so something else is screwed up in my code.
    import java.util.*;
    public class MapTester {
         private HashMap<String, Object> testMap;
         private ArrayList testList;
         public ArrayList<String> createList(String listName){
              System.out.println("creating list");
              testList = new ArrayList<String>();
              testList.add(listName + " line one");
              testList.add(listName + " line two");
              testList.add(listName + " line three");
              return testList;
         public HashMap<String, Object> createMap(String key, Object value){
              System.out.println("populating map");
              testMap = new HashMap<String, Object>();
              testMap.put(key, value);
              return testMap;
         public static void main(String[] args){
              MapTester mapTester = new MapTester();
              mapTester.createList("List 1");
              mapTester.createMap("listKey", mapTester.getTestList());
              System.out.println("retrieving arrayList");
              System.out.println("map value is type: " + mapTester.getTestMap().get("listKey").getClass());
         public ArrayList getTestList() {
              return testList;
         public HashMap<String, Object> getTestMap() {
              return testMap;
    }thanks for the replies
    bp

  • MAP value for sub materials from New(Main) Material

    Hi all
    I got an issue in Kit breaking i.e. i got one material(main) which contains 10 of sub materials.Now when i am receiving the main material, i will receive with a value  assume as 10000 bugs.
    Now i would like to know that the 10000 bugs can be splited equally between all the 10 materials automatically.
    All the 10 material  are newly created with MAP value as zero.
    Regards
    Praveen

    As mentioned in my earlier reply, if material is maintained on price control 'V', then system tries to settle the variance to inventory. In such case, if the variance is favourable i.e. Actual cost is less than the standard cost, the negative variance will reduce the value of inventory and as a result MAP. If the inventory value is less than the amount of variance, system issues a message that MAP will become negative.
    Hope this clear the issue. If yes, please award points
    Regards
    Rakesh Pawaskar
    Message was edited by:
            Rakesh Pawaskar

  • ForEach sort on Map values

    Hi,
    Is there any way to sort a map values using ForEach droplet.
    Thanks,

    Could you pls explain a little bit more.In order to sort Map elements by key, set the value as follows:
    {+|-}_key
    For example:
    <dsp:param name="sortProperties" value=" _key"/>See sortProperties section:
    http://docs.oracle.com/cd/E23095_01/Platform.93/PageDevGuide/html/s1316foreach01.html
    -RMishra

  • Accessing map values via each keySet

    I am trying code a method where each key in a Map is iterated through keySet in a for-each loop but while each key is being accessed I need to also access its values where the values are of the type Set<Integer>. The Map is named bookIndex and I have tried using bookIndex.values() but this accesses all the values of the Map and not just the values of the key being presently accessed. Ive tried using a List to do this but was advised that this was not needed in another thread (Accessing Map values through a List). Ive tried creating a Set to contain these values but bookIndex.values() does not do it.

    1000070 wrote:
    I am trying code a method where each key in a Map is iterated through keySet in a for-each loop but while each key is being accessed I need to also access its values where the values are of the type Set<Integer>. The Map is named bookIndex and I have tried using bookIndex.values() but this accesses all the values of the Map and not just the values of the key being presently accessed. Ive tried using a List to do this but was advised that this was not needed in another thread (Accessing Map values through a List). Ive tried creating a Set to contain these values but bookIndex.values() does not do it.So in each iteration you have a key myCurrentKey. Why bookIndex.get(myCurrentKey) is not good?

  • Unusually High MAPE Values

    Posting it again for anyone to give you some inputs.
    We ran forecast on a selection ID that has all Product-Customer combinations using Auto Model 56 in the bakground on Prod-cust level. The system has proposed a strategies like constant, croston, seasonal and so on ..which is fine.
    We have set up a limit of 80 for the Error Metric MAPE in the Diagnosis group. If I am not wrong, MAPE is a percentage value and 80 should mean 80%. But after the forcast run using 56, the system generated  abnormally high MAPE values, for example MAPE values obtained are in 10's of thousands like 2,956,009.830 and even 10,000,000.000 . These are no where close to our limit 80. MAPE is the average of absolute percentage differences between Acutals and Expost forecast. So how could system generated MAPE be so high for all the combinations . Are we supposed to read it differently, because i thought auto model though may not propose the best fit model parameters, but atleast not give us a forecast which has such high MAPE values. I was expecting MAPE within 100 or worst case 200, 300 but not thousands and millions..
    Am I missing something ? Please help - Susan

    Hello Susan
    You could use the MAPE-A. You have to implemnt it on your own in a badi.
    The MAPE-A ist a value between 0-2.
    Hope thats helps you.
    Sven

  • Syndicating Key mapping value from lookup table

    Hi Experts,
    I want to Syndicating Remote Key value from lookup table as per the remote system.
    In syndicator, if I map destination field to the remote key of the lookup table, I am getting blank value.

    Hi Mrinmoy,
    kindly check in the Data Manger whether have you maintained Remote keys for the lookup table. If yes then choose the specified remote system from Remote key override fields under Map properties in the syndicator.
    Incase you cant find the remote system in the "remote key override" field for which remote key is assigned in Data manager, then you need to check the Type (outbound) of the remote system in Console admin node. Because only those Remote systems type set as Outbound can been found in Remote key Override in the syndicator.
    After choosing the remote key you need to map the destination field with Remote key value as shown in the below image.
    Regards
    Rahul

  • BTM - Mapping Values to a Specific field in an OLifeExtension

    Hope I am explaining this correctly...
     Mapping a new field value from a source schema to target, which is XMLife. Our OlifEExtensions have not been added to the ACORD schema but the new field that I am mapping to has been defined as Party\OLifEExtension\Field A.
    The current mapping logic is a BMP map, but all mapping is done with field to field direct mapping. 
    In my case, I am adding mapping to an existing map, but there is no actual Destination to map to, other than OLifeExtension.
    Can I add destination location ie. Party\OLifEExtension\Field A in a Scripting Functoid. Is this do-able? Can I get the syntax? Inline C# or XSLT. 
    Any other ideas on how to map to a specific destination? Thank you!
     

    Technically with inline XSLT you
    can construct/add a field (which you don’t want to add to the schema). But the outputted XML (which you could create, after the map) would not be validated to the existing schema, as the existing schema doesn’t define the extra filed which
    you added through the Inline-XSLT.
    If the outputted message is not validated in any of your process like by using XMLTranmit or in orchestration. You can add the field in the map using Inline XSLT. Technically its possible but its not
    the right way, you use scheme to define the structure of the XML/message. But you want to create a message which is not defined by the Schema.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

Maybe you are looking for