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

Line selection not working for a table control

Former Member
0 Likes
377

I m able to select a column in a table control on the PBO event with the following code.

set cursor field 'S_VEPO-EXIDV' line TABLE1-TOP_LINE.

But I want to select the entire line programmatically. Is there some way I can select the entire line. The line selection for the table control is currently set to Single line.

Thanks for reading.

I m able to select a column in a table control on the PBO event with the following code.

set cursor field 'S_VEPO-EXIDV' line TABLE1-TOP_LINE.

But I want to select the entire line programmatically. Is there some way I can select the entire line. The line selection for the table control is currently set to Single line.

Thanks for reading.

1 REPLY 1
Read only

Former Member
0 Likes
343

Hi,

Please check demo program DEMO_DYNPRO_TABLE_CONTROL_2.

Try to copy to custom program and make the following line changes.


...

MODULE CHECK_ALL INPUT.
  CASE OK_SAVE.
    WHEN 'ALLM'.
      LOOP AT ITAB.
*       IF itab-mark = 'X'.
*         MESSAGE i888 WITH 'Zeile' sy-tabix 'markiert'.
*       ENDIF.
        ITAB-MARK = 'X'.
        MODIFY ITAB.
      ENDLOOP.
...

Hope this will help ...

Regards,

Ferry Lianto