ALV check box in a cell uneditable for already checked entry

Hi all,
I have written program to display ALV with a column having check boxes.
I have requirement to make ALV-chech box in a cell uneditable for some other login for already checked entry.
Please guide me for the same..

Hi,
If it is list, try using events and then call it in reuse_alv_grid_display.
Sample code from SDN
**events
REFRESH:IT_EVENTS.
CLEAR:X_EVENTS,IT_EVENTS.
X_EVENTS-NAME = SLIS_EV_END_OF_LIST.
X_EVENTS-FORM = 'MODIFY_LIST'.
APPEND X_EVENTS TO IT_EVENTS.
CLEAR X_EVENTS.
END-OF-SELECTION.
  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM = SY-REPID
      IT_FIELDCAT        = IT_FIELDCAT
      IT_EVENTS          = IT_EVENTS
    TABLES
      T_OUTTAB           = ITAB
    EXCEPTIONS
      PROGRAM_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.
FORM MODIFY_LIST.
data: l_lines type i.
describe table itab lines l_lines.
  L_LINES  = L_LINES + 3.
  "because we have 3 lines extra occupied by lables.
  "if we have header,i mean top of page add the no.of lines
  "how many ever top of page have + 3 for labels.
  DO L_LINES TIMES.
    read table it_chg with key INDEX = sy-index.
    if sy-subrc = 0.
**This code is for reading the out put line
**and modify accordinlg to our requiremnet.
**don't chnage this.
      READ LINE SY-INDEX INDEX SY-LSIND.
      IF SY-SUBRC = 0.
        MODIFY LINE SY-INDEX INDEX SY-LSIND
                   FIELD FORMAT ITAB-NAME INPUT.
      ENDIF.
    ENDIF.
  ENDDO.
ENDFORM.                    "MODIFY_LIST

