Hide empty column

hello,
I am looking for the easiest way to hide empty columns in
'REUSE_ALV_GRID_DISPLAY'.
I know i can work my way through the field catalog.
I am just curious if there is a parameter that helps me to achieve this goal.
thank you!
Werner

Hi,  you need to handle this manually when building your field catalog.  For example.
data: is_not_initial type c.
is_not_initial = space.
loop at itab where not fld1 is initial..
     is_not_initial = 'X'. 
     exit.
endloop.
if is_not_initial = space.
  fc-no_out = 'X'.
endif.
Regards,
Rich Heilman

Similar Messages

  • How to Hide Empty Column In SAP Query (SQ01)

    I was crated a report in sq01 based on business requirements , but there are some fields without any content , in sq01 if you select one of output fields in the right side of the screen in the left side you can see  "List Fields" T in the list fields there is a check box , the name is "Only display field if <> 0 " , but when i check it, it doesn't work  , guys is there any one to help me to eliminate column without content , in the result of sap query (sq01) ??

    Please give reference (or hyperlink) to 10 Useful Tips on Infoset Queries (original document)
    Regards,
    Raymond

  • How to hide/suppress empty columns in pivot tables

    In a pivot table, is there any way to do something like "suppress missing data" to make an entire column hidden only if it is empty? I have a situation where I can't hide an entire measure because the measure has values for another dimension, but I would like to hide the column that is empty. See the example below. I would like to hide the combination of Dim1 and Measure 2, and the combination of Dim 2 and Measure 3. I can't hide all columns with Dim1 and/or Dim2, or Measure2 and/or Measure3. Is there any way to hide just the column with the empty combination? Thanks.
    Dim1 Measure1 Always populated
    Dim2 Measure1 Always populated
    Dim1 Measure2 Always null
    Dim2 Measure2 Always populated
    Dim1 Measure3 Always populated
    Dim2 Measure3 Always null

    Bhawna -
    That made a difference, but it still needs some work. The IfNull() function picked up every value in the columns that I wanted to hide and changed them to zero. The conditional formatting that you suggested hid the content in those columns from the HTML. However, there ended up being several issues:
    1) IfNull() picked up other null values that happened to be in the resultset, so the conditional formatting was applied to more than intended. I could correct that by changing the data value in the physical database columns for the entire pivot table columns that I want hidden, but then I have to work around having bogus values in those intersections. Still, that is a possible workaround.
    2) The column headers for the columns that I want to disappear did not go away. When I applied CSS display:none, it shifts the pivot table cells to the left, so a lot of the data ends up under the wrong column headings.
    3) CSS display:none only hides the content from screen readers. When I view the pivot table on the dashboard and print it to a PDF, the data in the columns that I want to disappear are back.
    That still seems like it's a long ways from "suppress missing data" for the entire column. Thanks for your suggestion.
    Daniel

  • Hide or Delete Empty columns in dynamic internal table

    Hi,
                                I am having an dynamic internal table which contains more than 100 columns.
             I need to delete empty column from that table, can any one help this.

    Hello,
    If you are talking about ALV then you can just the the table for empty columns before populating fieldcataloge and hide the columns.
    If your query is still not answered please provide a detail requirement.

  • Hiding empty columns in ALV

    Hi all,
    I want to hide some columns in ALV which are empty on display when calling
    cl_gui_alv_grid->set_table_for_first_display
    That is to say the internaltable will contain empty columns.
    I know that using the "no_out" attribute of field catalog we can hide columns.
    But the question is how to find these columns which are empty - should I have to loop through the itab to find it out OR
    Can we set it in ALV LAYOUT or field catalog attributes so that it wont display empty columns.
    any help is appreciated....
    Thanks
    P
    Edited by: pazzuzu on Mar 12, 2010 5:14 PM

    Hi,
    If i understood your question correctly,
    The you can try this
    TYPE-POOLS:slis,abap.
    TYPES:BEGIN OF ty,
          f1 TYPE c,
          f2 TYPE c,
          f3 TYPE c,
          f4 TYPE c,
          END OF ty.
    DATA:it TYPE TABLE OF ty,
         wa TYPE ty,
         wa_field TYPE slis_fieldcat_alv,
         i_fieldcat TYPE TABLE OF slis_fieldcat_alv,
         i_details TYPE abap_compdescr_tab,
         wa_comp TYPE abap_compdescr,
         ref_descr TYPE REF TO cl_abap_structdescr,
         lv_field TYPE abap_compname.
    FIELD-SYMBOLS:<fs>,
                  <fs1>.
    ref_descr ?= cl_abap_typedescr=>describe_by_data( wa ).
    i_details[] = ref_descr->components[].
    wa-f1 = 'A'.
    wa-f3 = 'C'.
    APPEND wa TO it.
    wa-f1 = 'X'.
    wa-f3 = 'Y'.
    APPEND wa TO it.
    if it[] is not initial.
    LOOP AT i_details INTO wa_comp.
      ASSIGN wa_comp-name TO <fs>.
      SORT it BY (<fs>) DESCENDING.
      CONCATENATE 'WA' '-' <fs> INTO lv_field .
      ASSIGN (lv_field) TO <fs1>.
        READ TABLE it INTO wa INDEX 1 transporting (<fs>).
      IF sy-subrc = 0 AND <fs1> IS NOT INITIAL.
        wa_field-fieldname = wa_comp-name.
        wa_field-seltext_m = wa_comp-name.
        APPEND wa_field TO i_fieldcat.
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        it_fieldcat        = i_fieldcat[]
      TABLES
        t_outtab           = it[].
    endif.

  • Hide the Column Or Remove the extra data

    Hi ALL ,
    I have developed using the development procedure from Simon_Hou and it works perfectly fine . Thank you Simon_Hou
    http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices .
    Now then the requirement was to add Total to the developed report that's also solved.
    http://social.msdn.microsoft.com/Forums/office/en-US/3536c818-c7f0-4757-953c-003d19921311/grand-total-for-matrix-based-report?forum=sqlreportingservices
    Now an  issue is there extra column that get's generated dynamically ... For that i tried
    =IIF(ReportItems!Textbox2.value is nothing, true, false . 
    The expression does work but the
    Total  row cells values get repositioned to one cell to the right from it's original position .
    Now am fine with the extra empty column only issue  if the tablix contain only a single row or two rows of Data  then that empty column shows numeric data which is not required. Please refer to the below figure for
    clarity . I just want that the
    extra column is blank its doesn't show extra numeric data on a single or 2 rows or if it can be hidden without affecting the original position of the total cell .
     please kindly help because just due to this the reports are not going for production deployment .
    Thanks
    Priya

    Hi Priya,
    According to your description, you want to hide the blank column which is dynamically generated in matrix. Now when you put an expression to hide the column, only the cells inside of group are hidden but the cell in total row is not hidden. So it looks to
    be repositioned into one cell to the right. Is my understanding correct?
    In this scenario, we also already encountered this issue when we tested in our local environment. It seems to be an issue of internal implement for visibility control in Reporting Services. Now I am trying to involve someone more familiar with Reporting
    Services for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.  
    Thank you for your understanding and support.
    Best Regards,
    Simon Hou

  • SSRS 2005 - Dynamically control the width of columns in Matrix report or Hide any column

    Hi All,
    I just want to hide some column without having white space in Matrix report in SSRS 2005. Although I am aware of that perhaps this feature is not available on SSRS 2005. So, I just want to know if we can handle the width of column dynamically(using expressions)
    in matrix report?
    Please help. Thanks in Advance.
    Regards
    Kumud

    Hi Kumud,
    Based on my test, SSRS is not support column dynamically width. It has property “CanGrow” of text box. If we configure the property to True, it will wraps to next line if needed. In SSRS 2008, we can hide some columns without white space. If possible, I
    recommend you update your SSRS 2005 to SSRS 2008.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e6043f1-c458-4540-be59-d37b02feab8a/dynamic-column-width-for-a-report?forum=sqlreportingservices
    Alternatively, I recommend you that submit a wish to the Microsoft Connect at
    https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to show or Hide Generic Column in a regular report

    Hi All,
    I have created report based on "SQL query (pl/sql function body returning sql query). It returns columns based on some conditions. I have total 60 generic columns like (COL1,COL2....COL60) but it returns 18 or 20 columns based on my conditions, how can I hide the columns that I don't needed. My column heading is based on function return by ':' separated. My function returns number of columns also. Is there any we I can show only those columns which contains data. My report is exactly similar to the default "SQL query (pl/sql function body returning sql query). I didn't find any logic how they are doing this show and hide. I appreciate any ones help.
    Thanks,

    Hi there,
    Somehow you need to find out how many columns your dynamic select will return (by what you said it seems that your procedure returns this information). Then store that number in a hidden page item, say Pnn_COUNT.
    Then, for the 19th and 20th columns in the report add these conditions:
    Column 19: :Pnn_COUNT >= 19
    Column 20: :Pnn_COUNT >= 20
    I hope this helps.
    Luis

  • How to hide Actions Column in Table

    Hi All,
    I have a simple requirement: I am showing a table (items)
    - the "Actions" column (Column with Buttons to Edit and Delete a particualr row) must not be show -> no changes to the table are allowed (I need to hide/ disable this column)
    How can I hide this column od the table?
    I have found out that the field is called thtmlb_oca and that htere is a getter method get-thtmlb_oca. However, the method does not contain coding and I do not know how to HIDE this field/ column...
    Please help me here..
    Thanks, Johannes

    Hi Johannes,
    To remove the column completely,
    you need to comment this line in the method GET_TABLE_LINE_SAMPLE of the Table View Context node class.
    TYPES: BEGIN OF line,
    *  thtmlb_oca  type  crm_thtmlb_one_click_action.
      INCLUDE TYPE xxxx.
      TYPES:  END OF line.
    Disabling can be controlled in the method GET_OCA_T_TABLE of the same class by putting code to delete the button.
    LOOP AT  rt_actions ASSIGNING <fs_actions>.
          <fs_actions>-active  = abap_false.
        ENDLOOP.
    Regards,
    Masood Imrani S.

  • Hide a column in one view, but show in other

    Hi all.
    I need to hide a column on "Table" view, but column needs to show up on "Pivot table".
    I know we can hide it on pivot ( exclude It ) and show on table, but I want to know if reverse is possible.
    This is needed because I am doing a view selector for writeback. And I dont want to display all the columns on writeback table view. But it needs to be there on Pivot table.
    Please let me know if it is possible.
    Thanks.
    Vinay

    Yes we can do that.
    Check on the "Hide" in the column format tab of the column that you need to display in the table lay out.
    Now dupliate the same view and in the pivot table column intially you will not see the column displayed.
    Now in the properties check on "hidden" in the "format headings" and you wont see it still and now uncheck the"hidden" and you shoud be able to see the column displayed in the pivot view
    In this way you will have the column hidden in the table view and displayed in the pivot table.
    Hope it helps
    Prash

  • Hide a column in one table view but show it in another

    I need to hide a column in one tables view but show it in another table view in the same report. Is this possible?
    Any help on this is appreciated.
    Edited by: VNC on Jan 11, 2010 9:26 AM

    Hi VNC,
    If you're crafty with javascript, you could probably write a script that would set the CSS property DISPLAY to NONE to hide the column in the table view you didn't want but leave it there in the view you did want.
    -Joe

  • How to Hide a column in OBIEE 11g

    Hi,
    I am trying to hide a column of presantation layer table in OBIEE 11g. But it is not working.
    I am doing the follwoing.
    Open the permission tab of the column.
    Given no access to Everyone.
    Given No access the user/Application Role.
    When i go to web, the column is getting displayed in the table list. But, when i select the column and press the result button, it is not giving the result.
    It means, by doing the above steps it is restricting the data but visibility of column is already there.
    Same way it works for OBIEE 10g. Could you please let me know this feature has been removed from 11g or if it is still there then how we can achieved that.
    Thanks in Advance
    Niraj

    Hi Niraj,
    It's a bug in OBIEE 11.1.1.5.
    Bug 12352010: RESTRICTED COLUMNS SHOULD NOT SHOW IN SUBJECT AREA
    It is fixed in the version 11.1.1.6.
    Regards,
    Sandeep
    Edited by: Sandeep Saini on Mar 28, 2012 12:16 AM

  • How to remove or hide Name column while upload document in document library

    Hi All,
    In below print screen the first column Name* which always show when I'm going to upload the file which I don't want. It will be really help full if you provide some solution how to hide this column while uploading the document. Its really confusing the users
    when they are going to upload the document in document library.
    I already tested below steps. After clicking Document Content Type every column is clickable except "Name" column. 
    Go to Document Library settings -> Advance settings -> Allow management of content types -> check the box
    Now go back to Document Library settings -> Under content types -> click Document content type -> select the column -> Hide this column
    Every column is clickable except "Name" column so unable to resolve this issue. Please help.

    Hi,
    Thanks for posting your issue, Kindly browse the below URL to fix this issue
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c7d0e0d5-084b-4d49-88fe-b411a70042bd/how-to-hide-the-name-column-in-the-document-library?forum=sharepointdevelopmentlegacy
    http://spstipsutilitypack.codeplex.com/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How do I write an excel file and check what the next empty column would be to put the data in?

    I have somehow managed to write the portion of labview that prompts the user for a name. It checks a file to see if they are a new user or not and then assigns a number if they are. The program then acquires data that is to be put into a spreadsheet. Each subject will have ten trials which will have three columns. How do I get the information into the columns and then check each time to see which column it should go into (i.e. the next empty column for that subject). I have attached what I have thus far. I wrote this a long time ago and haven't touched it for some time so everything is a blur.
    Attachments:
    promptForSwimmerName.vi ‏76 KB
    Swimmers.dat ‏1 KB
    Main__dummy.vi ‏28 KB

    To perform those operations in excel you will use ActiveX. I will attach some examples of using Excel in LabVIEW and you can use these to do exactly what you want.
    These three examples show how to manipulate properties, write to excel and read from excel. Let me know if there is more I can do.
    Allan S.
    Applications Engineering
    National Instruments
    Attachments:
    BorderExample.vi ‏102 KB
    ActiveX_write_Rows_To_Excel2000.vi ‏90 KB
    ReadExample.vi ‏80 KB

  • How to Hide a column in a report @run time

    Hello Can you help me please
    I need to hide some columns in a report when you run it , I dont want it to be displayed.
    Here is the scenerio.
    I have a column called (QTY) and the other (Price). Now I have a new one where I take
    (Qty*Price) and the result is in a column called(qtyprice)now I only want to display of the qtyp*price at the end of the report.
    can you help please
    Thank you
    alpha

    Their are so many ways to do this..
    1.simplest thing is just delete that field from your layout so it will not apperar.
    2.go to layout and right click on that field and go to property and just click hide so that field will be hide while running the report.
    3. when you create a layout at that time just deselect that fields so it will not appeare in report while it running.

Maybe you are looking for