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

Similar Messages

  • Hiding few columns before displaying alv grid output

    Hi All,
    I struck up at hiding few columns before displaying alv output. I have used used FM: REUSE_ALV_GRID_DISPLAY. By using this i am displaying 29 fields to the output. But before displaying the output i want to hide few columns among them, and also those fields have to be avialable for further selection by the user by using layout.
    Kindly help me in this,
    Regards
    Srinivas K

    Hi,
    In field catalog set NO_OUT='X' for all the columns you want to hide. They will be available when changing layout for ALV, so you can show them at any time.
    Regards
    Marcin

  • Need to remove space for a field when displayed in ALV Report

    Hi,
    I have material field of length 18, but the content is only 10 char. I need to remove the extra space when it is displayed on ALV Report.
    Is there any option in ALV field catalogue

    use statement condense.
    condense zmatnr.
    also giv output lenth of alv column as 10.

  • No column text displayed in alv when i use dynamic internal table

    Hi friends,
    when I use dynamic internal table to display the fields in ALV formant, field column text was not displaying ,
    total row of column text was blank.
    can u sujjest me in this...
    with regards,
    prasad.

    Hi
    That depends on how you've filled the catalog table, here u need to insert the description for the labels (short, medium and long) and the description for the layout variant management.
    So u make sure to fill the fields like
    SCRTEXT_L
    SCRTEXT_M
    SCRTEXT_S
    REPTEXT
    Max

  • Hiding menu column when printing

    Using Aqualogic Interaction 6.1
    I'm trying to have a few pages with 2 columns on the screen, (navigation on left and content on right.) But when the user hits print I want the content column take up the entire page.
    using css I can easily hide the menu portlets but when I print I still have blank whitespace where the menu used to be.
    looking at the source of the page it seems the portal adds a spacer image 250 wide at the bottom of the column. Is there any way to remove this? If it had a class tag I could hide it just like the portlets but it doesn't.
    I've added the following code to my header portlet:
    {style type="text/css" media="screen"}{!--
    --}{style} 
    {style type="text/css" media="print"}{!--
    .columnOne     { width: 0; }
    #pt-portlet-9422 {display:none; BACKGROUND-COLOR: #FFFFFF;}
    #pt-portlet-9423 {display:none; BACKGROUND-COLOR: #FFFFFF;}
    --}{style}but it doesn't seem to work when I print the left column is blank but it still takes up abotu a third of the page.
    the spacer image I see in the source that I think is causeing the problem is:
    {table cellpadding="0" cellspacing="0" width="100%" border="0" summary="Portlet Column Formatter Table."}{tr}{td colspan="1"}{img src="http://portal.realtorlink.ca/imageserver/plumtree/portal/public/img/sp.gif" alt="" border="0" align="absmiddle" height="1" width="250"/}{td}
    {tr}
    {table}
    {!--End Portlet Column 0--}BTW I've replaced all < with { and all > with } in my code because image and comment tags are displayed as html and some other tags are properly converted to & l t ; and & g t ; in this newsgroup... might want to fix that too.

    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

  • Hiding a column when using Apex_item.hidden

    Hi All,
    I am using Apex v4.1.1.
    Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).
    Many Thanks.

    xarg-Xrc wrote:
    Have a tabular form I created manually with few APEX_ITEM.HIDDEN fields. The fields are not rendering (as it hidden) however I am left with a blank columns. Could someone guide me how I can make those columns invisible (without getting rid of them as they contain values I use in my Javascript).Don't select the hidden items as separate columns. Concatenate the hidden items with a visible item in one column:
    select
           apex_item.hidden(...)
        || apex_item.hidden(...)
        || apex_item.hidden(...)
        || col1 as col1
      , col2
      , col3
    ...

  • Changing the Column Header and Hiding the Column dynamically???

    Hi friends..
    I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
    I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
    I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.

    toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
    To dynamically change column headers without javascript, check this blog out...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
    I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
    P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
    Waited too long to publish this... Madan beat me to it, so there is some overlap here...
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    Edited by: LC143 on Oct 27, 2008 9:21 AM

  • Data not getting displayed in ALV grid when run in background

    Hello experts!
    Could anyone help me out please?
    I need to display an ALV grid in the background. My requirements are as follows:
    I first display an ALV grid in the foreground based on some input parameters. The user selects a few records for updating it and clicks on the "update" button. On the click of this button another report must be called and here the ALV report is displayed in the background.I am using "reuse_alv_grid_display" to display the grid.
    I am using Import/Export to get the selected rows in my called report. When i execute this report in the foreground i get the ALV grid along with the data. But when i execute it in the background, i get only the grid with the fieldnames and not the data when i check in SP01.
    Thanks in advance!
    Smitha

    Hi Smitha,
    If you are able to see in SP01 and only see the output layout or "List contains no data" shows clealry that the data is not getting passed in the called program or the data is not being used correctly in the called program.
    Cheers
    VJ

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

  • Hiding a column in the ALV in a webdynpro component(standrad one)

    Hi,
       i have an requirement of hiding a column inside a ALV output of a web dynpro component which is a standrad one. please help me finding the way to do the same.
    thanks,
    selvakumar M.

    data: l_ref_usage type ref to if_wd_component_usage.
    l_ref_usage = wd_this->wd_CpUse_Alv( ).
    if l_ref_usage->has_active_component( ) = abap_false.
      l_ref_usage->create_component( ).
    endif.
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Alv( ).
      data:
        l_VALUE type ref to Cl_Salv_Wd_Config_Table.
      l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
    data: lr_column type ref to CL_SALV_WD_COLUMN.
    lr_column =
    l_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'CARRID' ).
    lr_column->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
    Abhi

  • Sub Column to be displayed in ALV

    Hi All,
      The requirement is to display an ALV report with sub columns under a column.
      Can anyone guide me on how to display the sub columns under a particular column using ALV?
      Appreciate your help.
    Thanks and Regards
    Krunal Raichura

    Hi,
      we can'd do this by using  Alv no other go, if u want show the sub columns go by Classical reporting.

  • I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    I want to print iCal with Mondays in the left hand side column. My calendar prints with Tuesday in the left hand column even though it displays Mondays in the left hand column when in normal use.

    Thank you for your advice, it works.  I have struggled for hours to find the solution I am very grateful.

  • Customize Which Column to Display from UDT in UDF when Linked to UDT

    Problem:
    I have a UDF that links to a UDT. The problem is that when I select the UDF, it only displayes the columns from the UDT Code & Name. And for our purposes Code & Name are meaningless data points.
    Question:
    Can I choose which column is displayed from the UDT in the UDF?
    Please see the attached image. THANKS!

    Hi,
    This is SAP B1 standard behavior, But you can change name as terminal code. Other wise you can  detach the UDT from UDF and then assign one FMS in the UDF for serach terminal code instead of code and name.
    Hope this will work.
    Regards
    Sridharan

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

  • How to Display Columns when Query is returning No Columns?

    I am Creating a Load Status Dash Board and I want to Dispaly Columns when Load is Not Started  too. As of Now My query is returning no Results which needs to Modified and Display Columns and Status Not Started to it? Could you please suggest any solutions to it? Thanks

    Hi,
    if you like to show a message instead of NO RESULTS . then you could easily get it by changing the custom text in the properties
    if you want it in a table format . you need to have a table with some data according to the reporting requirement
    thanks

Maybe you are looking for