Skip to Content

ALV - question


I have an ALV with edit option (Object Oriented using CL_GUI_ALV_GRID)

coloum A 	Column B
B		X	
C		X
D		X
.		X
.		X
.		X	
.		X	

Here in column B is check box. My requirement is user should NOT allow to enter values in Colum B against values A & Z.

I don't want to validate after entering values and then give an error message

Here is code

 call method g_grid->set_table_for_first_display
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_status>[]." This is dynamically generated int table
  call method g_grid->set_ready_for_input
      i_ready_for_input = v_input.


Edited by: a®s on Jun 16, 2008 2:56 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:17 PM

    didnt clearly under stand what is the driving factor / criteria to make column B check box, disabled.

    Is it based on the value in column A.

    loop at ls_outtab-celltab into ls_celltab.

    if ls_celltab-fieldname eq 'CHECKBOX'.

    §B4.Switch the style to dis- or enable a cell for input

    if ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.

    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.


    refer to program BCALV_EDIT_05. wondering whether this will help..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.