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

Highlight table control rows when select all button is clicked module pool

Former Member
0 Likes
1,000

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
763

Hi Experts,

Appreciate your inputs on this issue.

Thanks,

4 REPLIES 4
Read only

Former Member
0 Likes
764

Hi Experts,

Appreciate your inputs on this issue.

Thanks,

Read only

0 Likes
763

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

Read only

0 Likes
763

Hi ASHISH ,

Thank you very much for your inputs

Yes Its working.

Read only

0 Likes
763

Ok Abhis,

inform me in case of any issue, if you need that code i will post.. Enjoy

Thanks,

Ashish