Similar Messages

  • Create a check box in excel cell  using sap abap

    Dear Sap Master's,
    Please give me some idea on  how to create a check box in excel cell using abap program..
    (OLE concept).
    Thanks
    Moderator message: please search for available information first.
    Edited by: Thomas Zloch on Jan 12, 2012

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

  • Activating auto PO Check Box in the purchasing view for plant level.

    Hi Techies,
    Right now i have an issue related to auto PO check box in the purchasing view for the plant level. There are three plants A,B,C.. For the plants A and B the automatic PO check box is visible and the user is able to provide input values. But when it comes to plant C the auto PO field is not available and hence the user is unable to provide input for auto PO.
    Is there any configuration to be done to activate the auto PO check box in the purchasing view in the material master with respect to plant C?
    If so could you please guide me with the settings?
    Thanking you in advance.
    Regards,
    Gopalakrishnan.S
    Edited by: krishu100 on Jul 13, 2011 2:25 AM

    Hi Techies thanks for you all info.
    Now today i just tried to created a new HALB Material in the plant C which i had issues yesterday. But when i created today a new material the Auto PO feild is available for entry. THen i tried to go to the material which i created yesterday for editing it. But i was unable to do it.
    I checked the transactions which most of you referred(Very Useful). I found that all the plant s had the same screen selction setting and set as Opt Entry. The field screen referrence for MM01, MM02 Transaction s are also set as opt entry. The screen reference for HALB is also set as Opt entry. Still i m not able to find the field auto PO in the purchasing field.
    So does it mean that a material once created without auto PO enabled or visible can never be updated after that? But i think its not the case and we should be able to edit it(correct me if im wrong).
    Really having my fingers crossed to find a solution for this issue.
    Regards,
    Gopalakrishnan.S

  • For each song in my iTunes Library just before the name of the song there is a check box.  What is the effect of checking or unchecking this box?

    For each song in my iTunes Library just before the name of the song there is a check box.  What is the effect of checking or unchecking this box?
    Thanks

    Unchecked items will not play unless specifically clicked on.  They will not be included on shuffle and will not be synced to ipods.

  • How does one create a "check box" in a cell?

    How does one create a "check box" in a cell?

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • Where are the check boxes to select/deselct tracks for import or play?

    I just downloaded iTunes 10 on Windows 7, and I don't see the check boxes on the left that allow me to decide what to import or play. Am I missing something? I see them fine on my iMac.

    This box can be shown or hidden.
    iTunes prefs > General.
    Tick *Show list checkboxes*.

  • Check box - text at the bottom of the check box

    Hi Apex folks,
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.
    Thanks
    Karthik

    Karthik C wrote:
    I came across a different requirement where as i need to place the check box text in break line at the bottom of the check box. Say I have a check box item X . which having following items
    STATIC:
    A - I am good;1
    B - I am ok ;2
    C- I am bad;3
    D- I am confused;4
    I have to display the text in the bottom of the check box and the text like "A" at the first line and " I am good" at the second line . Is there any possibility to achieve that.I have to pick option D...
    Do you mean like this?
    [ ]        [ ]       [ ]        [X]
    A          B         C          D
    I am good  I am OK   I am bad   I am confusedIf so, why? If not, show us the required layout.
    Help us to help you. When you have a problem you should provide as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • Checking box to see my saved passwords un-checks itself. Help pls?

    All of a sudden I am unable to view any of my saved passwords within Safari (ver. 7.1) > Preferences > Passwords !
    Whenever I check the box to “Show passwords for selected websites”, it instantly reverts the the box back to being “unchecked”, thus, making it impossible for me to see any and all of my saved passwords.
    This has been an ongoing problem for quite some time now on this machine - first issue I think was roughly around April or May of this year. I somehow fixed it before but I can’t remember what it was that I did to rectify the problem.
    Can somebody please help me out? 
    I have a MBP (mid-2012) running Mavericks ver. 10.9.5 (I’m not yet ready to update to Yosemite, JSYK) and the browser in question is Safari 7.1.
    Thanks so much!

    Reset Safari.
    Click Safari in the menu bar.
    From the drop down select "Reset Safari".
    Click "Reset".
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Turn off Extensions if any, and launch Safari.
    Safari > Preferences > Extensions

  • I do not have a ringtones check box under preferences and I have already purchased ringtones.  Why wont the ringtones checkbox appear?

    I have read several posts with people who had similar problems of not having a ringtones sidebar on itunes.  They were instructed to go to preferences under general and select the ringtonescheckbox.  I have NO checkbox.  I have also already purchased a few ringtones from my iphone.  I want to convert songs in my library and put them into my ringtones folder, but I cant do that without the folder.  Please HELP!!!

    Ringtones has been renamed Tones.

  • Check box prompt

    Hi all,
    I have a generated form with a check box in a multi record block, the prompt is placed above: this is ok.
    Now, I want to place a button below, so I created an item group in which I put all the displayed fields except the button. The item group has layout format Multi-record. Now the button is displayed once below the item group which is the way I want it, the problem is that the prompt of the check box is placed besides the check box instead of above. The CBXALM preference of the block is set to "Y".
    I am using designer 6.5.52.1.0
    Any ideas?
    Steven

    Well, found this on Metalink
    fact: Oracle Designer 6.0
    fact: Oracle Designer 2.1.2
    fact: CASEOFG - Forms Generator
    symptom: Unable to center checkbox prompt above a multi record block
    symptom: Checkbox prompts are not centered even though the value of both
    the following preferences is set to 'CENTER':
    ITMPJR (Prompt justification above a right-justified item)
    ITMPJL (Prompt justification above a left-justified item)
    cause: This behavior is described in <BUG:1147085>:CHECKBOX PROMPT NOT
    CENTERED IN SPREAD TABLE
    The problem occurs when the width of the check box item is set to a
    value higher than 3. The position of the prompt is centered
    relative to the space reserved for the check box. The space reserved
    for the check box is the specified width. Since the real width of the
    checkbox is 2, the alignment of the prompt is not centered relative
    to the occupied width of the check box.
    fix:
    Workaround:
    Nullify the check box item 'Width' property or set the width of
    the check box item to 2 or 3.
    When I read this I simply changed the width of the checkbox items to NULL.
    It works fine ! You don't need to set any generator prefs to achieve this.
    Cheers,
    Coen

  • How to print check box in ALV list display and how to pick selected ones

    Hi
    i am displaying one ALV list dispaly. for that im adding one check box fields by filling the fieldcat as below:
      wa_fldcat-checkbox = 'X'.
      wa_fldcat-edit = 'X'.
    but the check box is showing disable mode only. i want to display that check box and if i select that check box i want pick that records. for ALV grid i found one FM to pick records of selectedones as below.
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how can i do for list display to pick those selected one records.
    Can any one sugget regarding this.
    Thanks in advance.
    Rahul.

    Hi,
    Thanks. now it's enabled. but how can we pick the records from that list whichever i selected through that check box.
    i found this one for ALV grid:
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how for ALV normal list display.
    Thanks.
    rahul

  • ALV with check boxs and buttons

    Hi guys,
    It's been a while since last time I used ALV and its options.
    I have a requirement to show many records in ALV format. each record starts with a check box, user can choose which record by checking each and click on a button to merge them (those record contain text). Everything should show up on ALV screen. Any idea what how should I do that??
    I think I should use screen painter but I have no idea how to implement that...
    Thanks,

    Hi Ben,
    Here is the code as per ur requirement ..
    just go through this....i hope u will get some help...
    REPORT zashu_alv_in_popup_mara.
    TYPE-POOLS : slis.
    *Data Declaration
    DATA:i_repid LIKE sy-repid.
         i_repid = sy-repid.
    Declaration for ALV
    DATA: wa_fcat TYPE slis_fieldcat_alv,
          fcat TYPE slis_t_fieldcat_alv,
          wa_fcat1 TYPE slis_fieldcat_alv,
          fcat1 TYPE slis_t_fieldcat_alv.
    *Types Declaration
    TYPES:BEGIN OF ty_mat,
           matnr TYPE mara-matnr,
           checkbox(1),
          END OF ty_mat.
    TYPES:BEGIN OF ty_makt,
           matnr TYPE mara-matnr,
           maktg  TYPE makt-maktg,
           maktx  TYPE makt-maktx,
          END OF ty_makt.
    *Internal table Declaration
    DATA:it_mat TYPE TABLE OF ty_mat WITH HEADER LINE.
    DATA:it_makt TYPE TABLE OF ty_makt WITH HEADER LINE.
    *Range Declaration
    RANGES : r_matnr FOR mara-matnr.
    *Start of Selecdtion
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM display_data.
      PERFORM display_alv.
         Form  get_data
    FORM get_data.
    Read material from MARA
      SELECT matnr FROM mara INTO TABLE it_mat.
    ENDFORM.                               " GET_DATA
         Form  display_data
    FORM display_data.
      wa_fcat-row_pos   = '1'.
      wa_fcat-col_pos   = '1'.
      wa_fcat-fieldname = 'CHECKBOX'.
      wa_fcat-tabname   = 'IT_MAT'.
      wa_fcat-seltext_m = 'SELECT'.
      APPEND wa_fcat TO fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = '1'.
      wa_fcat-col_pos   = '2'.
      wa_fcat-fieldname = 'MATNR'.
      wa_fcat-tabname   = 'IT_MAT'.
      wa_fcat-seltext_m = 'MATERIAL'.
      wa_fcat-outputlen = 50.
      APPEND wa_fcat TO fcat.
    Display data in a POPUP
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
           EXPORTING
                i_selection          = 'X'
                i_zebra              = 'X'
                it_fieldcat          = fcat
                i_tabname            = 'IT_MAT'
                 i_checkbox_fieldname = 'CHECKBOX'
           TABLES
                t_outtab             = it_mat.
    IF NOT it_mat[] IS INITIAL.
    LOOP AT it_mat  WHERE checkbox = 'X'.
            r_matnr-sign = 'I'.
            r_matnr-option = 'EQ'.
            r_matnr-low = it_mat-matnr.
            r_matnr-high = ' '  .
            APPEND r_matnr.
            CLEAR r_matnr.
          ENDLOOP.
        ENDIF.
    select matnr maktx maktg from makt  into table it_makt where matnr in
    r_matnr.
    ENDFORM.                               " DISPLAY_DATA
    *&      Form  DISPLAY_ALV
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv .
    *ALV Display in a POPUP window
      wa_fcat1-row_pos   = '1'.
      wa_fcat1-col_pos   = '1'.
      wa_fcat1-fieldname = 'MATNR'.
      wa_fcat1-tabname   = 'IT_MAKT'.
      wa_fcat1-seltext_m = 'Material No'.
      APPEND wa_fcat1 TO fcat1.
      CLEAR wa_fcat.
      wa_fcat1-row_pos   = '1'.
      wa_fcat1-col_pos   = '2'.
      wa_fcat1-fieldname = 'MAKTX'.
      wa_fcat1-tabname   = 'IT_MAKT'.
      wa_fcat1-seltext_m = 'DESCRIPTION'.
      APPEND wa_fcat1 TO fcat1.
      wa_fcat1-row_pos   = '1'.
      wa_fcat1-col_pos   = '3'.
      wa_fcat1-fieldname = 'MAKTG'.
      wa_fcat1-tabname   = 'IT_MAKT'.
      wa_fcat1-seltext_m = 'GROUP'.
      APPEND wa_fcat1 TO fcat1.
      CLEAR wa_fcat1.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = i_repid
         i_grid_title                      = 'Material Description'
         it_fieldcat                       = fcat1
      I_SCREEN_START_COLUMN             = 30
      I_SCREEN_START_LINE               = 10
      I_SCREEN_END_COLUMN               = 70
      I_SCREEN_END_LINE                 = 30
        TABLES
          t_outtab                        = it_makt
    EXCEPTIONS
       PROGRAM_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.
    ENDFORM.                    " DISPLAY_ALV
    Thanks & Regards
    Ashu SIngh

  • Check box with alv

    hi
    i am displaying  list alv with check boxes, now i want to select few check boxes and doing some operation, after this operation i need to disable thoese check box.
    can u pls guide me.
    thanks.

    Hi,
    using styles it is possible.
    first you need to declare the one extra field in the internal table..
    1. HANDLE_STYLE TYPE LVC_T_STYL.
    DECLARE work area,and table
    2.  DATA: LS_EDIT TYPE LVC_S_STYL,
            LT_EDIT TYPE LVC_T_STYL.
    changing the style...
    3.
    LOOP AT IT_FINAL INTO LS_OUTTAB WHERE FLAG = 'X'.
        V_INDEX = SY-TABIX.
        LS_EDIT-FIELDNAME = 'MATNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'VBELN'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENAABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        LS_EDIT-FIELDNAME = 'POSNR'.
        LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
        LS_EDIT-STYLE2 = SPACE.
        LS_EDIT-STYLE3 = SPACE.
        LS_EDIT-STYLE4 = SPACE.
        LS_EDIT-MAXLEN = 8.
        INSERT LS_EDIT INTO TABLE LT_EDIT.
        INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
        MODIFY IT_FINAL INDEX V_INDEX FROM LS_OUTTAB  TRANSPORTING
                                          HANDLE_STYLE .
      ENDLOOP.
    assigning the style to Layout..
    4.   GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
    REUSE_ALV_GRID_DISPLAY_LVC. you can do the same with CL_GUI_ALV_GRID also.
    REPORT ZTESTALV.
    TYPE-POOLS: SLIS.
    *- Fieldcatalog
    DATA: IT_FIELDCAT  TYPE LVC_T_FCAT,
          IT_FIELDCAT1  TYPE SLIS_T_FIELDCAT_ALV..
    *- For Events
    DATA:IT_EVENTS TYPE SLIS_T_EVENT.
    DATA:  X_FIELDCAT  TYPE LVC_S_FCAT,
            X_FIELDCAT1  TYPE SLIS_FIELDCAT_ALV.
    DATA:X_LAYOUT TYPE LVC_S_LAYO.
    "{ FOR DISABLE
    DATA: LS_EDIT TYPE LVC_S_STYL,
          LT_EDIT TYPE LVC_T_STYL.
    "} FOR DISABLE
    DATA: BEGIN OF IT_VBAP OCCURS 0,
          VBELN LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          HANDLE_STYLE TYPE LVC_T_STYL, "FOR DISABLE
          BUTTON(10),
         END OF IT_VBAP.
    DATA: LS_OUTTAB LIKE LINE OF IT_VBAP.
    SELECT VBELN
           POSNR
           UP TO 10 ROWS
          INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
          FROM VBAP.
    DATA:L_POS TYPE I VALUE 1.
    CLEAR: L_POS.
    L_POS = L_POS + 1.
    X_FIELDCAT-SELTEXT = 'VBELN'.
    X_FIELDCAT-FIELDNAME = 'VBELN'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS    = L_POS.
    *X_FIELDCAT-EDIT = 'X'.
    X_FIELDCAT-OUTPUTLEN = '10'.
    x_fieldcat-ref_field = 'VBELN'.
    x_fieldcat-ref_table = 'VBAK'.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    L_POS = L_POS + 1.
    X_FIELDCAT-SELTEXT = 'POSNR'.
    X_FIELDCAT-FIELDNAME = 'POSNR'.
    X_FIELDCAT-TABNAME = 'ITAB'.
    X_FIELDCAT-COL_POS    = L_POS.
    *X_FIELDCAT-EDIT = 'X'.
    X_FIELDCAT-OUTPUTLEN = '5'.
    APPEND X_FIELDCAT TO IT_FIELDCAT.
    CLEAR X_FIELDCAT.
    L_POS = L_POS + 1.
    "{FOR DISABLE HERE 6ROW IS DISABLED
    SY-TABIX = 6.
    LS_EDIT-FIELDNAME = 'VBELN'.
    LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
    LS_EDIT-STYLE2 = SPACE.
    LS_EDIT-STYLE3 = SPACE.
    LS_EDIT-STYLE4 = SPACE.
    LS_EDIT-MAXLEN = 10.
    INSERT LS_EDIT INTO TABLE LT_EDIT.
    LS_EDIT-FIELDNAME = 'POSNR'.
    LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
    LS_EDIT-STYLE2 = SPACE.
    LS_EDIT-STYLE3 = SPACE.
    LS_EDIT-STYLE4 = SPACE.
    LS_EDIT-MAXLEN = 6.
    INSERT LS_EDIT INTO TABLE LT_EDIT.
    INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
    MODIFY IT_VBAP INDEX SY-TABIX FROM LS_OUTTAB  TRANSPORTING
                                      HANDLE_STYLE .
    X_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
    "} UP TO HERE
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
      EXPORTING
        I_CALLBACK_PROGRAM = SY-REPID
        IS_LAYOUT_LVC      = X_LAYOUT
        IT_FIELDCAT_LVC    = IT_FIELDCAT
      TABLES
        T_OUTTAB           = IT_VBAP[]
      EXCEPTIONS
        PROGRAM_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.
    The above code i am modifying the 6 record . you can place your condition.using loop and endloop. you can disable many records/check box also.
    Follow the next steps:
    1. Add the following fields in the internal table:
    checkbox TYPE c,
    celltab TYPE lvc_t_styl,
    2. Define a table and a work-area:
    DATA: wa_celltab TYPE lvc_s_styl,
    ta_celltab TYPE lvc_t_styl.
    3. Update the internal table BEFORE display :
    LOOP AT ta_data INTO wa_data.
    h_tabix = sy-tabix.
    Update field CHECKBOX (enable/disable INPUT)
    REFRESH ta_celltab.
    wa_celltab-fieldname = 'CHECKBOX'.
    IF NOT wa_data-xxxxx IS INITIAL.
    wa_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    ELSE.
    wa_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
    ENDIF.
    INSERT wa_celltab INTO TABLE ta_celltab.
    INSERT LINES OF ta_celltab INTO TABLE wa_data-celltab.
    Update internal table
    MODIFY ta_data FROM wa_data INDEX h_tabix.
    ENDLOOP.
    4. Define CHECKBOX in fieldcatalog
    CLEAR wa_catalog.
    wa_catalog-fieldname = 'CHECKBOX'.
    wa_catalog-col_pos = 9.
    wa_catalog-coltext = 'Checkbox'.
    wa_catalog-checkbox = 'X'.
    wa_catalog-edit = 'X'.
    APPEND wa_catalog TO ta_catalog.
    5. Call ALV
    CREATE OBJECT h_custom_container
    EXPORTING container_name = h_container.
    CREATE OBJECT h_grid
    EXPORTING i_parent = h_custom_container.
    CALL METHOD h_grid->set_table_for_first_display
    EXPORTING
    it_toolbar_excluding = wa_toolbar
    is_layout = wa_layout
    CHANGING
    it_outtab = ta_kntkn
    it_fieldcatalog = ta_catalog
    it_sort = ta_sort.
    CALL METHOD h_grid->set_ready_for_input
    EXPORTING i_ready_for_input = 1.
    Regards
    vasu

Maybe you are looking for

  • 20" cinema display with GeForce 9800 GT card

    I haven't gotten my new computer yet, but it comes with the GeForce 9800 GT video card that has a DVI-I port. My cinema display has the ADC style connection. With a DVI to ADC converter (say, the Gefen Ex-tend-it conversion box) , will my cinema disp

  • Windows 7 64bit timed out when d/l my purchases

    Tried everything turned of firewall turned off virus protection hooked directly into modem. All my other programs connect with no problem.What happen was i bought a new computer downloaded the 64 bit version of itunes no problem accessing itunes or l

  • Why doesn't my serial number work?

    I have Photoshop Elements 7. My old computer died and my new computer doesn't have a CD drive, so I transferred and installed Photoshop Elements 7 from a flash. It let me use the program (perfectly) on a trial basis for 30 days since I couldn't find

  • ITunes crashes when I view music library in Cover-Flow view.

    *Whenever I try to view my music library in cover-flow mode iTunes freezes. The only way I can close it is to use Task Manager to stop the iTunes.exe process.* I can then restart iTunes which works fine until I try to switch to Cover-Flow view and it

  • HT202213 can't find home sharing icon on my imac

    I dont have the home sharing icon to connect up apple tv