02-17-2009 10:45 AM
Dear Friends,
I have a table control with 4 colums, The Table control is designed as input enabled ( Input/output possible ) for all lines.
The data is comming in my internal table ( The internal table which I am looping for table control data display ) from selection screen.
Now the problem is I am having only one record in my internal table, and it is displaying in table control in first line with input enable but the remaining lines are greyed out ( display only ).
Now I want to make every line as input enable for the changes or to add the data into another lines.
Note : Internal table colums are like:
CHK F1 F2 F3.
is it possible???
Thanks,
Sridhar.
02-17-2009 10:53 AM
Hi,
Try this...
In design mode click on the fields and set the group1 field to say 111. Now run a loop on scrren table and enable the fields.
in PBO
Loop at screen.
if screen-group = '111'.
screen-input = 1.
modify screen.
endif.
endloop.
Hope this helps
Regards,
Sachin
02-17-2009 11:00 AM
Hi,
You can set desired no of lines as input by passing lines in table control
tabc-lines = 10.
Set desired no of lines in PBO .
Hope this helps
Regards
Bikas
02-17-2009 11:09 AM
Hi Sridhar,
Assume that your table is TAB1 and the columns are COL1 COL2 COL3 COL4. In PBO include the line which is highlighted as follows:
PROCESS BEFORE OUTPUT.
MODULE liste_initialisieren.
LOOP AT extract WITH CONTROL
tctrl_tab1 CURSOR nextline.
MODULE enable_fields.
MODULE liste_show_liste.
ENDLOOP.
MODULE fill_substflds.
Double click on MODULE enable_fields and add the following lines.
module ENABLE_FIELDS output.
LOOP AT SCREEN.
IF screen-name = 'TAB1-COL1'
OR screen-name = 'TAB1-COL2'
OR screen-name = 'TAB1-COL3'
OR screen-name = 'TAB1-COL4'.
screen-input = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endmodule.
Regards,
Swapna.
02-17-2009 11:24 AM
hi,
you include a module and that module, you write a loop to enable the recods all.
Regards.