‎2012 Jul 23 7:53 AM
Hi Experts,
I have a table control and filling up rows through user input and i have also created button such asSelect All* , De-Select All,
Now the issue is when i am pressing the select all button all the rows are marked for deletion(internal 'X' flag is set) but the rows are not highlighted(so that user will be able to know that all rows are selected).
When i select individually ,rows are highlighted but when i press select all button rows are not getting highlighted.
Anything that i am missing, please guide.
Appreciate your guidance.
Thanks.
Abhis
‎2012 Jul 23 9:26 AM
‎2012 Jul 23 9:26 AM
‎2012 Jul 23 10:02 AM
Hiiii ,
check below property in your screen col sel = multiple .
here when you press select all such as your fcode if selall than as you told one field is internally set as a marked this is done in PAI than in pbo you apply condition which row you want to show highlighted - check below code
than in PBO -
LOOP AT ITAB
INTO WA
WITH CONTROL XTABL_CNTRL
CURSOR XTABL_CNTRL-CURRENT_LINE.
module screen_element. " Inside this module write code
ENDLOOP.
*&---------------------------------------------------------------------*
*& Module SCREEN_ELEMENT OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE SCREEN_ELEMENT OUTPUT.
"<write down here youe condition if required> " if wa-mark = 'X'.
loop at screen.
screen-INTENSIFIED = 1. " this is for highlighted purpose
wa-mark = 'X'. " this is for mark all yellow color or you can set color also . " you can this line as commented also
modify screen.
endloop.
ENDMODULE. " SCREEN_ELEMENT OUTPUT
‎2012 Jul 23 10:25 AM
‎2012 Jul 23 10:40 AM
Ok Abhis,
inform me in case of any issue, if you need that code i will post.. Enjoy
Thanks,
Ashish