How to replace value in BW report

Hi Expert,
There is a column in query and it's a key figure, I want to replace it as character description. such as
good  replace  1
bad    replace  2
something like this. Can I only in WAD using javascript? if so, how to do it? Thanks in advance.
Delve

Hi,
It depends on what you are trying to do but you can use Exceptions in query designer. It will not replace values, but it will color cells.
Another option is you can use a formula variable which return values like Good or Bad and you can use this formula variable in a formula  for example
value = 1for_var1+value = 2for_var2
I am not very sure about this solution because I dont know how formulas behave when you put a text like "good" but it can be tried.
Regards,
Mustafa

Similar Messages

  • How to Input Value in  ALV report at reuntime...?

    Dear All,
    How to Input Value or change the value of a field in  ALV report at runtime...?
    regards,

    HI,
    To input value in ALV you have to make it editable.
    to change values at runtime you have to capture some events and then change your values in internal table which is used to display alv.
    Here is an example of editable ALV.
    <b>REPORT ZWA_ALV_EDITABLE_FM .
    type-pools: slis.
    data: gs_layout type slis_layout_alv.
    DATA: d_ref TYPE REF TO data.
    DATA: itab type table of fmfint.
    SELECT * FROM fmfint
    INTO TABLE itab.
    gs_layout-edit = 'X'.
    * Call ABAP List Viewer (ALV)
    call function 'REUSE_ALV_GRID_DISPLAY'
         exporting
              i_callback_program      = 'ZWA_ALV_EDITABLE_FM'
              i_callback_user_command = 'USER_COMMAND'
              i_structure_name        =  'fmfint'
              is_layout               = gs_layout
         tables
              t_outtab                = itab.
    form user_command using r_ucomm type sy-ucomm
                            rs_selfield type slis_selfield.
      if r_ucomm = '&DATA_SAVE'.
        message i000(SU) with 'saved'.
        MODIFY fmfint FROM TABLE itab.
        call function 'REUSE_ALV_LIST_DISPLAY'
             exporting
                  i_structure_name = 'fmfint'
             tables
                  t_outtab         = itab.
      endif.
    endform.</b>
    Regards,
    Wasim Ahmed

  • How to send values from a "Report Column" instead of a "Page Item" ?

    Hi there,
    Here's my case: Two pages A and B.
    Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.
    I'm a bit lost cause I don't know how to transfer/send this value to the second page.
    Do you have any clue ?
    Thanks again for your time !
    BR
    Ulrich

    Ulrich,
    Maybe I have misunderstood your requirements, from those I assumed that Page 4 was already being populated with a Department ID. So my plan was to look-up the Manager ID via the known Department ID
    Here's my case: Two pages A and B.Page A is used to view each employee from a selected department.
    Page B is used to created/modify employees.
    I have a create button on page A which redirect to page B.
    By default, page B is blank (as of course we have to fill the blanks to create a new employee).
    However, there is 2 values I want to send to page B (as I'd like to pre-fill some blanks) : The department ID and the Manager ID (there is one manager per department).
    ---- I succeed with the department ID because it's a page item and in the "Action When Button Clicked" of the button I filled "Set These Items" -> Item From Page B "With These Values" -> Item from Page A.
    ---- I'm confused with the Manger ID because it is not a page item but a report column and there is nothing to do like I did for the Department ID in the create button.>
    Have you verified that you have the :P4_DEPARTMENT_ID in session?
    Does your SQL run in SQL Commands when provided a Department ID?
    Have you tried altering when the Computation fires? I recommended to start with After Regions, try some other firing points.
    Jeff

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • How to default value in hr report category

    Hi all,
    I have create a hr report category in my abap report.
    However, i need to default the Reporting Period  field to value 'Today'.
    Please find the below screen.
    How can i do that?
    Thanks & Regards,
    Sujatha sahu.

    Hi Sujaha,
    I guess u used logic database PNPCE,
    so use below source code FYA.
    You can add the other values in the list. Now I added two only. (“D” and "Y")
    NODES peras.
    TABLES: pernr. " Standard Selections for HR Master Data Reporting FOR THE DEFAULT SCREEN.
    AT SELECTION-SCREEN OUTPUT.
       PERFORM set_date.
    START-OF-SELECTION.
    GET peras.
    *&      Form  set_date
    *       set_date
    FORM set_date .
       DATA: lv_vrm_id TYPE vrm_id,
             lt_vrm_values TYPE STANDARD TABLE OF vrm_value,
             lwa_vrm_values TYPE vrm_value.
       lwa_vrm_values-key = 'D'.
       lwa_vrm_values-text = 'Today.Good day'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lwa_vrm_values-key = 'Y'.
       lwa_vrm_values-text = 'Current Year. Horse Year'.
       APPEND lwa_vrm_values TO lt_vrm_values.
       lv_vrm_id =  'PNPTIMED'.
       CALL FUNCTION 'VRM_SET_VALUES'
         EXPORTING
           id              = lv_vrm_id
           values          = lt_vrm_values
         EXCEPTIONS
           id_illegal_name = 1
           OTHERS          = 2.
    ENDFORM.                    "set_date

  • How to validate values in alv report with check table

    Hi All,
    I have created one editable ALV in which user can enter material(matnr). Now I want to validate the value entered by the user before saving it to my custom table. I am using 'SLIS_T_FIELDCAT_ALV' as field catalog. Is there any field in this which I need to pass to validate material. I don't want to go for coding for this. I tried to search for this but did not get anything. Please help.
    Regards,
    Manish Sethia

    Hi Andreas,
    I tried but that is not working. Do I need to handle some event or command to get it validated. My code is as follows.
    FORM f_build_field_catalouge USING  p_fieldname   TYPE any
                              p_tabname     TYPE any
                              p_inputlen   TYPE any
                              p_fieldtext   TYPE any
                              p_edit         TYPE any
                              CHANGING p_col_pos TYPE any.
      CLEAR wa_fcat.
      p_col_pos = p_col_pos + 1.
      wa_fcat-fieldname       = p_fieldname .
      wa_fcat-tabname         = p_tabname.
      IF p_fieldname = 'MATNR'.
        wa_fcat-ref_tabname = 'MARA'.
        wa_fcat-ref_fieldname = 'MATNR'.
      ELSEIF p_fieldname = 'MATPGRP'.
        wa_fcat-ref_tabname = 'ZOTC_FLEX_MAT'.
        wa_fcat-ref_fieldname = 'MATPGRP'.
      ENDIF.
      wa_fcat-intlen          =  p_inputlen . "colume width
      wa_fcat-seltext_m       = p_fieldtext.
      wa_fcat-edit            = p_edit ."'X'.
      wa_fcat-col_pos         = p_col_pos.
      APPEND wa_fcat TO t_fcat.
    ENDFORM. 
    But this one is not working.
    Regards

  • To replace values of one of the field in the database table

    How to replace values of one of the field in the database table with a new values? Pls help to solve

    Hi
    You can use the UPDATE command to update one of the field value in a table
    see the UPDATE syntax and use it
    but in real time you should not do like this
    Regards
    Anji

  • How can I pass parameters from report to HTML page

    Hi,
    Does any one know how to pass value from Portal Report to other HTML page (asp for excample).
    I build a Protal report, and I want jamp to "http://...viewDoc.asp?DocID=DocumentID" URL, by clicking on link, where "DocumentID" is parameter that to be pass from report.

    One way is to create a link based on that form and attach that
    link with the report. Through links you can pass parameters

  • Update xml to replace value

    I have seen good example on how to use updateXML to update the value as the one below,
    but no luck on search on how to replace from one value to another.
    Does anyone have example on how to replace value using updateXML?
    Thanks,
    Luan
    insert into XML_CLOB values ( xmltype(
    '<student id="211">
    <personal idPer="2561">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal idPer="2561">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal idPer="2221">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    </student>'));
    prompt 'select object_value from xml_clob';
    select object_value from xml_clob;
    prompt 'update XML_CLOBset object_value = updateXML( object_value,/student/personal/city/text(),New York City)where existsNode(object_value,/student[@id="211"]) = 1';
    update XML_CLOB
    set object_value = updateXML
    object_value,
    '/student/personal/city/text()',
    'New York City'
    where existsNode(object_value,'/student[@id="211"]') = 1;

    Sure, I meant to find/replace. In the real world example,
    I have an order with many items, but one item has typo missing a digit.
    I wanted to find that item and replace with new correct value in the xml.
    Order: 1234
    item: 9000292
    item: 9020777
    item: 9003833
    Let's say my third item "9003833" is not correct and I wanted to replace with new item "9003844". Hope that clear!
    here is an example that I am working with:
    I would like to replace firstName = "Luan" with "The World is Great" in my example below, and I want to replace only when it finds firstName = "Luan".
    drop table xml_clob
    create table xml_clob of xmltype;
    insert into XML_CLOB values ( xmltype(
    '<student id="211">
    <personal>
    <idPer>2561</idPer>
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal>
    <idPer>2221</idPer>
    <firstName>Luan</firstName>
    <middleName>M</middleName>
    <lastName>Nguyen</lastName>
    <birthday>06-01-1977</birthday>
    <address>2100 Pine Street.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    </student>'));
    select * from xml_clob
    -- This update statement does not correct. It didn't update the firstName value. I created a new "personal" tag and remove the previous "personal". I wanted to find("Luan") and replace("The World is Great").
    UPDATE xml_clob
    set object_value =
    UPDATEXML(object_value,
    '/student/personal[firstName="Luan"]/text()','The World is Great')
    -- Thanks,
    -- Luan

  • How write a field to screen(report list) but don't display it ?

    Hi, All
        How write a value to screen(report list) but don't display it ?  Because i will use this value as the user click the current line ,but i don't want to expose this value to the user.

    Hi,
    U can Use the option NO-DISPLAY with PARAMETERS.
    Can write in the Selection screen statement with the syntax as
    Paramaters: <fieldname> type <data type>
                 value <value> no-display.
    -Rakesh

  • How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working 10g

    Hi,
    How to Replace Null Value as 0 in an OBIEE11g Pivot Table? it's working in obiee10g version.
    We have tried below methods
    1) criteria tab and edit the ‘column properties’ associated with your fact measure. Choose the ‘Data Format’ tab, tick to override the default format and choose ‘Custom’.
    It seems that the syntax for this custom format is positive-value-mask (semi colon) negative-value-mask (semi colon) null-mask. So this means we have a few options.
    E.g. if you want zeros (0) instead of null then enter:
    #,##0;-#,##0;0
    2) in that formula columns we have put it below case condition also ,
    Measure Column: Nom_amt --> edit formulas
    CASE WHEN Nom_amt IS NULL THEN 0 ELSE Nom_amt END
    3) we have uncheked IS NULL check box in the admin tool also
    I tried above formats still it's not working for me..kindly help me on this..
    thanks to do the needfull
    Best Regards,
    R.Devarasu

    Hi,
    Null value in database displaying as 0 in report, I need to keep value as in database, and I have one calculated row which is based on null values should also null in report.
    but it showing 0 for null values also so, my calculated row showing wrong result.
    my report is like
    col1 col2
    ABC 0
    BCD 12
    DEF -12 --this is calculated row.
    I require result like:
    col1 col2
    ABC null
    BCD 12
    DEF null --this is calculated row.
    Please let me know how I can achieve this.
    Thanks,
    Rahul

  • How to replace blank values in DATE field with 00000000

    Hi
    I have a DSO with Date field in which there are blank values. I want to replace the blank values in the DSO for date field with 00000000. Because of this blank values in the DSO the report is giving an ORA error.
    How do we replace the blank values in the DSO for historical data and also the new loads?
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Suman,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how to remove these "#" values in the report?

  • How to replace key value with character

    Hi Experts
    Can any one tell me, how to replace key value with character, whether it is possible are not. My present report is displaying below format.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--11---11--
    C200--11---1--
    For the above example format i am able to display. But now i want to replace 1 with character value for example. For C100
    country is USA at presnt 1 but it should replace with USA.
    You find required format below.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--USACOst1111--
    C200--UK--HD20--
    thanks .
    Regards,
    Vishal.

    Hi Markus,
    Thanks for reply,
    Actually i dont have attribute for the customer, the data is maintained in ods, in the form, customer name one info-object and customer value one more info-object this value got text. This value stored in the ods as below
    costomer number  customer value
    C100--USA
    -C100CO
    C100--11-
    C200----
    UK
    C200----
    20
    Please let me know any clarification you need.
    Thanks and Regards,
    Vishal.

  • How to replace NULL values from main table

    Dear all,
    I like to remove the NULL values from a main table field. Or the question is how to replace any part of the string field in MDM repository main table field.
    e.g.   I have a middle name field partly the value is NULL in some hundreds of records, I like to replace NULL values with Space
    any recommendation.
    Regards,
    Naeem

    Hi Naeem,
    You can try using Workflows for automatically replacing NULLs with any specific value.
    What you can do is: Create a workflow and set trigger action as Record Import, Record Create and Record Update. So, that whenever any change will occur in the repository; that workflow will trigger.
    Now create an assignment expression for replacing NULLs with any specific value and use that assignment expression in your workflow by using Assign Step in workflow.
    For exiting records, you will have to replace NULLs manually using the process given by Preethi else you can export those records in an Excel spreadsheet which have NULLs and then replace all NULLs with any string value and then reimport those records in your MDM repository.
    Hope this will solve your problem.
    Regards,
    Varun
    Edited by: Varun Agarwal on Dec 2, 2008 3:12 PM

  • How to include input user parameter values in XML report output?

    How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
    Rgds,
    manish

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

Maybe you are looking for

  • Using Touch ID for App store when you have seperate Apple IDs for iCloud and iTunes

    My wife and I each have a new iPhone 5S.  We share the same Apple ID for iTunes and the App Store. In addition, we each have our own unique Apple IDs for iCloud.  This enables us to use iMessage to text to each other. Can the iPhone 5S be setup to us

  • Error saving column settings with ORA-01403: no data found Error

    Hi I have a region with multi row report updatable. When I am trying to change the query I am getting below error. Anybody let me know what will be the problem. ORA-01403: no data found Error saving column settings Regards Kiran

  • Recurring Kernel Panics on Retina Macbook Pro

    I've got a Retina Macbook Pro which has spontaneous kernel panics. I'm not sure how to go about troubleshooting it and would love some guidance here. I think experience with reading the logs and understanding what kernel extensions are doing and stuf

  • How do I total expenses per month

    I am using the check register template in numbers.  I added a table to calculate a running total of expenses per category per month.  I can get the table to keep a running total of expenses per category, but have not been able to add the per month va

  • Use of HL7 files with XI

    Hi there, I want to know if there is a way to interconnect HL7 messaging systems with XI and how to achieve that. A third party will ftp some files to our XI box and XI will take them (NFS), transform into IDOC and post them in SAP. I would like to k