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

No default selection in table control

Former Member
0 Likes
839

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
Read only

Former Member
0 Likes
792

Hi,

Change line selectivity to MULTIPLE and check.

Read only

0 Likes
792

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

Read only

0 Likes
792

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 .

Read only

Former Member
0 Likes
792

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

Read only

Former Member
0 Likes
792

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