Hide the value into report if the value is same

Dear All,
In my one of report the list now displaying as below:
Item    Mat.Code         Qty         
10       FAA001C          100 pcs
20       FAA001C          200 pcs
30       FAA001C          300 pcs
But I need it should like as below:
Item    Mat.Code         Qty         
10       FAA001C          100 pcs
20                                  200 pcs
30                                  300 pcs
If the material code is same only first It will show others will hide.
Please advice me with given some example.
Thanks with regards
Bishnu/27-11

Hi, Bishnu
Test the following sample code.
TYPES:  BEGIN OF ty_test,
        posnr TYPE posnr_va,
        matnr TYPE matnr,
        END OF ty_test.
DATA: it_test TYPE STANDARD TABLE OF ty_test,
      wa_test LIKE LINE OF it_test,
      old_matnr TYPE matnr.
wa_test-posnr = 1. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
wa_test-posnr = 2. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
wa_test-posnr = 3. wa_test-matnr = 'AAA'. APPEND wa_test TO it_test.
LOOP AT it_test INTO wa_test.
  IF wa_test-matnr <> old_matnr.
    WRITE: / wa_test-posnr, wa_test-matnr.
  ELSE.
    WRITE: / wa_test-posnr .
  ENDIF.
  old_matnr = wa_test-matnr.
ENDLOOP.
Out Put
000001 AAA
000002
000003
Regards,
Faisal

