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

Cannot select line in table control

Former Member
0 Likes
2,729

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,392

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,393

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

Read only

Former Member
0 Likes
1,392

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

Read only

0 Likes
1,392

Hi,

I've done this. It's still not selectable.

Regards

LM

Read only

0 Likes
1,392

Hi Liza,

Can you check whether you had added the selection field with the same name in your internal table??

Regds

Seema

Read only

0 Likes
1,392

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

Read only

Former Member
0 Likes
1,392

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

Read only

0 Likes
1,392

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.

Read only

0 Likes
1,392

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