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: 

Select, Deselect wont display selection in Table control of MP program

Former Member
0 Kudos

Hi Experts,

I have developed a module pool program, where in i have created buttons Select All and Deselect All in GUI status just like standard ones.

So my requirement is to either select all records or deselect all records displayed in the table control. But I am not able to achieve this simple functionality and i am not sure where i missing something. Whats interesting is, the internal table that's displayed in Table control, in debug mode, marks X for those records, but just wont display on the screen after execution. So for sure i am missing something, so can you please help me with this.

Thank you,

CB

1 REPLY 1

adrian_mejido
Contributor
0 Kudos

Hi Cool,

This examples might help you.

DEMO_DYNPRO_TABLE_CONTROL_1

DEMO_DYNPRO_TABLE_CONTROL_2

Do you have a column for MARK in your table control? If you have, you will be able to try with this code in the PAI:

if OK_CODE = 'SELALL'.

Loop at Internal table (populated in Tab cntrl).

  table-mark = 'X'.

modify table.

endloop

endif.

Best regards