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

Open all lines for input in table control

Former Member
0 Likes
1,450

Hello!

I would like to do table control like SM30. When i click in New entries, the table control has been all lines open for input. But when i refresh my internal table of table control, just first line come opened for input.

How can i do that?

Hello!

I would like to do table control like SM30. When i click in New entries, the table control has been all lines open for input. But when i refresh my internal table of table control, just first line come opened for input.

How can i do that?

4 REPLIES 4
Read only

rahul_mb
Active Participant
0 Likes
846

In the PBO change the table control's field properties. When you declare a table control a deep structure containg all the field properties of the table control is also generated. If your table control is TCTRL then that TCTRL-COLS is the internal table containing all the field properties of that table control. It is of the type SCXTAB_COLUMN. There you can set the required columns in editable mode.

Read only

Former Member
0 Likes
846

In PBO module use

loop at screen...

if (screen-name eq Tbl Ctrl)

screen-input = '0'.

endif.

and in PA keep the table ctrl open so u can input in it....

Read only

Former Member
0 Likes
846

Hi.

In event PAI,

write a


loop with control <table cntrol name>
module M_enabletable.
endloop.

.

and in this module write this


if sy-ucomm = 'NEW'  "Fcode for new entries
  loop at screen.
  if screen-name = <field name in table control>
     screen-input = '1'.
     modify screen.
  endif.
endif.

Thanks,

Anmol.

Read only

Former Member
0 Likes
846

Hi all!

Thanks all, but i resolved by myself.

Solution:

tc_mytable-lines = v_nrlines.

where v_nrlines are number of lines that i want to see opened for input.