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

Gray line item in module pool programing

Former Member
0 Likes
674

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

5 REPLIES 5
Read only

Former Member
0 Likes
609

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..

Read only

0 Likes
609

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

Read only

Former Member
0 Likes
609

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

Read only

Former Member
0 Likes
609

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

Read only

Former Member
0 Likes
609

Hi,

In PBO of the screen by using SCREEN table attributes only for the first line item while looping ur internal table.

From

Reddy