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: 

No default selection in table control

Former Member
0 Kudos
93

Hello,

I'm using a table control with properties set to SINGLE line selection and a SelColumn.

The problem is that the table always opens with the first row by default selected. I don't want a line to be selected after the PBO. How can I do this?

Regards

5 REPLIES 5

Former Member
0 Kudos
46

Hi,

Change line selectivity to MULTIPLE and check.

0 Kudos
46

I want to keep the single selection, because you may only choose 1 line...

0 Kudos
46

I agree , you just check if your issue resolves by this , you can ristrict your one line selection by setting mytable-LINE_SEL_MODE = 1 in your code.

Just try it .

former_member1245113
Active Contributor
0 Kudos
46

HI Glenn,

Normally We can't get this at the start of Transaction(For the first time the screen is displayed. Once screen is displayed then Selecting Row then only it is selected till the end unless it is cleared Explicitly)

This happens since you selected the Row in PAI and not cleared.

Check this one

In PBO.

module status_100.

loop at itab with control tc.

endloop.

in program.

module status_100.
loop at itab.
if itab-mark = 'X'.    " Assumed that Mark is given at screen painter level and also declared in Top include.
clear itab-mark.
modify itab index sy-tabix.
endif.
endloop.
endmodule.

Cheerz

Ram

Former Member
0 Kudos
46

Problem solved by looping through the internal table and deleting the 'X' for the flag column.