‎2007 Apr 02 5:06 AM
Hi,
I created a table control but the lines cannot be selected. The table control setting <i>Line selection</i> is set to <i>Singl</i>e and <i>w/SelColumn</i> is also set. When the screen is displayed the row selection buttons are visible but the buttons cannot be selected. The same problem occurs when creating the table control with the wizard.
I've created many table controls before and never came across this problem. Other developers on this system have the same problem. We are working on ECC 6.00.
Your input will be appreciated.
Thanks.
Liza-Marie
‎2007 Apr 02 5:13 AM
HI LIZA
plz check the name of the selection column
incase ur table is with header line the name mentioned while creating a selection column in table control should be like <u><i><b>itab-sel_col</b></i></u>
regards
navjot
reward if helpfull
‎2007 Apr 02 5:13 AM
HI LIZA
plz check the name of the selection column
incase ur table is with header line the name mentioned while creating a selection column in table control should be like <u><i><b>itab-sel_col</b></i></u>
regards
navjot
reward if helpfull
‎2007 Apr 02 5:19 AM
Hi liza,
check if u have done the following:
checking sel/col and activating the sceen.
loop at itab.
if sel = 'X'.
itab-chk = sel.
modify itab where chk = 'X'.
endif.
endloop.
regards,
keerthi
‎2007 Apr 02 5:27 AM
‎2007 Apr 02 5:30 AM
Hi Liza,
Can you check whether you had added the selection field with the same name in your internal table??
Regds
Seema
‎2007 Apr 02 5:35 AM
Hi,
Yes, the selection field is the same as the internal table field - sleave-sel.
sleave is declared as follows:
types: begin of tsleave,
sel,
check like p9001-lve_adv01,
dat like p9001-lve_dat01,
end of tsleave.
data: sleave type tsleave occurs 0 with header line.
Regards
LM
‎2007 Apr 02 5:37 AM
in ur internal table u need to define the selection column as of character typr then onle it will work
like this
sel_col TYPE c
regards
navjot sharma
Message was edited by:
navjot sharma
‎2007 Apr 02 5:43 AM
Thanks but it is already declared as a character field of lenght 1.
the statement <i>data: sel.</i> is the same as <i>data: sel(1) type c</i>. The default is type c.
‎2007 Apr 02 6:28 AM
Hi all,
I've solved the problem. In the element list I assigned a value to screen-group3 for field sleave-sel and during the table control loop in the PBO I explicitly set the field to allow input:
Example:
PBO:
loop at sleave with control tlv cursor tlv-current_line.
module fill_sleave.
endloop.
MODULE fill_sleave.
loop at screen.
if screen-group3 = '900'.
screen-input = '1'.
modify screen.
endif.
endloop.
ENDMODULE.
Regards
LM