2009 Mar 11 11:49 AM
in table controls, how to set null rows disable(grey), and user can only maintain the rows with values?
in table controls, how to set null rows disable(grey), and user can only maintain the rows with values?
2009 Mar 11 11:58 AM
Hi,
In order to make a row as readonly, you'll have to update the SCREEN table like you would normally do for other fields..Its just that for this case, it needs to be coded in the PBO inside the LOOP where the internal table data is moved to the table control...ex.
PBO
-
LOOP AT ITAB WITH CONTROL TC_ITAB.
MODULE UPDATE_SCREEN.
ENDLOOP.
In the module UPDATE_SCREEN, you can loop at SCREEN and set INPUT field to '0'.
~Piyush
2009 Mar 11 12:06 PM
now i just want to disable the null rows, loop at itab to controls can only affect the rows with values.
2009 Mar 11 12:07 PM
hi ,
for disabling a row u can use.
based of the condition u can disable u r table
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
"set field to disabled.
thanks
chinnaiya.
2009 Mar 11 12:16 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |