ALV Settings--- Coloumn Selection

Hi Experts,
I have an ALV .
But in the Settings of ALV, only the Display Tab is Visible. I also want the second tab
ie. Coloumn Selection  to be displayed in ALv settings.
Kindly tell me how to do it.
Thanks in Advance....
Best Regards,
Sahil

Hi Sahil
the method IF_SALV_WD_STD_FUNCTIONS~SET_COLUMN_SELECTION_ALLOWED  of class CL_SALV_WD_CONFIG_TABLE is available for hide and show of coloumn selection tab.
data:
    l_VALUE type ref to Cl_Salv_Wd_Config_Table.
l_value->IF_SALV_WD_STD_FUNCTIONS~SET_COLUMN_SELECTION_ALLOWED( ABAP_TRUE ).
Regards
Naresh
Edited by: Naresh Kumar Malik on Nov 7, 2008 5:54 AM

Similar Messages

  • Get Selections From ALV on Multiple Selection Mode

    Hi,
    How can i get values of selected rows from ALV that has selection '0..n' (multiple selection) ?
    Can somebody help me pls?
    Thanks.

    Hi Nurullah,
    Steps to make multiple rows selectable in ALV:
    1) Create the selection property of the node that you are binding to the DATA node as o..n
    2) Un-check the, "Initialization Lead Selection" checkbox for the node which you are using to bind to the DATA node
    3) In the WDDOINIT method specify the ALV's selection mode as MULTI_NO_LEAD. It is important that you set the selection mode to MULTI_NO_LEAD or else in the end you would be capturing 1 row lesser than the total number of rows the user has selected. This is because 1 of the rows would have the LeadSelection property & our logic wouldnt be reading the data for that row. Check the example code fragment as shown below:
    DATA lo_value TYPE REF TO cl_salv_wd_config_table.
      lo_value = lo_interfacecontroller->get_model( ).
      CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
        EXPORTING
          value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.
    Steps to get the multiple rows selected by the user
    In order to get the multiple rows which were selected by the user you will just have to call the get_selected_elements method of if_wd_context_node. So as you can see its no different from how you would get the multiple rows selected by the user in a table ui element. First get the reference of the node which you have used to bind to the ALV & then call this method on it. Check the example code fragment below:
    METHOD get_selected_rows .
      DATA: temp TYPE string.
      DATA: lr_node TYPE REF TO if_wd_context_node,
                wa_temp  TYPE REF TO if_wd_context_element,
                ls_node1 TYPE wd_this->element_node_flighttab,
                lt_node1 TYPE wd_this->elements_node_flighttab.
      lr_node = wd_context->get_child_node( name = 'NODE_FLIGHTTAB' ).
    " This would now contain the references of all the selected rows
      lt_temp = lr_node->get_selected_elements( ).
        LOOP AT lt_temp INTO wa_temp.
    " Use the references to get the exact row data
          CALL METHOD wa_temp->get_static_attributes
            IMPORTING
              static_attributes = ls_node1.
          APPEND ls_node1 TO lt_node1.
          CLEAR ls_node1.
        ENDLOOP.
    ENDMETHOD.
    Hope this helps resolve your problem.
    Regards,
    Uday

  • Return from ALV  Grid to Selection screen

    hi,
    I want to go back from ALV grid to selection screen.
    I am using the following code:
    WHEN 'BACK'.
    CALL METHOD grid1->refresh_table_display.
    CALL METHOD grid1->free.
    CALL METHOD custom_container1->free.
    CALL SELECTION-SCREEN 1000.
    it is working,but when i press BACK button from selection screen to program it is showing ERROR IN FLUSH 4 Error.
    Also I tried with method FLUSH
    WHEN 'BACK'.
    CALL METHOD grid1->refresh_table_display.
    CALL METHOD grid1->free.
    CALL METHOD custom_container1->free.
    CALL METHOD cl_gui_cfw=>flush.
    it's still showing same Error.
    Please help on this.
    Regards,
    Sankar

    Hi,
    My grid name is grid1.
    I tried with :
    DATA grid1 TYPE REF TO cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = grid1.
    CALL METHOD grid1->check_changed_data.
    CALL METHOD grid1->refresh_table_display.
    LEAVE TO SCREEN 0.
    Even, I tried with declaring another grid : grid2
    DATA grid1 TYPE REF TO cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    e_grid = grid1.
    CALL METHOD grid1->check_changed_data.
    CALL METHOD grid1->refresh_table_display.
    LEAVE TO SCREEN 0.
    In both cases, I am getting the following Error : OBJECTS_OBJREF_NOT_ASSIGNED

  • HT4623 I have a Gen 4 Ipod Touch, it is still running with IOS 4. When i go to my settings and select General there is no Software Update button to choose from. How do i update my Ipod to the new IOS system?

    I have a Gen 4 Ipod Touch, it is still running with IOS 4. When i go to my settings and select <General> there is no <Software Update> button to choose from. How do i update my Ipod to the new IOS system?

    You have to hook it up to a computer and update it to ios 5 and then there will be a "software update" button.

  • Run alv report without selection screen in background

    Hello Every body,
    i programmed a ALV Report without selection screen, and i want to create a job for this alv report.
    Any help?
    Thank u.
    Ouail.

    Hi Steve,
    Can you tell me where i have to put your code?
    this is my abap code:
    START-OF-SELECTION.
       p_filref = '\\SAPSERVER\f\SAFT\ivat\FI_Extract_1000_20140709_102346_910.XML'.
       PERFORM copy_from_xml_to_itab TABLES it_ref_file
                                     ref_xml_data
                                     USING p_filref.
    **Begin Extraction File
       SUBMIT ZZ_FI_IVAT_EXTRACTOR
       WITH p_bukrs EQ '1000'
       WITH p_gjahr EQ '1998'
       WITH filepath EQ '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
       WITH cldata eq space
       AND RETURN.
       DATA: FILE_TABLE  TYPE TABLE OF SDOKPATH,
       DIR_TABLE  TYPE TABLE OF SDOKPATH.
       CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
         EXPORTING
           DIRECTORY  = '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
           FILTER     = '*.*'
         TABLES
           FILE_TABLE = FILE_TABLE
           DIR_TABLE  = DIR_TABLE
         EXCEPTIONS
           CNTL_ERROR = 1
           OTHERS     = 2.
       IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
       "get file name
       LOOP AT FILE_TABLE INTO p_filref.
       ENDLOOP.
       CONCATENATE '\\SAPSERVER\f\SAFT\iVAT_Extractie\' p_filref INTO path.
       PERFORM copy_from_xml_to_itab TABLES t_ext_file
                                     ext_xml_data
                                     USING path.
       PERFORM fill_xml_tab_in .
       perform build_fieldcatalog.
       PERFORM compare_data_ref_ext.
       PERFORM send_email.
       perform display_alv_report.
       PERFORM delete_extraction_file.
    in the perform copy_from_xml_to_itab TABLES it_ref_file......, i use this code:
       CREATE OBJECT gcl_xml.
    *Upload XML File
       CALL METHOD gcl_xml->import_from_file
         EXPORTING
           filename = p_filref
         RECEIVING
           retcode  = gv_subrc.
       IF gv_subrc = 0.
         CALL METHOD gcl_xml->render_2_xstring
           IMPORTING
             retcode = gv_subrc
             stream  = gv_xml_string
             size    = gv_size.
         IF gv_subrc = 0.
           REFRESH gt_xml_data[].
    * Convert XML to internal table
           CALL FUNCTION 'SMUM_XML_PARSE'
             EXPORTING
               xml_input = gv_xml_string
             TABLES
               xml_table = gt_xml_data
               return    = gt_return.
         ENDIF.
       ENDIF.

  • Unable to set the column values in Standard alv settings

    Hi,
    In the ALV displays settings  screen, I can set any number as "number of columns displayed", press "apply"  it remains 8 columns that are visible.
    Prevousely its working fine, last two days back i added  two fields in that AlV table. after that i am unable to change column values in ALV settings.
    Can any one tell me how to resolve this issue.
    Regards,
    Dhananjaya

    Adding fields should not affect the settings normally.. is your program fully activated and you have not mentioend any settings explicitly in your code rite?

  • ALV Settings (e.g. SORT): How can I reload a view that contains settings

    Hi,
    I have saved ALV Settings in a view. After I read out the (editable) ALV, I goto backend and then update ALV by BIND_TABLE. After this ALV update, my ALV settings are lost. Therefore I am looking for a possiblity to reload / restore the ALV settings during runtime that I have saved while using the ALV. Hence, I am looking for something like GET_CURRENT_SETTINGS and SET_CURRENT_SETTINGS.
    Does anyone know?
    Many thanks

    Hi,
    I am not shure whether there is a misunderstanding. I try to explain again:
    - I use edatable ALV
    - I run my WD Application and use my ALV
    - I use the Settings Link of ALV and define some SORT rules for the ALV
    - I SAVE this rules under a view name (this view is like a variant, but this view is
    not an WD view in SE80 !)
    - After I call backend, this ALV rules (like SORT) are lost because we are refeshing th ALV
    => How can I store the ALV settings and restore it?
    If I save & restore this ALV settings to the context, I would like to know with which methods I can read out these ALV settings.

  • TS1398 My iphone5 ios6 goes on 3g although there is a wifi network available! When i go into settings, and select the network, it connects again! Is it software? Or hardware?

    My iphone5 ios6 goes on 3g although there is a wifi network available! When i go into settings, and select the network, it connects again! Is it software? Or hardware?

    this was happening with my phone the other night. i just went into the phone to settings > general > reset > reset all settings
    You can also try rebooting the router

  • Display alv grids in selection screen based on the user event

    Hi All,
    I am workign on displaying ALV in same selection screen.I am able to display the ALV in selection screen.
    But i have 2 buttons in my selection screen 'Create' and 'change'.
    When i click on create i need  with some type of data and when i click on 'change' my alv grid another type of data.Ex: if i click on crate mara data should be dispalyed when i click on change makt table data should be dispalyed and also i have user defined buttons are in my grids.
    So i have used 2 containers to dispaly to different data.I am able to display the perfectly but the problem is first time when i click on create the grid is displaying when i click on change button  the create alv grid is displaying down and change data is dispalying up.
    I need only one alv grid at a time.Can anybody please let me know how can i do this.
    Thanks,
    Taragini

    Hello,
    Also I would suggest if it is relevant data maintain in one interntal table and show/hide based on condition
    through fieldcatalog (NO_OUT) parameter.
    Thanks

  • My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please

    My iPad screen is totally frozen with a message box asking me to go to photo stream settings but when either option (ignore or settings) is selected nothing happens. I can't turn off the device either because the screen won't respond. Help please

    Try a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • I accidentally selected "do note allow" Pages access to my photos. Now I can't insert photos. Message says go to settings and select Privacy - but there is no such option in the Settings. Help!

    I accidentally selected "do note allow" Pages access to my photos. Now I can't insert photos. Message says go to settings and select Privacy - but there is no such option in the Settings. Help! I want to be able to insert images in documents I create in the Pages app.

    Ok - I figured it out myself as soon as I posted this question. I went to my IPad settings - not the Settings in the Pages app. Problem fixed.

  • Apps do not have access to camera,microphone, anything. Went to settings and selected the app but the option to allow access to these things aren't there.

    Apps do not have access to camera,microphone, anything. Went to settings and selected the app but the option to allow access to these things aren't there.

    Did you go to Settings/Privacy and check the apps listed?

  • 'Erase All Content and Settings' i selected it and it's taking too long it's not even loading! Is it really tooks a several hours ? is there any problem how can i fix it. Please tell me

    'Erase All Content and Settings' i selected it and it's taking too long it's not even loading! Is it really tooks a several hours ? is there any problem how can i fix it. Please tell me

    Likewise bro... atleast mine has the Apple logo... and the circular thing... I saw this online and i'll be trying it ASAP... http://support.apple.com/kb/HT1808

  • Saving ALV settings in a Webdynpro for ABAP.

    Hi there,
    I would like to modify from code side the standard filter settings after user selection, i mean:
       i) User adds the filter fields it wants using ALV standard filter settings.
      ii) I add via code an additional field to the filter criteria selected by user.
    I have done that using if_salv_wd_filter~create_filter_rule ( ) but this only affects to the current filter applied and, what i would like to do is adding my new entry to the saved filter rules (i do not want to add my new filter rule to the current ones, i want to add it to the saved ones).
    The functionality i want to achieve is to display a filter header in the ALV (for a field that has not been specified by the user) when the WDA is opened with an initial saved setting profile.
    Is this possible? any suggestion regarding modification of saved filter profiles?
    Thanks in advance
    Edited by: Vicente Ángel López Romero on May 27, 2008 4:02 PM
    Edited by: Vicente Ángel López Romero on May 27, 2008 4:04 PM

    Hi Durga,
    I am afraid that these can not help me :(. The link you have provided refers to information regarding ALV Grid, and i think that there are many model design diferences between ALV Grid and the Abap Webdypro one.
    Anyway i think that the filter settings that can be modified via source code are always related to "on air" filter criteria and i want to modify the "persistent" saved settings profiles.
    All in all, it is a very interesting document in order to implement commons dynpros with ALVs, thanks for the info :).
    Regards.

  • ALV layout in selection criteria

    Dear Friends,
    I have created a webdynpro report with 2 views. 1st view contains all selction criteria and 2nd view contains ALV.
    I have created couple of layouts for ALV using settings option. By default we will have [Standard View]. Every thing working fine.
    Now my user is requesting layout also in the selection screen as dropdown and whatever layout is selected in selection criteria should apply to ALV in 2nd screen.
    Please let me know how can we do this. Thank you.

    Hi vijay,
    Just do one thing create an attribute DES of NUMC2 in the COMPONENT CONTEXT node  and
    drag that to local view.
    Create dropdown box and fill with the four or five designs that are there
    in the layout the values you can get from domain of WDUI_GROUP_DESIGN.
    Now what you do is bind this attribute to the design property in the layout.
    When user select say STANDARD, this particular string will be stored in the attribute DES.
    Now in the view two drag that node which contains that attribute DES to local context
    and bind that to DESIGN property of that table.
    Now DES contains the one user selected int he initial screen and now set that to the view two,
    I hope it gives you idea.
    Regards and Best wishes.

Maybe you are looking for

  • Screen EXITS and Badi's for MM01 t.code

    Hai Guru's, I hav a requirment of add a aditional tab in the standard Master 'MM01' T.code. can any one please help me with all possible Screen exits or badi's. Also i want to know weather selecting correct exits depend on the position where we want

  • Condition Tab tables in Sales order

    Hi, Can anybody tell the tables of Condition Tab of Sales Order bec. i req. the pice per each and conditon types to be populated in the Smart Form. Thanks in advance

  • Is there a way to block robocalls?

    Is there a way to block robocalls?

  • I'm trying to get Final Cut Pro X for a film class but can't buy it.

      I got a $100 rebate and I have a credit card to use, but I can't get the app.  It tells me I have insufficient credit.  Can anybody help?

  • Re: Events Based Scheduling

    Hi Eddie, I tried to create the jobs in the similar way. When creating the second job, I am getting the following error report - Error report: ORA-00600: internal error code, arguments: [opibnd1], [], [], [], [], [], [], [], [], [], [], [] ORA-06512: