‎2009 Nov 27 7:57 AM
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
‎2009 Nov 27 8:21 AM
‎2009 Nov 27 8:24 AM
I want to keep the single selection, because you may only choose 1 line...
‎2009 Nov 27 8:27 AM
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 .
‎2009 Nov 27 8:47 AM
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
‎2009 Nov 27 10:56 AM
Problem solved by looping through the internal table and deleting the 'X' for the flag column.