‎2009 Feb 19 6:27 AM
Hi All,
I developed module pool and I took table control wizard.Now when I run the program I have 10 lines item in my wizard all of them is editable. Now I want first line item in gray mode and the last 9 item in edit mode. Is it possible if yes then give me solution.
Thanks,
Rakesh
‎2009 Feb 19 6:30 AM
Yes.. in PBO use loop at screen.. check for the index is 1.. if so.. then use the
SCREEN table attributes to disable the 1st line..
‎2009 Feb 19 6:37 AM
If I write
loop at screen.
if screen-name = 'field1'
screen-input = 0.
modify screen.
endif.
endloop.
then it will gray all the line of 'filed1'.
note: no index filed is there in screen.
Thanks,
rakesh
‎2009 Feb 19 6:41 AM
In the PBO..
While use LOOP AT TABLE CONTROL.
CHECK for SY-STEPL = 1. -
>Index of table control
Them USE loop AT screen.
Regards,
Gurpreet
‎2009 Feb 19 6:41 AM
Hi,
In your PBO, change the screen attribute like this:
Loop at <itab> into <wa>.
module modify_screen.
Endloop.
Module modify_screen.
if sy-tabix = 1. 'Only the first line will be gray out....
loop at screen.
screen-input = 0.
modify screen.
endloop.
endif.
Endmodule.
Regards,
Lim...
Edited by: Ruslim Chang on Feb 19, 2009 7:41 AM
‎2009 Feb 19 6:50 AM
Hi,
In PBO of the screen by using SCREEN table attributes only for the first line item while looping ur internal table.
From
Reddy