Application Development 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: 

Table control display proble.

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

former_member182485
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

hi,

you include a module and that module, you write a loop to enable the recods all.

Regards.