Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

how to set table controls null row disable?

Former Member
0 Likes
769

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?

4 REPLIES 4
Read only

Former Member
0 Likes
642

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

Read only

0 Likes
642

now i just want to disable the null rows, loop at itab to controls can only affect the rows with values.

Read only

Former Member
0 Likes
642

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.

Read only

0 Likes
642

problem is solved