Changing the Characteristic Values on the Query

Hello Masters of the BW Domain
Is there a way to display the values of a characteristic in a report based on a condition?  I have a characteristic called Rebates with only 2 valid values (Y and N).  Instead of showing it as Y and N, I want them displayed as "With Rebate" for Y and "No Rebate" for N.  Is it possible to do this without changing the underlying data in the cube and doing the translation at the query level?  Would it require a user exit to accomplish this?  All the user exits that I've run into only dealt with dates and not with transforming text values.

As Paolo suggested you can add text for the info object. Else if you are using BW Web Reports you can use the Table API(similar to user exit) to do the conversion.
case i_iobjm .
  when 'rebates'.
    if i_value = 'y'
      c_cell_content = 'With rebate'.
    elseif i_value = 'N'
      c_cell_content = 'With rebate'.
    endif.
endcase
*Please check for the syntax.
If you are using BEx, VB macros will be an option.
The best approach will be to store text for the info object.
Thanks.

Similar Messages

  • Pricing based on the characteristic value of the variant

    Dear experts ,
    I have a material that has source inspection active .
    Its inspection characteristics are P1 & P2  depending on the value of which the net price changes.
    When a PO is created , quality inspection lot is generated , result recording is done where the value of P1 & P2 are entered .
    GR is done .
    Now based on the value of P1& P2 correct price shud be picked at the time of GR.
    Is this possible ?
    Regards
    Anis

    Dear Anis,
    This is very much possible. In fact dairy industry works on the same principle. The pricing takes place only after Inspection lot characteristics are posted.
    This is long exercise, wherein you need to maintain certian special condition types and access sequences. You can get more information at buidling block library Link: [http://help.sap.com/bp_bblibrary/600/BBLibrary_Start.htm]
    Check G95: Dairy procurement.
    Hope this helps.
    Amit

  • Ordering Characteristic Values in the order that you restrict them

    Hi SAP Network,
    I have created a BEx query and used up the 2 structures in the Rows area.
    I have then placed a characteristic in the columns area and restricted the characteristic .
    This characteristic in essence acts like a third structure.
    The ordering of the characteristic values when the query is executed is by alphabetical order.
    Are you aware if it is possible to have the same order displayed, as to which you drag the characteristic values onto the characteristic, ie. in the order that you choose.
    Thank you in advance.
    Simon

    Hi there,
    No it is not possible to make the characteristics sort by the order in which you restricted them.
    One weay you could achieve this is by having a sequence navigational attribute (example values: 1,2,3,4,5,6,7 etc)  and in the sorting of your characteristic use sort by attribute.
    Best Regards
    Mark

  • Characteristic values for the material and plant combination...

    Hi Friends,
    I would like to know how can we maintain the characteristic values for the combination of Material and Plant though the material is not batch managed?
    Thanks in advance,
    Ram

    Hi Rajendra,
    Thanks for quick reply. I am maintaining under classification view but it does not ask plant any where. So the value will be same across all the plants but i want to maintain characteristic values separately under each plant for same material.
    Regards,
    Ram

  • How to change the characteristic value in a item of sales order by FM?

    Hi experts,
    I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
    Regrads

    Hi Birendra,
    Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
    type-pools: IBCO2,
                IBXX.
    data: l_CUOBJ type CUOBJ_VA,
          l_ibase type IBCO2_IBASE_REC,
          l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
          w_CONFIGURATION type IBCO2_INSTANCE_REC2,
          l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
    data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
          w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
    select single CUOBJ
      into l_CUOBJ
      from VBAP
      where VBELN = '0020030609'
        and POSNR = '000020'.
      CALL FUNCTION 'CUCB_GET_CONFIGURATION'
        EXPORTING
          INSTANCE                           = l_CUOBJ
        IS_BUSINESS_OBJECT                 =
        IV_MOMENT                          =
        IV_WITH_DB_INSTANCE                =
       IMPORTING
         IBASE                              = l_ibase
         CONFIGURATION                      = l_CONFIGURATION
        EO_CBASE_REF                       =
      EXCEPTIONS
        INVALID_INPUT                      = 1
        INVALID_INSTANCE                   = 2
        INSTANCE_IS_A_CLASSIFICATION       = 3
        OTHERS                             = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at l_CONFIGURATION into w_CONFIGURATION.
      l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
    t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
      read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
      w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
      modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
      modify l_CONFIGURATION from w_CONFIGURATION index 1.
      clear: w_CONFIGURATION.
    endloop.
    CALL FUNCTION 'CUCB_SET_CONFIGURATION'
      EXPORTING
        ROOT_INSTANCE                      = l_CUOBJ
      IS_CBASE_HEADER                    =
      CHANGING
        CONFIGURATION                      = l_CONFIGURATION
    EXCEPTIONS
      INVALID_INPUT                      = 1
      INVALID_INSTANCE                   = 2
      INSTANCE_IS_A_CLASSIFICATION       = 3
      OTHERS                             = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
      EXPORTING
        ROOT_INSTANCE                       = l_CUOBJ
        ROOT_OBJECT                         = l_ROOT_OBJECT
      FORCE_NEW_INSTANCE                  =
      IV_WITHOUT_COMMIT_UPDATE            = ' '
      IV_MATERIAL                         =
      IV_LOCATION                         =
      IV_TECHS                            =
    IMPORTING
      NEW_INSTANCE                        =
    TABLES
      EXP_NEW_NESTED_CUOBJS               =
    EXCEPTIONS
      INVALID_INSTANCE                    = 1
      INVALID_ROOT_INSTANCE               = 2
      NO_CHANGES                          = 3
      ALREADY_REGISTERED_FOR_UPDATE       = 4
      INSTANCE_IS_A_CLASSIFICATION        = 5
      OTHERS                              = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • When we run query how it gets the characteristic values and attributes.

    Hi,
    When we load transaction data it chacks characteristic values then SIDs then DIM IDs then insert  DIM IDs into fact table but when we run the query how it checks and gets the characteristic values and attributes.
    Bye
    GK

    when we run the query how it checks and gets the characteristic values and attributes.
    Just the opposite way you have described. It gets from the corresponding masterdata tables, with the connected SID.

  • How to get the max value in the query??

    Plant  calday(mm.dd.yyyy)       Soldout.Qty
    0001   01.01.2005               10
    0001   01.02.2005               20
    0001   01.03.2005               05
    0001   01.04.2005               16
    0001   01.05.2005               10
    0001   01.06.2005               14
        From the above values , how can i findout Max(Soldout.Qty)(i.e 20) for the above week...Suppose present aggregation = summation...How can i findout the value in the Query??don't want to do changes to design...

    Hi Bhanu,
      I tried the calculation results as...Maximum,..
      But that will pick the maximum value among the avialable values..like
    plant1 max 10
    plant2 max 20
    plant3 max 30
    then it will show as..
    plant1 max 30
    plant2 max 30
    ...like this...but my case is
    plant1 calday1 10
    plant1 calday2 05
    plan1  calday7 08
    plant2 calday1 10
    plant2 calday2 05
    plan2  calday7 20
    so for each set it need to bring the maximum value...

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • Unable to change the parameter value in the configtool

    Hi All,
    Error
    In the Configtool I have changed the custom value to u2018TRUEu2019 of the key u201Cume.superadmin.activatedu201D under Cluster-data -> instance -> server -> services -> com.sap.security.caore.ume.service. Now I am trying to change the value again to u2018FALSEu2019 but the value is not getting updated even after the server is restarted OS level. Please advise.
    System details:
    SAP: PI 7.0
    DB:   MS SQL 2000
    OS:   Windows 2003 server
    Thanks in advance.
    Regards,
    Dinesh

    Hi Dinesh,
    There are a variety of reasons why this is not getting reflected :
    1) When you make changes if you use an AS ABAP or LDAP directory as the data source. The default values of the UME properties assume the database of the AS Java as the data source. This requires you to reconfigure the data source before you can restart the AS Java.
    2) The cluster nodes have not been restarted after the changes
    3) Changes apart from global configuration have also been made elsewhere.
    4)properties as described in Editing UME Properties.
    Editing UME Setting:
    a) Start the Config Tool by executing
    \j2
    ee\configtool\configtool.bat.
    b) In the tree, navigate to Global server
    configuration services com.sap.security.core.ume.
    service.
    The list of UME properties appears.
    Regards
    joel
    Edited by: joel trinidade on Apr 15, 2009 12:29 PM

  • Which table the characteristic values of accounting based COPA are stored?

    Hi Guru,
    we are using Accounting based COPA. we need to generate a report based on the characteristic values updated while posting to revenue accounts.
    i searched the CE4XXXX and COSP tables but i am unable to get the results. COSP is not havinf the the revenue GL accounts  PA characteristics.
    CE4XXXX is not having the the PAOBJNR(profitability object no) updated in BSEG for the revenue accounts.
    from which table can i capture the characteristic values for  a line item posted in BSEG.
    regards
    Jaya

    HI
    refer CE4XXXX_ACCT for account based COPA
    The function module to read chars from PSG is RKE_GET_CHARS_FOR_PAOBJNR
    Regards
    Ajay M

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • No characteristic value of the material in PO

    Hi,
    I am testing the configuration material. I've maintianed a class of class type 200 in BOM, and get the PR after running MRP. No any field or view in PO to display the characteristic value of material. How to get it? I thought it should be display somewhere in PO and in the GR view, because the buyer should know what product they should get and the inspector should know what should be inspect and the pass level.
    Thanks!

    Hello,
    I checked all the tab in PO and PR, but no any icon to see the characteristic.
    I've created a PO for a material which was maintain a class of class type 001, then I've seen the icon 'configuration'.
    Is it necessary to maintain a class of class type 001 for the material related class item in BOM? The on line help told that could create some materials with different characteristic value of one characteristic assigned to a class of class type 200, then maintain this class in BOM. System will pick the right material according to the characteristic value in SO.
    I am confused that why have to create some materials to do that because this application is to reduce redundance of material. I thought one material is enought, which will be required by the characteristic value and taking this value in PO. Do I have to maintain the class 001 for this? If yes, how can I get the characteristic value of class 001 from same charactieristic in the class 002?
    Lin
    Edited by: liang_yielin on May 18, 2010 11:46 AM

  • Problem in getting the current value of the drop down while calling value change listener

    I have 2 drop down list. I am trying to get the value of first drop down from other drop downs value change listener. Initially one drop down contains a default value. First time I got the value while calling the value change listener. But if I change the default value to other in the first drop down and call the value change listener of the second drop down then I got the old value in the bean. Can anyone suggest a process

    If I use the following code it gives me the current index.
                valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
                System.out.println(valueChangeEvent.getNewValue());
    This is also giving me current index.
    BindingContainer container = BindingContext.getCurrent().getCurrentBindingsEntry();
    AttributeBinding attrIdBinding = (AttributeBinding)container.getControlBinding("PersonTypeId1");
    if(attrIdBinding.getInputValue()!=null)
                   System.out.println(attrIdBinding.getInputValue().toString());
    But at last I got some help from Shay Shmeltzer's Weblog.
    BindingContainer bindings =
                    BindingContext.getCurrent().getCurrentBindingsEntry();
                    // Get the sepecific list binding
                    JUCtrlListBinding listBinding =
                    (JUCtrlListBinding)bindings.get("PersonTypeId1");
                    // Get the value which is currently selected
                    Object selectedValue = listBinding.getSelectedValue();
                      long value =0L;
                    if(selectedValue!=null){
                        System.out.println("Sudip.. Person Type using bindings"+selectedValue.toString());
    But this returns "ViewRow [oracle.jbo.Key[300000860721156 ]]"
    300000860721156 is the original value.. Would you please help me to figure it.

  • Mandatory entry in the Characteristic value - CT04

    Hello Folks,
    I created a new characteristic (classification view) for the material master, and I am trying to put the characteristic value as mandatory entry . Is it possible ?
    Any answer will be very helpfull,
    Regards,
    Flavio Marcilio

    Dear Flavio Marcilio,
    In IMG under Logistics General -> Material Master -> Field Selection
    or
    You can maintain a transaction variant where in you can specify whether the fields are optional, display only, required entry, suppressed.
    http://help.sap.com/saphelp_webas620/helpdata/en/eb/5fab41d79b11d296190000e82de14a/content.htm
    In the SAP Reference IMG, you can create transaction variants. Choose Basis Components -> Application Personalization -> Tailoring of Application Transactions -> Configure Transaction-Related Display Values for Fields (Transaction SHD0). Transaction variants allow you to preset values for fields in a transaction, set field attributes, or hide entire screens.
    To execute a transaction variant, you define a variant transaction using the Transaction Maintenance transaction (SE93).
    Once you have entered a transaction code and short description, choose transaction type Transaction with variant (Variant transaction).
    To define a variant, enter the name of the transaction and the name of the variant. You can then use the new transaction code to start the special variant of the transaction.
    Hope this will help.
    Regards,
    Naveen.

  • How to Sort by the length of the returned value from a query.

    Hi,
    I was wondering if it is possible to sort by the length of the returned value from a query?
    For example if I want to get a list of people with the name 'Samuel', I would like to short by how short the length of the whole name is.
    Sort by length of the name in SQL
    Samuel Syda
    Samuel Indranaka
    Samuel Johnsons
    Samuel Longhenderson
    Thank you.

    Hi,
    Sorting is done by an ORDER BY clause at the end of the main query.
    In most cases, you can ORDER BY any expression, even f it is not in the SELECT clause.  In this case, it sounds like you just need:
    ORDER BY  LENGTH (name_column)
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Post your query, using an ORDER BY clause like the one above, and point out where that query is producing the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for