Recover hidden columns in ALV

Hi all,
i would like to know if it's possible to recover wich columns are hidden in an alv. i mean, if i hide one column of an alv and then, i press one button on the status toolbar, how can i know which column i have just hidden?
best regards,
nekane.

hi ,
     just u wont to hidden the column in alv grid  means ,
  in screen create one push-button like protect.
   WHEN 'PROTECT'.
  PERFORM PROTECT.
FORM PROTECT .
DATA:from_idx TYPE i,
     to_idx TYPE i,
     index TYPE i.
  CALL METHOD editor->get_selection_pos
     IMPORTING
       from_line = from_idx
       to_line   = to_idx
     EXCEPTIONS
       error_cntl_call_method = 1.
  IF to_idx > from_idx.
    to_idx = to_idx - 1.
  ENDIF.
  CALL METHOD editor->protect_lines
    EXPORTING
      from_line = from_idx
      to_line   = to_idx.
ENDFORM.                    " PROTECT
  this is the code to follow to hidden lines and u cant delete the line also once u protect it .
regards,
chaitanya

Similar Messages

  • Total, Subtotal of a hidden column in an ALV grid

    I have a requirement for an ALV grid where I have to use a custom formula for a column's total and subtotal.
    This value is a function of another column which is hidden (No_out = 'X').
    I am unable to access the total and subtotal of this hidden column . I am able to access this only when I unhide the column in the field catalog.
    THis is how I access the total and subtotal of the GRID. I use oops ALV of the class CL_GUI_ALV_GIRD.
    call method o_grid->get_subtotals
        importing
          ep_collect00 = total
          ep_collect01 = subto.
      assign total->* to <ftotal>.
      assign subto->* to <fsubto>.
    I thought I would manipulate <ftotal>-mycolumn and <fsubto>-mycolumn . But both these are functions of a hidden column
    and <ftotal>-hiddencolumn and <fsubto>-hiddencolumn is always empty unless I unhide them. I cannot display these columns to users as they are just logical columns of a dynamic internal table I have built.  :-s

    HI,i have the same issue, how did you solve it?
    Regards.

  • Maximum Columns in ALV in Display and Hidden?

    Hi,
    Do anyone know how many number of columns that able to show in ALV report and also how many columns that ALV able to hide it?
    As did i search and I found:
    Re: columns in alv
    but some said max is 90 and other max 254 columns?
    Is there any document on this ALV function on max of columns in hide and displaying?
    Cheers,
    Aish

    hi,
    there is no such documnet.
    but the maximun no.of.columns that an alv report can show is 90.
    \[removed by moderator\]
    Reddy.
    Edited by: Jan Stallkamp on Sep 3, 2008 6:17 PM

  • Columns in ALV Grid

    Hallo,
    do you know if it is possible to prevent a column to be hidden in an ALV Grid?
    Thanks,
             Mick

    try these
    w
    a_fieldcat-no_out = 'X'.  or
    wa_fieldcat-tech = 'X'.

  • Hideing a Column in ALV Table which is Displaying the POWL Query data

    Hi SDNers,
    I want to hide a column of ALV Table which is displaying my POWL Query data in it and hideing should be based on the Role as well. i.e few of the role the column shoudl be hidden and few of the roles should have the Column visible.
    waiting for the Valueble Answers.
    Thanks & Regards,
    Govindu

    Hai Kris,
        I took help from ur link and i declared a global attribute request_number.
    and i created an event handler ON_ALV_INSERT and did the follwing coding for giving default value wen ever am inserting new row.
    FIELD-SYMBOLS: <wa_row> LIKE LINE OF r_param->t_inserted_rows.
      DATA bill_details TYPE REF TO zdom_bill_detail.
      LOOP AT r_param->t_inserted_rows ASSIGNING <wa_row>.
        bill_details ?= <wa_row>-r_value.
        IF bill_details->REQ_NUMBER IS INITIAL.
      DATA lo_nd_bill_detail TYPE REF TO if_wd_context_node.
      DATA lo_el_bill_detail TYPE REF TO if_wd_context_element.
      DATA ls_bill_detail TYPE wd_this->Element_bill_detail.
    navigate from <CONTEXT> to <BILL_DETAIL> via lead selection
      lo_nd_bill_detail = wd_context->get_child_node( name = wd_this->wdctx_bill_detail ).
    lo_el_bill_detail = lo_nd_bill_detail->get_element( index = <wa_row>-index ).
          lo_el_bill_detail->set_attribute(
            EXPORTING
              name  = 'REQ_NUMBER'
              value = wd_comp_controller->request_number
    Wen am  setting the value of wd_comp_controller->request_number to my context attribute am getting NULL object ref error.
    lo_el_bill_detail->set_attribute(
        name =  `REQ_NUMBER`
        value = wd_comp_controller->request_number ).
    Pls give some suggestions,
    Thanks in Advance,
    Nalla.B

  • Hidden Cells in ALV Output?

    Hi Experts,
    I didn't have idea about how to hidden Cells in ALV Grid Outpot.
    Please give me any idea. and See the attached picture. It is help to Exact output.
    Regards,
    Thrimu A

    Hi,
    It is due to summation i.e sub total standard functionality.
    When you set sub total for a column, the alv gets divided vertically into groups. All the cells of the column on which sub total is applied are displayed blank and a yellow cell under each group is displayed which has the total for those group of rows.
    It is a standard functionality of ALV grid.
    You cannot hide values of a column and display it blank in ALV. To achieve that you will have to do it manually :
    add a empty column to the alv internal table and fieldcat with same heading as of the column to be displayed blank.
    set fieldcat field NO_OUT = 'X' for the column that has to be hidden.
    Regards,
    Ashish

  • How to hide selection column from alv grid

    hi
    i want to hide selection columns form alv grid.. how can i do it.. Is there any fm for that?
    regards
    palak

    Hi,
    the ALV Grid Control allows you to directly hide key columns with NO_OUT (field KEY_SEL is not used).
    Field name:NO_OUT
    Comp. type:LVC_NOOUT
    Dtype(length):Char(1)
    SPACE, 'X'
    If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.
    Regards,
    Neenu.
    Edited by: Neenu Jose on Oct 21, 2008 10:46 AM

  • How can i suppress columns in ALV ?? Will reward points.

    Hello Gurus, how can i suppress column in ALV when i`m using the transparent table:
    CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZIANEXE'
            is_layout        = wa_layout
            is_variant       = wa_variant
            i_save           = 'U'
            IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          CHANGING
            it_outtab        = itab[]
            it_fieldcatalog  = fieldcat.
    Please help.

    in the fieldcatalog you are providing there is a field NO_OUT use this.
    Loop over internal table and check fieldname. If fieldname = column you want to hide, NO_OUT = 'X'.
    Edited by: Micky Oestreich on May 8, 2008 12:06 PM

  • Apex_application.g_f01 picking up value of hidden column

    i have a report with a apex_item.checkbox using the id 1 and a hidden column. for some reason my pl/sql code that loops through apex_application.g_f01 picks up the value of the hidden column as well. why is this? is this a known bug?
    i managed to get my code working by using id 2.

    report code
    select ename,
    apex_item.checkbox(1,ename,null) sel,
    'RED' COLOUR
    from emp
    order by ename
    process
    FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    //i insert into a test table to view results
    END LOOP;
    the above works fine until i change the COLOUR column from a standard column to a hidden column. Then for some reason the apex_application.g_f01 then includes the values of all ticked boxes plus all the values in the COLOUR column.

  • Excel Upload with Hidden Column

    Hi Gurus-
    Can you upload Excel file with hidden column and get the function to read values in hidden column? If yes, could you please guide me how?
    I am using ALSM_EXCEL_TO_INTERNAL_TABLE
    Any help will be highly appreciated.
    Thanks in advance!

    Hi,
    Have a look at program RSDEMO01 (available in the controls examples of the workbench). It demonstrates an OLE connection to Excel.
    To know which excel objects, methods and properties to use it is a good idea to use the excel macro recorder - just do what you want your program to do and then translate the resulting VB code to ABAP OLE.
    For the import of the clipboard data you can use CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT. In the result table, iirc, there  is one line for each imported line and within the line the cell values are separated by tab. So there is some work left - it might be a good idea t import the data column by column.
    It has been some time when I did this for a former client of me - so unfortunately I do not have the code any more.
    Regards, Gerd Rother

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • Hidden field in ALV

    Hi ,
    I need to know which all fields are hidden in the ALV in background (as the user will enter the layout) ...i have used REUSE_ALV_LIST_LAYOUT_INFO_SET but this doesn't work in the background..
    Regards
    Gunjan

    hi
    good
    i dont think there is any such function module to solve your problem..
    thanks
    mrutyun^

  • How to display subtotals in separate column in alv report?

    hi,
    I am displayed the subtotals  for QUantity field BDMNG in Reuse_alv_grid_display  in the same column.
    but I want to display subtotal in separate column.
    How to display subtotals in separate column in alv report?
    thanks&regards.
    samba.k

    Hi
    As far as i know you can't do this,the option you have is to create one more column (subtotal) and populate it by manual calculation at every subtotal (not alv subtotal but yours) .
    Best Regards
    Yossi

  • How do I get a hidden column to show in a library?

    I am having an odd behavior on one of my site columns, and am hoping someone might be able to shed some light on this for me. I have just built a content type hub. Also created some site columns....I have one particular column (which is a choice type), that
    is hidden at the parent content type level. I see this hidden column each time i view the settings of any content type that inherits from the parent content type. However, when I add these child content types to a library, I no longer see the hidden column.
    I don't understand why this is the case. 
    Can anyone shed some light on this for me? Is this the way it is designed to work in SharePoint?
    Update: When I view the inheriting content type from the hub, I see the hidden column. But if I view the same content type from within my site, I do not see the hidden column. Is this a publishing issue? Or is this by design in SharePoint?

    That definitely does not sound like design.  Have you tried editing the content type on the library level NOT the hub level?  You should be able to set the hidden status to display within the Content Type section on the library.
    If that doesn't work, it'll be worth looking at something like SharePoint Manager to open up the column and inspect its properties.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Mulitple Line column headers for a column in ALV using Web Dynpro for ABAP

    Hi WD4A Gurus,
           I have requirement to display the header name in multiple lines for a single column using ALV. How to achieve this, do I need to do some custom code? Please help me with sample code.
    Example:
    existing column name :
                Name   |  Date (mm/dd/yyyy) | Amount
    required column name:
                Name   |    Date               | Amount
    (mm/dd/yyyy)
    Thanks
    Ketan

    Displaying header in multiple lines is not possible in alv
    Regards
    Tamil

Maybe you are looking for

  • Error while Loggin into Database

    Hello, As i am entering my username & password m getting an Error.. " ORA-01033: ORACLE initialization or shutdown in progress " Then i found few suggestions related to this error .. & some steps to rectify this.. & the Result i got is .. C:\>sqlplus

  • How to get my color ink to print in color

    i cannot get my printer in color, when i hit print, i clink on color but all i get in black, and its  a new cartridge 

  • How can I email photos from iphoto '11?

    I am having trouble emailing photos from iphoto '11.  When I put the recipients address in, it disappears when I click "send" and I get some message about "key chain" and iphoto wants to use my confidential information????    What I ended up doing is

  • How can I change a title in I books

    I have a ton of PDF files in iBooks. The All have very vague titles. How can I retitle and organize? I'm on ipad2

  • ClassCastException when using ADFBindingFilter

    Hi, I have mixed JSF/ADFBC and JSP/UIX/BC4J application. When I first enter some non-jsf page, the page is rendered correctly, but on the bottom there is an exception: java.lang.ClassCastException: oracle.adf.share.DefaultContext      at oracle.adf.s