2010 Oct 13 9:42 PM
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?
2010 Oct 14 4:19 AM
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.
2010 Oct 14 12:37 PM
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....
2010 Oct 14 1:44 PM
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.
2010 Nov 01 12:10 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |