ALV  hide  column when no values

Hi friends,
      Is it possible to hide a column in ALV  when there is no value for that column
Thanks
Chandra

Yes by using the FM ALV_OPTIMIZE_OUTPUT you can acheive it
ALV_OPTIMIZE_OUTPUT   :  Suppress Blank Columns in ALV Output
Execute SE37 enter FM name
Check the Function Module Documentation for more details

Similar Messages

  • [ALV] false total when zero values in column

    Hi all,
    I got the following problem with an ALV.
    When using a layout wiht a total line, if a column got null values, it sometimes doubles the line and display a uncorrect line with value "0,000" and a second line containing the right value.
    This causes problem when exporting datas to excel...
    Would someone knows how to solve that issue?
    Thanks by advance.
    AR.

    up
    Hi fellows,
    I'me still trying to solve that issue...
    here is a screen shot of the fact I described above
    <a href="http://img232.imageshack.us/my.php?image=sanstitregx5.jpg">http://img232.imageshack.us/my.php?image=sanstitregx5.jpg</a>
    I really thank you for help.
    kind regards,
    R_A_R

  • ALV (hide column)

    Hi,
    Is there any method in ALV grid to hide a column with quantity and display only the subtotals along with the line items displayed.
    for example.
    customer
    a
    a(subtotal-22)
    b
    b
    b(subtotal-26)
    The quantity column is hidden.
    please send your suggestions,
    Rajesh.

    Hi ,
    as per my knowledge there is no such option to hide column, So what u can do is try to make use of SORT+FIELD MERGE Fms to get only Subtotals.
    check
    fcat-no_out =  'X'.---> not for display
    Regards
    Prabhu

  • Reorder or hide columns when exporting

    Hello,
    When woking with Reports and previewing it before sent to the client, may appear the desire to change the report before sanding.
    by ex, one of our customers says: "This would be a nice extension of the column hiding & reordering capability, and would help with customers' requests that their reports come with certain data "eliminated."
    I work mainly with the CrstalReports "ReportClass:ReportDocument" class.
    Well, is there a possibility to hide some columns (when exporting)? To reorder them?
    thanks.

    Hello,
    you could delete report fields and runtime without saving the report.
    I attach code below for CS in VS2005:
    //File Name:          CS__Delete_Field_inproc.sln
    //Created:            April 4, 2008
    //Author ID:          FLI
    //Purpose:            This C# .NET sample Windows application demonstrates
    //                              how to delete a dbfield from a report
    //                              using unmanaged RAS.
    // Note this is available without a dedicated RAS with SP2 for XI R2
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.ReportAppServer.ClientDoc;
    namespace CS_Delete_Field_inproc
        public partial class Form1 : Form
            // CR Declarations
            ReportDocument boReportDocument;
            ISCDReportClientDocument boReportClientDocument;
            CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject boReportObject;
            public Form1()
                InitializeComponent();
                //Create a new ReportDocument
                boReportDocument = new ReportDocument();
                // load the RPT file
                boReportDocument.Load("..
    DeleteField.rpt");
                //Access the ReportClientDocument in the ReportDocument (EROM bridge)
                boReportClientDocument = boReportDocument.ReportClientDocument;
                // show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button1_Click(object sender, EventArgs e)
                //find the object in the report
                boReportObject = (CrystalDecisions.ReportAppServer.ReportDefModel.ReportObject) boReportClientDocument.ReportDefController.ReportDefinition.FindObjectByName("City1");;
                //Delete the object from the report
                boReportClientDocument.ReportDefController.ReportObjectController.Remove(boReportObject);
                //show in reportviewer
                crystalReportViewer1.ReportSource = boReportDocument;
            private void button2_Click(object sender, EventArgs e)
                //save report with new title
                boReportDocument.SaveAs("Test.rpt");

  • How to hide rows when no value entered automatically

    is there a way in conditional formatting where i can hise a row of information when no value is entered against that row , simlar to a macro in excel?
    thanks fred 69

    Fred,
    Yes, you can use the Reorganize Panel to show only rows that meet certain criteria. I would think that you could find a way to use that feature to accomplish your goal.
    Jerry

  • In ColumnChart, how to stop displaying small column for zero value?

    I'm trying to create a ColumnChart that does not display a column when the value is zero. The chart currently looks like this:
    This is a stacked column chart with red values representing Faults and green values representing Throughput. Each hour has an explicit value of zero for Faults. I don't want to see any red lines when the value is zero. Is there any way to accomplish this?
    My code looks like this:
    <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var simpleStats:ArrayCollection = new ArrayCollection([
            {Hour:"0:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"1:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"2:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"3:00", Throughput:5, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0},    
            {Hour:"4:00", Throughput:0, ThroughputThreshold:2000, Faults:0, MaxResponseTime:450, AvgResponseTime:200, MinResponseTime:180,
                 AuthenticationAcceptance:50, AuthenticationRejection:0, AuthorizationAcceptance:50, AuthorizationRejection:0}
      ]]></mx:Script>
                                     <mx:ColumnChart id="trafficChart"
                                        dataProvider="{simpleStats}"
                                        showDataTips="true" width="500" height="100%" seriesFilters="[]"
                                        type="stacked">
                                        <mx:verticalAxis>
                                            <mx:LinearAxis title="Messages" id="a1"/>
                                        </mx:verticalAxis>                                   
                                        <mx:horizontalAxis>
                                           <mx:CategoryAxis
                                                   id="TrafficTimeAxis"
                                                dataProvider="{simpleStats}"
                                                categoryField="Hour"
                                                />
                                        </mx:horizontalAxis>
                                        <mx:horizontalAxisRenderers>
                                            <mx:AxisRenderer axis="{TrafficTimeAxis}" canDropLabels="true"/>                                       
                                        </mx:horizontalAxisRenderers>                                            
                                        <mx:series>                                                                         
                                           <mx:ColumnSeries
                                                yField="Faults"
                                                displayName="Faults"
                                                fill="{sc2}"
                                                stroke="{s2}"
                                                 minHeight="0">
                                           </mx:ColumnSeries>                                                                                                          
                                           <mx:ColumnSeries
                                                yField="Throughput"
                                                displayName="Throughput"
                                                fill="{sc1}"
                                                stroke="{s1}"
                                                minHeight="0">
                                            </mx:ColumnSeries>                                      
                                        </mx:series>
                                     </mx:ColumnChart>

    Answered my own question!!
    The solution is to set the stroke for the ColumnSeries to {noStroke}, which I defined like this:
        <mx:Stroke id="noStroke" color="0xFFFFFF" weight="0"/>
    Note that if you define {noStroke} without a color property, black is used by default, which means that those columns that do appear show up in black stroke outline.
    If there's a more elegant solution to the problem, please let me know...

  • Visual studio reports for crm (fetch xml) - trying to hide textbox based on value returned

    I have a report running from a custom entity in Dynamics CRM online using fetch XML and all is well apart from trying to hide a text box which shows an expression.
    The expression refers to a boolian value from CRM (two options - Approved and Unapproved), what 'I want is the textbox to show the contents if the value = Unapproved but hide it if = Approved.
    I have gone into the text box properties and selected visibility - show/hide based on an expression.
    Here's what I have which isn't working.
    =IIf(Fields!dsm_dispatchapproval.Value like"Approved")

    Hi duddit2,
    Based on your description, you want to use an expression to control the visibility of a textbox. Show the textbox when the value of dsm_dispatchapproval field is “Unapproved”, hide it when the value of dsm_dispatchapproval field is “Approved”.
    To achieve this goal, please refer to the following expressions:
    =Fields!dsm_dispatchapproval.Value like "Approved"
    OR
    =IIF(Fields!dsm_dispatchapproval.Value ="Approved",true,false)
    For more information about Expression Examples (Report Builder and SSRS), please see:
    http://msdn.microsoft.com/en-IN/library/ms157328.aspx
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Hiding a column when displaying an alv

    Hi Gurus,
    Shortly I have these things :
    1) A node with some attributes like customer_no, customer_name, status etc.
    2) A view which contains an element(viewcontainerelement) and this displays the node.
    This node is in CONTEXT of my view and in componentcontroller.
    Now i want to hide some attributes(columns) when displaying this alv. Can anybody help me?
    Thanks..

    Hi,
    When i write that code, it gives me an error message :
    data: lr_salv_column type ref to cl_salv_wd_column,
    lr_salv_table type ref to cl_salv_wd_config_table.
    lr_salv_column = lr_salv_table-if_salv_wd_column_settings~get_column( 'm_no' ).
    lr_salv_column->set_visible( if_wdl_core=>visibility_blank ).
    Error message:
    "Class "CL_MAINV_CTR" does not contain an interface
    "LR_SALV_TABLE-IF_SALV_WD_COLUMN_SETTINGS".      "     
    "Mainv" is the name of my view.
    I am new at WDA, please give me detailed information.
    Thanks
    Edited by: Adil Gündüz on Sep 22, 2008 11:13 AM

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

  • ALV List only 80 Columns when runinning as background job

    Hello Guys,
    I have a Problem with an ALV List.
    We use the FM REUSE_ALV_HIERSEQ_LIST_DISPLAY for a Document Journal.
    When I run it in foreground it works fine. But when I view the spool in background the list makes a break at excactly 80 signs, but the line size should be about 120.
    In the report the Line-Size is set correctly, even the print parameters seem to be ok. We are running it with X_65_255.
    I saw that there are some SAP Notes to this topic, but on our release (SAP_BASIS 700) the notes are already implemented.
    Has anyone a solution to this topic?
    Thanks and regards
    Roland

    Try this.
    [ALV List only 80 Columns when running in background job|https://forums.sdn.sap.com/click.jspa?searchID=25735042&messageID=5686003]

  • How to start a workflow when a value in specific column is changed?

    HI !! 
    I would like that  my workflow will run only if a value on a specific colunm will change.
    is there a way to do it without using a third colunm ?
    thank you !
    nikita.

    Hi,
    According to your post, my understanding is that you wanted to start a workflow when a value in specific column is changed.
    When you create workflow, if you check the “start the workflow automatically when an item is changed”, the workflow will be started automatically once the item is edited.
    In the other word, no matter which column we changed, the the workflow will be started automatically.
    As a workaround, we can add condition or action to make the workflow excute the next step only if the value in specific column is changed.
    There are two options to achieve it.
    Use the “Wait for Field Change in Current Item" action”. If you add the action at the first,  the workflow will excute the next step until the column is chaned to the specific value.
       2. User the “If any value equals to value” condition. If you add the condition at the first, the workflow will excute the next step if the condition is satisfied.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is it possible to adjust the size of the columnes when send alv by mail  ?

    is it possible to adjust the size of the columns when send alv by mail  ?
    i send alv ( list ) by mail  , work fine but all the columns are small and in the
    same size , can i adjust it in the mail   ?
    how to do it in regular alv i know it  .
    LS_FCAT-OUTPUTLEN = 29 .

    is it possible to adjust the size of the columns when send alv by mail  ?
    i send alv ( list ) by mail  , work fine but all the columns are small and in the
    same size , can i adjust it in the mail   ?
    how to do it in regular alv i know it  .
    LS_FCAT-OUTPUTLEN = 29 .

  • In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar

    Hi Guys,
    In column Chart when Y values are grater than y linear axis maximum it doesnt show the Bar.But i want show the bar upto the max limit of y linear axis without changing the max limit.
    Consider following example:
    Y values are 80 90 200 300
    and following are the output :
    Left:When i am not setting maximum property of linear axis.
    Right :When i am setting maximum property of linear axis to 200.
    In right 4th bar is not visible bcoz value for that bar is 300 which is excedding  maxium.But i want the 4th bar to appear same as 3rd bar.
    How i can do this?
    Thanks in advance.

    Are you going to show the bar going past the maximum value?
    If not, then you should change the Y value when entered into the array to the maximum value allowed. i.e.
    if(itemYValue > maxAllowedValue) {
         itemYValue = maxAllowedValue;
    Where maxAllowedValue is a variable you set on the application to control the maximum value for the chart.
    This is assuming that you are loading the values into an Array before updating the chart dataprovider with that array.

  • Can we hide column in a query depending upon the variable selected

    Hi all,
    let us say my report have 10 column.
    now i am giving user option to select the values (let us say 'a' or 'b')
    columns must be displayed depending upon the value selected by user ..
    for example if user has selected 'a' then first five columns should be displayed..and if user has selected 'b' last five column should be displayed..(it will be OK even if we can hide the columns depending upon the selection )
    Is it possible in BEx...please let me know

    I did it sometime back. A bit complicated process.
    Create an infoobject, manually enter the values "keyfig1" and "keyfig2".
    Include this infoobject in the filters and restrict it using a "ready for input" variable.
    Now create two formula variables.
    Write a customer exit such that when you select "keyfig1", first formula variable's value should be set to 1 and other one's to 0.
    Then in the query create two calculated key figures, multiply both with the formula variable. Also supress column (all active value == 0).
    Then it will show the key figure which you have selected.
    Pravender

  • Hide Column in Cross Tab

    Hi,
    depending on my previous thread (RTF Cross Table like Analyzer I tried now to hide one if the columns, when the total of is is 0.
    I used the <if@cell:sum (current-group()/SUM_X.MYVALUE)>0?> ...
    and <if@column:sum (current-group()/SUM_X.MYVALUE)>0?> to hide the column and header. The Header cell is no more shown, but for the values it doesn't work. It only hides the values but not the entire column.
    any suggestions what to do?
    Thanks
    chrissy

    Hi ,
    May be this will help u out ... pls go through that.
    XML Publisher allows you to specify formatting conditions as the row-level of a
    table. Examples of row-level formatting are:
    • Highlighting a row when the data meets a certain threshold.
    • Alternating background colors of rows to ease readability of reports.
    • Showing only rows that meet a specific condition.
    Conditionally Displaying a Row
    To display only rows that meet a certain condition, insert the <?if:condition?> <?end if?>
    tags at the beginning and end of the row, within the for-each tags for the group.
    Default Text Entry Form Field Help Text Description
    for-each SALE <?for-each:SALE?> Opens the for-each loop to repeat the
    data belonging to the SALE group.
    if big <?if:SALES>5000?> If statement to display the row only
    if the element SALES has a value
    greater than 5000.
    INDUSTRY <?INDUSTRY?> Data field
    YEAR <?YEAR?> Data field
    MONTH <?MONTH?> Data field
    SALES end if <?end if?> Closes the if statement.
    end SALE <?end for-each?>
    ratnesh

Maybe you are looking for

  • Error while doing export

    Hi , I encountered the error "EXP-00056: ORACLE error 24801 encountered" while doing a schema export. This in turn show the error "ORA-24801: illegal parameter value in OCI lob function". MY oracle version is 9.2.0.7.0      OS version is "SunOS essdb

  • Issues w/ JDK - j2sdk-1_4_2_12-windows-i586-p

    Hi, For some time, I'd been running with the following JDK on my box - j2sdk1.4.0. I also use j2sdk1.4.2_07 on our production box, with no ramifications. However, I downloaded & installed the above JDK - j2sdk-1_4_2_12 - thinking I needed to update m

  • Import and Management of Video Files by Date Still Broken

    It really is very disappointing that after 3 versions, and 110 bug fixes, basic things like importing or managing a video file by date is still completely broken. Even more troubling, is that for someone who uses LR3 this is a very obvious problem, a

  • Clearing Variant Grouping by 30 days

    Hi All, could any one help me out in clearing variant configuration, I want to select open items which are greater than 30 days old with Main Transaction and Sub Transaction. can we use special characters in grouping rule like > 30? Thanks in Advance

  • New buttons in XD01

    I need to add to new command buttons in standard transaction XD01. These new buttons will be used by the user to start specific transaction from the XD01. Is it possible? I'm using release 4.6. Thanks in advance, Stefano.