‎2005 Aug 02 5:03 PM
Hi
I have a table control where i have to select multiple lines and pass the selected line data into another internal table.
Example.
I have table control which displays 20 rowss. I can randomly select the rows in the 20. If suppose i have selected 1,2,5,8,9,13,16,19,20 rows. then i need to pass these rows data into another internal table pls guide me on this
‎2005 Aug 02 5:05 PM
‎2005 Aug 02 5:09 PM
Hi,
This MARK field should be part of the table control parameters.
Svetlin
‎2005 Aug 02 5:14 PM
To clarify.
The "mark" field is part of the internal table which is shown in the table control. If you generated the table control with the wizard, most likely it wanted to know what your "MARK" field is in the internal table. If you said MARK, then there has to be a field in your internal table named MARK. The wizard would have then generated this module.
module itabcon_mark input.
modify <b>itab</b> index itabcon-current_line
transporting <b>MARK</b> .
endmodule.
This module is the code that actually updates the internal table when you select it.
Then, its just a matter of LOOPing and check this MARK = 'X'.
Regards,
Rich Heilman
‎2005 Aug 02 5:15 PM
‎2007 Sep 21 8:43 AM
Thanks a lot......Rich Heilman .
I have strugled with the same problem from past 4 hours and its solved with your logic.
Thanks SDN and alll
Sridhar.
‎2005 Aug 03 5:16 AM
Hi,
Check this link for details about selecting multiple lines in table control.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table control in abap.pdf
If it is useful,click the star on the left of the reply.If you need clarifications,kindly get back.
‎2005 Aug 03 5:47 AM
Hi,
Try this methos,
CALL METHOD go_grid->get_selected_rows
IMPORTING
et_index_rows = gi_index_rows.
Regs,
Venkat
‎2005 Aug 03 6:05 AM
Hi Vamsi,
Hope u r doing fine.
Check this sample program:
DEMO_DYNPRO_TABCONT_LOOP_AT
Regards,
Anjali