Similar Messages

  • How to fulfill the virtual characteristic value into report

    Hi Experts,
          I am working on one reporting requirement that needs to add reference date (virtual characteristic) field to report.
          I have added reference date field to query and able to display the field in report.But I am not able to display reference date field runtime data in to report output.
        Could someone please help me on this how to display this virtual characteristic values into report.where the runtime variable values are stored.How to fill the data etc.
    Thanks in advance.
    Best Regards,
    Hari.
    Edited by: k hari on Jan 29, 2008 6:22 AM
    Edited by: k hari on Jan 29, 2008 6:24 AM

    You can achieve this using Customer Exit or BADI. Check the folllowing link.
    http://help.sap.com/saphelp_nw70/helpdata/en/ac/ef1f43daac9a448f0150a02e3a7aba/content.htm
    If you are using BADI
    You can create Virtual CHAR in BADI using transaction SE19
    In this transaction you can create a new or display the existing BADI.
    There you can see two tabs
    The Attribute Tab we need to give the name of the Multiprovider on which the query with the virtual char is getting executed.
    The Inerface Tab has three following sections. Need to write the ABAP code for all the three.
    Define : Defind all the characteristics and virtual char that will be used for populating virtual char
    Initialize : Initialize them
    Compute : Here you will have to write the logic for populating the virtual char.
    Once the logic is written then you can use this char in your query .
    Hope this helps.

  • Want to hide the drop down based on text field value

    Hi,
    I want to hide some of the values in drop down based on one text field value.
    I have the field called name which has the value A, B, C, D and also one drop down list which has the values 1,2,3,4,5,6. I want to hide the some of the values in drop down based on A or B or C. Let say, If it is A, drop down value should be 1,3,5. If it is B, Drop down value should be 1,2,3,4. Like this for every record.
    Can you please help me out.
    Thanks
    Ram

    Hi Robert,
    I am trying it in two different way. Please suggest which is the right one and feasible.
    1) I have the drop down list which has all the status. I am trying to hide the drop down values based on one text field value for all records.
    2) I have collected all the drop down values into table in webdynpro method. Rightnow I have two tables.
      one has line items details and another one have drop down values. both tables having common fields.
      I have to show second table values for that particular key, move all of them to drop down.
    Which is the best and feasible option.
    Thanks
    Ram

  • Hide the value..

    Hi,
    How to hidden a value in standard report region record on page load?
    for example below is my standard report region record.
    A        B         C
    1        2         3
    4        5         6on page load i want to hide the value 1 and 2 from first record. i.e i want below output.
    A        B         C
                       3
    4        5         6i used apex item in select query(in region source) of report region(type:sql query)
    i.e select apex_item.text(1,A,2),apex_item.text(2,B,2)....
    How to achive this?

    I would do it in the query, example:
    Select Apex_Item.Text(p_idx,CASE WHEN your_logic THEN Your-Column-Value ELSE NULL END,rest of parameters), Next column,...
    From...
    Where...

  • Hide the value of certain cells in ALV GRID

    Hello Gurus,
    i need to hide the value or show a icon instead ib certain cells in the ALV GRID for the users that don't have the corresponding rights. Can anyone help?
    Regards,
    Ioan Constantin.

    Check this example, you'll need to adjust it to your authority object to run it.
    TYPES: BEGIN OF t_alv,
             mandt TYPE s_mandt,
             carrid TYPE s_carr_id,
             connid TYPE s_conn_id,
             fldate TYPE s_date,
             price TYPE s_price,
             currency TYPE s_currcode,
             planetype TYPE s_planetye,
             seatsmax TYPE s_seatsmax,
             seatsocc TYPE s_seatsocc,
             paymentsum TYPE s_sum,
             seatsmax_b TYPE s_smax_b,
             seatsocc_b TYPE s_socc_b,
             seatsmax_f TYPE s_smax_f,
             seatsocc_f TYPE s_socc_f,
             planetype2 TYPE s_planetye,
           END OF t_alv.
    DATA: go_alv     TYPE REF TO   cl_gui_alv_grid,
          gt_sflight TYPE TABLE OF sflight,
          gt_alv TYPE STANDARD TABLE OF t_alv,
          wa_fl TYPE sflight,
          wa_fl2 TYPE t_alv,
          gt_fieldcat TYPE lvc_t_fcat,
          wa_fcat TYPE lvc_s_fcat.
    FIELD-SYMBOLS <gs_fcat> TYPE lvc_s_fcat.
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    SELECTION-SCREEN END   OF SCREEN 1001.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE gt_sflight.
      LOOP AT gt_sflight INTO wa_fl.
        wa_fl2 = wa_fl.
        IF sy-tabix <> 5.
          wa_fl2-planetype2 = wa_fl2-planetype.
        ENDIF.
        APPEND wa_fl2 TO gt_alv.
      ENDLOOP.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
          i_structure_name             = 'SFLIGHT'
        CHANGING
          ct_fieldcat                  = gt_fieldcat.
      LOOP AT gt_fieldcat ASSIGNING <gs_fcat>.
        wa_fcat = <gs_fcat>.
        IF wa_fcat-fieldname = 'PLANETYPE'.
          wa_fcat-fieldname = 'PLANETYPE2'.
          wa_fcat-col_pos = 7.
          AUTHORITY-CHECK OBJECT 'ZPERMISO16'
              ID 'ZPERMI' FIELD '01'.
          IF sy-subrc = 0.
            wa_fcat-tech = 'X'.
            wa_fcat-no_out = 'X'.
          ELSE.
            <gs_fcat>-tech = 'X'.
            <gs_fcat>-no_out = 'X'.
          ENDIF.
          APPEND wa_fcat TO gt_fieldcat.
        ENDIF.
      ENDLOOP.
      CREATE OBJECT go_alv
        EXPORTING
          i_parent = cl_gui_container=>screen0.
      CALL METHOD go_alv->set_table_for_first_display
        CHANGING
          it_outtab                     = gt_alv
          it_fieldcatalog               = gt_fieldcat .
      CALL SELECTION-SCREEN 1001.

  • How hide the value in combobox

    Hi all
    I add the vales and discrption to comboBox ,but I need to hide the value
    please help me

    Unforunately I do not think this can be done.
    You can set what the combobox will display after selecting from the drop down by setting oItem.DisplayDesc = true
    But to hide the values in the actual drop down list is not possible as far as I know - using the SDK at least. I know some combos are displayed like that by SAP, but this is not exposed to the UI.
    The only thing I can think of is a workaround:
    1. Move the existing combo box (combo1) off the form - set it to left=10000 or something
    2. Add a new combo box (combo2) where it was
    3. Add valid values to the new combo box (combo2); use the descriptions from the original combo (combo1) and set the value to be a number
    4. When someone selects a validvalue in the new combo (combo2), select the corresponding value in the original combo (combo1)
    This way, your databinding is preserved & to the user it looks nice and tidy.
    If you do not want to do something like this, I do not think you can do it.

  • [WPF] Use IValueConverter but hide the value in cell

    Hi, 
    I have a column with a range of age.
    I'm using a Convert to set a background color to a single cell of my column 'age'...
    I would color the cell but hide the numeric value.
    I can set a custom background, but I can't hide the value.
    How can I make this?
    This is my code:
    XAML:
                        <DataGridTextColumn Binding="{Binding Age}" Header="Age - Color Range" Width="200">
                            <!-- COLOR CELLA -->
                            <DataGridTextColumn.ElementStyle>
                                <Style TargetType="{x:Type TextBlock}">
                                    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
                                </Style>
                            </DataGridTextColumn.ElementStyle>
                        </DataGridTextColumn>
    C#
    public class ColorToCell : IValueConverter
            public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                int tempValue = int.Parse(value.ToString());
                string tempString = "Red";
                if (tempValue >= 0 && tempValue <= 20)
                    tempString = "#FF0000";
                if (tempValue > 20 && tempValue <= 40)
                    tempString = "#F09300";
                if (tempValue > 40 && tempValue <= 60)
                    tempString = "#EDDF00";
                if (tempValue > 60 && tempValue <= 80)
                    tempString = "#CC00FF55";
                if (tempValue > 80 && tempValue <= 100)
                    tempString = "#85AB00";
                SolidColorBrush brush = new SolidColorBrush();
                BrushConverter conv = new BrushConverter();
                brush = conv.ConvertFromString(tempString) as SolidColorBrush;
                return brush;
            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                return DependencyProperty.UnsetValue;
    Thanks.

    If you want to hide the value in the cell you could just set the Visibility of the TextBlock to Collapsed based on some converter logic:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Style.Triggers>
    <DataTrigger Binding="{Binding Age, Converter={StaticResource ageConverter}}" Value="True">
    <Setter Property="Visibility" Value="Collapsed"/>
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Return true from the Convert method of the ageConverter to hide the TextBlock. You can then set the background of the cell using a CellStyle:
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.CellStyle>
    The other option is to set the Foreground property of the TextBlock to the same colour as the Background:
    <DataGridTextColumn.ElementStyle>
    <Style TargetType="{x:Type TextBlock}">
    <Setter Property="Background" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    <Setter Property="Foreground" Value="{Binding Age, Converter={StaticResource ColorToCell}}"/>
    </Style>
    </DataGridTextColumn.ElementStyle>
    Please remember to mark helpful post(s) as answer to close your threads.

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • Hidding the condition in reports

    Hello All,
    I have genarated a report with some binding variables, It will produce a custom form for the values to consume.
    there is a drop down box in the custom report for conditions to be set. I want to hide this drop down box for the end user.
    Or How to build the "Reports From Query Wizard" without the drop down box(which contains the condition, I will set the conditions by saving them once..) or hide in the custom report which is provided by the portal prior to genarate report.
    thanks in advance

    Greetings,
    Hi,
    I have a JSP that generates links to a Servlet, the problem is that in the M$-Explorer the url appears
    when you pass the mouse-pointer over the link, how can I hide the URL? or how to hide the Servlet
    Url and params?If your JSP is providing the links as anchor tags (i.e. '<a href=...') then their is really very little that can ultimately be done about it.  Some JavaScript and CSS can be thrown in to keep the link from showing up in the browser's "info line".  However, unless you also throw in some script to also keep the user from being able to view the page source, this is only going to superfically "mask" the information and not really "hide" it.  Yet, even with disabling "view source" the user can still also disable JavaScript in the browser making all this moot. ;)
    A better solution to the matter is to move the "linking" from the client over to the server instead. Spend some time investigating the Front Controller pattern (see http://java.sun.com/blueprints/patterns/FrontController.html), and RequestDispatcher. Using 'buttons' in your JSP to signal views to the controller and session objects to store parameters already known to your application will take your application a lot farther in the long run than embedding HTML links in your front JSP. ;)
    Regards,
    Tony "Vee Schade" Cook

  • Web Report - Hide Repeated Values

    My web report hides repeated values regardless of the query setting. 
    Is there any way to set a specific column to not hide repeated values?  Using the table API?
    Thanks!

    dear Kenneth,
    have you try to remove the check mark of properties 'suppress repeated text' in 'specific' section of your web item 'table' in web template ?
    or you can give parameter SUPPRESS_REPETITION_TEXTS for web item 'table' with value blank
    <param name='SUPPRESS_REPETITION_TEXTS' value=' '>
    doc may useful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/13dc9190-0201-0010-71a4-a9f56cdfcc72
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b1089290-0201-0010-288c-98e4d26487ee
    hope this helps.

  • Hide column values in report

    Hallo,
    I have created a SQL Report which contain some column, and created a checkboxelement and placed it above the Report.
    waht I want to do, is to hide data from column1(f01) when the checkbox is checked, the column header have to remain displayed.
    I tried it with javascript but it doesnt work maybe i am doing something wrong
    any Idee?
    Many Thanks.
    Edited by: user10773430 on Oct 18, 2009 7:51 PM

    Hi,
    Now I don't know why you need to show the column heading if data won't be shown, but maybe it is something the client thinks it's something "nice" to have.
    Anyway, look at this example that shows/hides entire column depending on the selected value of a check box ( in your case LOV) .
    http://apex.oracle.com/pls/otn/f?p=31517:78:1494600569809382:::RP,::
    You can tweak it as follows:
    Assume in your report you have 2 columns (col1,col2) that you want to be shown/hidden depneding on that LOV , create duplicated of these coulmns ( col1_2 , col2_2) that shows "null" values and are hidden at page load.
    Then tweak that provided code to show the "duplicate" coulmn and hide the original column if corresponding value was seleced in the LOV...something like :
    Col1   Col1_2      Col2           Col2_2
    Mike               Manage
    John              Accountantat load it will look like :
    Col1        Col2         
    Mike       Manage
    John      AccountantWhen LOV selects col1 to be hidden , it will hide col1 and show col1_2
    Col1        Col2         
                Manage
               AccountantHope this helps!
    Sam
    Please reward good answers by marking them correct or helpful!

  • Hide the column from ssrs report

    Hello,
    I am creating matrix report , I want to hide the column in which Data Field is null. I did tried by writing this expression
    =IIF(IsNothing((Fields!test_name.Value,
    "matrix1_category")),true,false)
    but problem with this expression is it hide the column on first page,It does not do it on rest of the pages, I have multiple pages grouped on one column and added page break on that group.
    Please give me some solution
    Column 1 -ChildGroup-> Column 2 -ChildGroup-> Coulmn 3  | Column 4 |
        |
    Data      |
    Added Page Break on Column 1 and Column 2
    Thank-you!

    Hi Piyush,
    If I understand correctly, you want to hide the entire column, when it has NULL value of the specify field. We can configure the Column Visibility.
    Please refer to the following steps:
    1. Right click the column, select Column Visibility option.
    2. Select “Show or hide based on an expression” with above expression.
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to hide the report "No data available" message

    Hi,
    When there are no results from a query execution I would like to hide or at least replace by 0 the "No data available" message.
    I'm working on BI 7 and the query is included in a web template that has a button to export to excel and the objective is that this message doesn't appear in the exported file.
    Do you know if this is possible? If yes please tell me how to do it.
    Regards,
    Ana

    Hi,
    Thanks for your answer.
    I will explain my issue a little bit further.
    I'm working in BI 7 and I create a web template that contains five queries and a button to export all the queries results to an excel file.
    So when executing the query in the portal, depending on the selection criteria inserted some of the queries show the message "No data available" and using the button to export to excel the generated file include that message too. It would be preferable to delete the message in the web and in the excel file, but we need to replace at least in the excel file.
    I don't know if this is possible with some script so if you have some export script example please post it here.   
    If there is some way that when no records exists return zero I think that with a formula I can hide the result but I don't know how to get the 0 value....
    If you can help in some way I would be very grateful.
    Regards,
    Ana

  • SQL*Plus report: hide accept value in report

    HI all,
    I have created an SQL Report of an APEX-Application. The output is stored in a HTML file.
    All works fine but one think I want to hide in the HTML report.
    I try to describe what the problem is.
    I prompt the user to put in the application_id of the apex application:
                           accept v_application_Id char prompt 'Appliaction-ID:'
    In the HTML file the following output is shown:
    Report created on:
    25-Jun-2013, 10:06:04
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    Workspace
    WORKSPACE
    APPLICATION_ID
    APPLICATION_NAME
    ALIAS
    OWNER
    Q0Q0AUFTRAGSVERWALTUNG
    680
    Q0Q0AUFTRAGSVERWALTUNG
    F680317
    Q0Q0AUFTRAGSVERWALTUNG_ADMIN
    How can I hide the two lines
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    from the report?
    I have searched  this forum and toke a look into the documentation but I have nothing found.
    Could anyone please help me?
    Oracle 11g R2
    This is the SQL script what I run in SQL*Plus.
    -- start script
    accept v_application_Id char prompt 'Appliaction-ID:'
    spool C:\a\APEX.html
    set termout off
    SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus APEX-Report</title> -
    <STYLE TYPE=’TEXT/CSS’><!--BODY {bgcolor: ffffaa background: ffffc6} --></STYLE>"
    clear break
    clear buffer
    clear compute
    clear column
    clear sql
    set feedback off
    set serveroutput on
    -- Report Header
    ttitle left ' ' skip 1
    select TO_CHAR(sysdate,'dd-Mon-yyyy, hh24:mm:ss')  "Report created on:"
    from dual;
    -- Workspace
    ttitle left col 15 '<font face="Arial" size="+2" color="#0000FF">Workspace</font>' skip 1
    set linesize 300
    set pagesize 500
    set serveroutput on
    column workspace format a35
    column application_id format 99999999
    column application_name format a35
    column alias format a35
    column owner format a35
         select
             WORKSPACE,
             APPLICATION_ID ,
             APPLICATION_NAME,
             ALIAS,
             OWNER
         from apex_applications
         where application_id = &&v_application_id;
    ttitle off
         select
             APPLICATION_GROUP,
             APPLICATION_GROUP_ID,
             HOME_LINK,
             PAGE_TEMPLATE,
             ERROR_PAGE_TEMPLATE
         from apex_applications
         where application_id = &&v_application_id;
    set termout on
    set markup html off head '' body '' entmap off spool off pre off
    set feedback on
    set linesize 80
    set pagesize 50
    ttitle off
    set termout on
    set serveroutput off
    spool off
    set echo on
    -- End Script
    best regards
    ben
    Oracle 11g R2

    Hi, Ben,
    The SQL*Plus command to stop those messages is
    SET VERIFY OFF
    Put this command anywhere before the first use of a substitution variable, e.g. before the SPOOL command.
    Those "OLD" and "NEW" messages will stay suppressed until you either end the SQL*Plus session, or issue a SET VERIFY ON command.
    If you use SQL*Plus often, then, when you have a few minutes, look up the SET command in the SQL*Plus manual,
    SET System Variable Summary
    and read a little about each option.  You probably won't remember everything, but you probably will remember what kinds of things can be controlled by the SET command, and have a better idea of where to start looking in the future when you have a different problem.

  • Disable/Hide the Refresh Button in Child report

    Hi All,
    Our Environment is BOXI-R2;
    We have a Master Report calling a Child Report (based on Open Document);
    Our requirement is to hide the" Refresh Button "in the child report Layout
    we tried using "hideRefresh=true"
    but the child report is not responding to the above clause
    Help us in this,
    if this is a BUG in XI R2, let us know the Service Pack details
    Thanks

    Joe , Thanks for your Inputs..
    our master report has the aggregated Measure , when the user clicks on this , it has to open a child report (with paramters from master report).
    We are aware of customizing "viewer.js " file (under BO install home) with "refreshDocIcon = null".
    But is this the only solution to hide the refresh button in the child report ?
    SInce its already a PRODUCTION environment, our customer won't allow to change the standard settings of the product.
    Thanks

  • How to hide the information box in Jave script if the IR report is no data?

    dear all:
    if the IR report desn't catch the data . the system show "Essbase Query :No rows retried" message . we have to click the "OK" buttion to continue it . but if my report is runing by JAVA script , the message shows it too. i want to hide the message box the program go ahead. how to do it ?
    Regards.
    Tony

    I remembered having this issue with OLAPQuery. Have you tried CubeQuery?

Maybe you are looking for