‎2019 Nov 25 9:30 AM
how do I figure out which multiple rows are selected? there is an attribute of the table control?
‎2019 Nov 25 9:45 AM
In the attributes of the table control, you enter the name of the selection column of the table control (of the internal table) which contains if the row is selected. The field of the internal table has to be one character long, and will have value 'X' (selected) or ' ' (not selected).
For more information, please have a look at the documentation of "Table controls" in "Classic screen programming".
‎2019 Nov 25 10:09 AM
but the internal table flag how do I figure out when to put it at x
‎2019 Nov 25 10:33 AM
If you assign the selection column to the one-character component SELECTED of your internal table, here is an example dynpro with table control and program.
Dynpro flow logic:
PROCESS BEFORE OUTPUT.
LOOP AT itab WITH CONTROL tabctrl INTO wa.
MODULE pbo_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT itab INTO wa.
MODULE pai_line.
ENDLOOP.
MODULE action.Program:
MODULE action INPUT.
IF ucomm = 'EXECUTE'.
LOOP AT itab INTO wa WHERE selected = abap_true.
" process the line which is selected
ENDLOOP.
ENDIF.
ENDMODULE.See also demo programs: