Disable row-marking in OO ALV

Hello,
I have an OO ALV where I can select all the rows of the list, but I want to disable the row-marking in some lines. For example, in a list with 10 rows, I want that the last 5 rows were not selectable, but the first 5 rows have to be selectable.
Is it possible?
Thank you very much!

Hi,
Then you could probably do this with the stylefname attribute of the layout catalog.
For desired rows, set the value cl_gui_alv_grid=>mc_style_disabled to the style cell (added to your output table) for each field in a row... That should work, however, never tried
I'll try and give an example once I get a system...
Kr,
m.
added: no sorry just realised this won't probably prevent the user to select any row... That's probably not possible without some hacking OO operations,...;)
Hope you'll have some more info on the subject, I'm also interested now
Give you feedback anyway if I found something...
Edited by: Manu D'Haeyer on Sep 29, 2011 7:49 PM

Similar Messages

  • ALV - problem to disable row selection (SET_ROW_SELECTABLE)

    Hi,
    I'm using an (non editable) ALV with a supply function to display details to each line.
    I have to buttons "New" and "Modify" to insert a new line or to modify an existing row (in the details).
    This works fine.
    Now what I want to do is, if the user press one of the buttons "New" or "Modify", I want to disable the row selection of the ALV, so the user can't select another row during inserting or editing.
    For this, I've implemented in the WDDOMODIFYVIEW of the view the coding to enable or disable the row selection
    lo_value->if_salv_wd_table_settings~SET_ROW_SELECTABLE( ABAP_TRUE ).
    * or
    lo_value->if_salv_wd_table_settings~SET_ROW_SELECTABLE( ABAP_FALSE ).
    In case of "New" this works fine. The row selection is disabled.
    But not in case of "Modify".
    There is a strange behaviour:
    The row selection is not completely disabled. It looks like you can select rows, but if you select another row, it is automatically jumping to the first row and also the details is updated to the first row.
    The different between "New" and "Modify" is, that in "New", I create a new element in the ALV.
    Than it works correct. If I do the same in "Modify", I have the same correct behavior.
    But of course, I don't want to insert a new row in my "modify" mode.
    So maybe it has something todo with set lead selection?
    Maybe I do something wrong or that is a problem in the abap release. But I can't find anything in OSS.
    Thanks in advance!
    Andreas

    Hi,
    I would like to propose another approach here,
    I assume that ALV is in read only mode.
    1. User select the row and press the "Modify" button. As soon as user press the modify button "disable" the Modify and New button.
    2. Once the user is finish with the changes and press save. Enable the new and modify button.
    3. Without saving if user select anyother row then raise the "Save" confirmation popup with Yes, NO and Cancel button.
    4. If User press the New button then add new row and disable the "New" and "Modify button". Follow the Step 2 and 3 for this case also.
    I hope this will give you some idea.
    Thanks,
    Rahul

  • ALV disable row selection

    Hai gurus,
    In my ALV output I want to disable the left most button (Row selector) for some reasons Dynamically.
    The user should not select the entire row for some condition.
    loop at itab.
         If itab-field1 eq 'AA'.
             Disable row for selection.
         endif.
    endloop.
    Thanks in advance .....

    Hi Shridhar,
    I think it is difficult to have selection boxes on some condition.
    We can have only one type of selection mode for alv.
    Kindly refer following link for your solution
    http://help.sap.com/saphelp_47x200/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/frameset.htm
    I have tried it in many ways but not able to have its solution.
    Kindly share it with all of us if you get the solution.
    Hope it helps,
    Pratik Vora
    Edited by: Pratik Vora on Feb 23, 2009 11:23 AM

  • How to Disable Row Detail in Sales Module

    Dear Experts,
    how to disable row detail option in sales module. how it is posible. we are using SAP Business One 2007. PL42
    Thanx

    AOA Rahil,
    I have just solved this problem, I was also facing the same one
    I am using B1DE, I have handled this on before menu click when open the form
    <B1Listener(BoEventTypes.et_MENU_CLICK, true)>  _
            Public Overridable Function OnBeforeMenuClick(ByVal pVal As MenuEvent) As Boolean
                'GENERATED CODE
                Me.LoadForm()
    1***            Dim Form As Form = B1Connections.theAppl.Forms.ActiveForm
       2 ***        Form.Settings.EnableRowFormat = False
                Return false
            End Function
    1--Capture the current form
    2--Disable Row Detail Form
    It worked for me
    Best Regards,
    Umer Nasim Mirza
    03004003633

  • Next row in JTable (skip disabled rows)

    When I press the down button on my keyboard how can I move to the next available row. It should skip all disabled rows.
    My subclass of JTable looks like this:
    public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
    if (list[rowIndex].isEnabled()) {
    super.changeSelection(rowIndex, columnIndex, toggle, extend);
    All the disabled rows is not selectable. Right now it just stop when the next row is disabled.

    Well, I think the right way to it would be something like..
    public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
         // Get to the right row..
         while (!list[rowIndex].isEnabled())
              ++rowIndex;
              rowIndex %= list.length;
         // Change selection to the row found.
         super.changeSelection(rowIndex, columnIndex, toggle, extend);
    The last one is good asuming there must be at least one enabled row, otherwise you should handle this case also...

  • Mail Viewing Options Gone.  I need to DISABLE automatically marking a message as read!

    In Lion, the Mail Viewing options to disable automatically marking a viewed message as read are gone!  I absolutely NEED to disable automatically marking a viewed message as read!  How can I disable this if the option isn't present?  Is there a workaround?

    Ok...I take part of what I said back. It was MailActOn by InDev which allowed me to not automatically have a message marked as read.  See http://indev.ca/MailActOn.html for more info.
    Apparently the version I had loaded wasn't compatible with Lion Mail.app.  Since updating it, I know have this feature again.

  • ERP Integrator: Data Rows Marked as Invalid

    Hi, I executed data write-back rules with "Import from source" option and met this warning:
    "ERPI Process Start, Process ID: 19
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: /tmp/aif_19.log
    Jython Version: 2.1
    Java Platform: java1.4.2_14
    COMM Writeback Period Processing - Insert Periods into Process Details - START
    COMM Writeback Period Processing - Insert Periods into Process Details - END
    COMM GL Writeback Load Data - Load TDATASEGW - START
    Import Data from Source for Period 'Apr-11'
    Total Data Rows Imported from Source: 13
    COMM GL Writeback Load Data - Load TDATASEGW - END
    COMM Update Data - Update TDATASEG_T/TDATASEGW - START
    Processing Mappings for Column 'UD1'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD2'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD3'
    Data Rows Updated by 'DEFAULT' (LIKE): 13
    Processing Mappings for Column 'UD4'
    Data Rows Updated by 'DEFAULT' (LIKE): 0
    Processing Mappings for Column 'ATTR1'
    Data Rows Updated by Account Type: 13
    Warning: Data rows with unmapped dimensions exist
    Data Rows Marked as Invalid: 13
    Warning: No data rows available for Export to Target
    Total Data Rows available for Export to Target: 0
    COMM Update Data - Update TDATASEG_T/TDATASEGW - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    ERPI Process End, Process ID: 19
    Staging rows are marked invalid, so data can't be write back to the Ebusiness database. I searched metalink but no luck. Please help!

    Am having similar issues. Please help
    ERPI Process Start, Process ID: 44
    ERPI Logging Level: DEBUG (5)
    ERPI Log File: C:\Users\hyperion\AppData\Local\Temp\/aif_44.log
    Jython Version: 2.1
    Java Platform: java1.4.2_08
    COMM Process Periods - Insert Periods - START
    COMM Process Periods - Insert Periods - END
    COMM Process Periods - Insert Process Details - START
    COMM Process Periods - Insert Process Details - END
    LKM EBS/FS Extract Type - Set Extract Type - START
    LKM EBS/FS Extract Type - Set Extract Type - END
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - START
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - END
    LKM EBS/FS Extract Delta Balances - Load Audit - START
    LKM EBS/FS Extract Delta Balances - Load Audit - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    LKM EBS/FS Extract Type - Set Extract Type - START
    LKM EBS/FS Extract Type - Set Extract Type - END
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - START
    LKM EBS/FS Extract Delta Balances - Delete Obsolete Rows - END
    LKM EBS/FS Extract Delta Balances - Load Audit - START
    LKM EBS/FS Extract Delta Balances - Load Audit - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    EBS/FS Load Data - Load TDATASEG_T - START
    Import Data from Source for Period 'Jan 1, 2013'
    Monetary Data Rows Imported from Source: 1750
    Total Data Rows Imported from Source: 1750
    EBS/FS Load Data - Load TDATASEG_T - END
    COMM Update Data - Update TDATASEG_T/TDATASEGW - START
    Warning: Data rows with zero balances exist
    Zero Balance Data Rows Deleted: 171
    Processing Mappings for Column 'ACCOUNT'
    Data Rows Updated by 'DEFAULT' (LIKE): 1579
    Processing Mappings for Column 'ENTITY'
    Data Rows Updated by 'Entity Rule' (LIKE): 1579
    Processing Mappings for Column 'UD1'
    Data Rows Updated by 'Version Rule' (LIKE): 1579
    Processing Mappings for Column 'UD2'
    Data Rows Updated by 'Ministry Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD3'
    Data Rows Updated by 'Location Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD4'
    Data Rows Updated by 'Section Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD5'
    Data Rows Updated by 'Fund Dataload Rule' (LIKE): 1579
    Processing Mappings for Column 'UD6'
    Data Rows Updated by 'Subsector Data load Rule' (LIKE): 1579
    Processing Mappings for Column 'UD7'
    Data Rows Updated by 'Program Dataload Rule' (LIKE): 1579
    Warning: Data rows with unmapped dimensions exist
    Data Rows Marked as Invalid: 1579
    Warning: No data rows available for Export to Target
    Total Data Rows available for Export to Target: 0
    COMM Update Data - Update TDATASEG_T/TDATASEGW - END
    COMM End Process Detail - Update Process Detail - START
    COMM End Process Detail - Update Process Detail - END
    EBS/FS Load Data - Load TDATASEG_T - START

  • Disable row which is i ckecked.........

    I have a report region.I want to disable row which is i ckecked in the check box after pressing the button.
    Thanks and regard,
    skud.

    Hi jo at euroclear,
    I would suggest you to use the check boxes, they provide a multiple choice and we can select more than one of them.
    Thanks,
    Vikrantt Singh

  • Unable to select any row(s) in table/ALV

    Hi ,
    I am having a problem while selecting a row in a table/ALV.
    I am displaying data in a table which is NOT set to 'Initialize lead selection' in the context.When it is displayed and I try to select a row the row does not get selected(highlighted) in the view.
    However,I am able to perform tasks on 'Onselect' event on the rows.Just that its not getting highlighted neither in table nor in ALV.
    What could be the reason for this ? I do not want the context element to be set as 'Initialize lead selection' as that would highlight the first line of the table when the view is rendered first time.
    Thanks for your help,
    Sandip.

    hi sandip,
    Try this method
    lo_table_sett  TYPE REF TO if_salv_wd_table_settings.
    lo_config_tab TYPE REF TO cl_salv_wd_config_table.
    lo_config_tab = lo_ref_interface_controller->get_model( ).
    lo_table_sett   ?= lo_config_tab.
    lo_table_sett ->SET_SELECTION_MODE( value ).
    value- '00' for auto
             '02' for single
             '04' for multi
             '06' for none
             '07'  for singleNolead
             '08' for multi Nolead
    Regards,
    janakiram

  • Disabling "Default layout setting" in ALV grid display

    Hello,
       We have a requirement where we need to disable layout default settings in ALV grid display.
       Only certain users should be able to save the report layout as default.
       We would be creating an authorization group for this and then based on the Authority check we would need to enable or disable Default layout save option.
      I found that using I_SAVE in the FM "REUSE_ALV_GRID_DISPLAY", we can either enable or disable layout save option.
      But our requirement is to disable Default layout save option based on the authority check.
      We will find this option next to User specific option when we save the report layout.
      Can anyone guide me on this?
      Thanks,
    Regards,
    Anid

    Hi Anid,
    First of all check if you can do this excluding the buttons from the ALV with the excluding tab. If not, here is the code for the ALV OO to exclude the buttons.
    FORM F_DISPLAY_ALV.
    * Layout
    PERFORM f_layout.
    * Exclude Buttons
    DATA:  gt_excl           TYPE ttb_button
    REFRESH gt_excl.
    * Append those you want to exclude. These are some of them. Check Class in SE24 -> Atributes of class cl_gui_alv_grid.
    APPEND: cl_gui_alv_grid=>mc_fc_loc_cut            TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_undo           TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_copy           TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_paste          TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_copy_row       TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_move_row       TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_delete_row     TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_insert_row     TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_append_row     TO gt_excl,
            cl_gui_alv_grid=>mc_fc_loc_paste_new_row  TO gt_excl,
            cl_gui_alv_grid=>mc_fc_to_office          TO gt_excl,
            cl_gui_alv_grid=>mc_fc_expcrdesig         TO gt_excl.
    CALL METHOD gv_alv_grid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding       = gt_excl[]
          is_layout                     = wa_layout_main
          is_variant                    = wa_variant
          i_save                        = 'A'
        CHANGING
          it_outtab                     = gt_alv[]
          it_fieldcatalog               = gt_fieldcat[]
          it_sort                       = gt_sort[].
    Edited by: Ernesto Caballero on Mar 11, 2010 5:59 PM
    Edited by: Ernesto Caballero on Mar 11, 2010 6:03 PM

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • HOW DO YOU DISABLE X-MARKS FROM POPPING UP AND SHUTTING DOWN PC HAVE TO RESTART TO GET IT TO WORK AGAIN

    X- MARKS COMES ON SCREEN AND IF I DO NOT CANCEL
    IT LOCKS UP MY PC AND THEN I HAVE RESTART MY PC TO
    GET TO WORK,ALL I WANT KNOW IS WHERE CAN FIND HOW TO DISABLE X-MARKS OR REMOVE IT FROM MY PC.
    THANKS

    no, u can't disable it. it is automatic.

  • ALV grid row mark

    How can I create an alv without creating it with edit mode? I only want to have the columns to mark the rows but without editing function.
    I don't find it in structure LVC_S_LAYO. At the moment I take
      gs_layout-edit = 'X'.
    but then I can edit all data, I only want to select with the row column, is that possible?

    Use:
    LVC_S_LAYO-SEL_MODE = 'A',
    You have to switch editing off, otherwise it may overwrite this setting.
    Then, to get what is selected use one of the methods:
    GET_SELECTED_CELLS
    GET_SELECTED_CELLS_ID
    GET_SELECTED_ROWS
    GET_SELECTED_COLUMNS
    Regards
    Marcin

  • Disabling certain rows in editable oo alv ?

    Hello Experts ,
                             I am having internal table of type z table. i am using oo alv to display data using this internal table. I am making my alv editable using field catalog. I want to keep  entire row non editable on the basis of one fields value. so how to do this? i dont want to define seperate 'types' in my program. is it possible?

    Hi Bhushan,
    there is no other way.
    1, Define structure ZTABLE_ALV is SE11 with fields
    field           type
    .INCLUDE        ZTABLE
    STYLES          LVC_T_STYL
    2. Define ALV data table and update table in your program with workareas
    data: xt_data   type table of ztable_alv.
    data: xt_updat  type table of ztable.
    data: xs_data   type ztable_alv.
    data: xs_updat  type ztable.
    3. Data selection directly into  data table
    SELECT * FROM ZTABLE
             INTO CORRESPONDING FIELDS OF TABLE xt_data
    WHERE...
    4. Loop at ALV data table and update STYLES table
    5. Show ALV DATA table in editable Grid
    6. Update (after button or something else).
    * Build update table
    loop     at  xt_data
           into  xs_data.
      move-corresponding xs_data to xs_updat.
      append xs_updat            to xt_updat.
    endloop.
    update ztable from  table xt_updat.
    That's alle

  • Disable individual check boxes in ALV

    Hi all,
    My requirement is that I have one check box against each row. User clicks on the check box then that row is selected and on clicking the push button, bapi is called.
    If result of bapi is success, I want to disable the check box for that particular row/rows. Can you please tell me how I can achieve that? I know how to disbale all the check boxes in the list but I dont know how to disable the individual check boxes.
    Thanks and regards,
    Ridhima

    For that you need to play with the EDITABLE feature of the ALV at the field level.
    Declare a field STYLE type LVC_T_STYL as a part of your internal table. Now, for each row, append the fields of that row to the STYLE column specifying whether it has to be editable or not. You can use the attributes cl_gui_alv_grid=>mc_style_enabled and cl_gui_alv_grid=>mc_style_disabled for this.
    You can look at these threads
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=473177
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=2469829
    https://forums.sdn.sap.com/click.jspa?searchID=524737&messageID=1947071
    Regards,
    Ravi
    Note - Please mark all the helpful answers
    Message was edited by:
            Ravikumar Allampallam

Maybe you are looking for

  • OS 10.3 does then doesn't work on my GS Lombard

    Here's hoping that I'm in the correct discussion group and that someone can tell me what is happening and how to fix the problem. This problem concerns my "old G3 Lombard" which has 512MB memory and a 400MHz processor. First let me say that at the pr

  • Updating the system has broken ssh-agent

    Hi everyone, I recently encountered a strange problem with ssh-agent. For a very long I started it with a simple ssh-agent and everything was fine - I could add a key from a different console and everything was immediately visible in all the applicat

  • Embedding Youtube videos etc...

    Hello everyone, I was curious to know, since we cannot use iframes within the "webcontent" overlay... what is the best way to embed a youtube video, so that it is still allowed to play full screen? any help would be greatly appreciated. Thank you!

  • Create Individual Idocs Based on Parent and Child Segment type

    Hi Experts, I have a scenario IDOC to FILE ,  Split Single IDOC into Multiple IDOC's based on parent and child Segment Type For example If 3 child segments are same and 1 segment is different under parent segment then 3 same child segments are clubbe

  • Identity Template not working for LDAP

    Hi, I'm trying to provision a user to an LDAP resource. The identity template is simply as: uid=$accountId$,dc=mytest,dc=example,dc=com The following shows the barebone resource schema: accountId <-->uid password <--> userPassword cn <--> cn sn <-->