<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Capture selected row values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-selected-row-values/m-p/3879713#M932553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a selection column to the table control. (in the element attributes in Screen painter) &lt;/P&gt;&lt;P&gt;name it e.g. mark, declare it also a field mark type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: mark type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the table control tc with module tc-evaluate ( in the screen flow logic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL tc.&lt;/P&gt;&lt;P&gt;	MODULE tc_evaluate.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare integer position for storing the line of the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: pos type i.&lt;/P&gt;&lt;P&gt;data: lines-tc type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_evaluate INPUT.&lt;/P&gt;&lt;P&gt;lines_tc = sy-loopc.&lt;/P&gt;&lt;P&gt;  if mark = 'X'.&lt;/P&gt;&lt;P&gt;    pos = tc-current_line.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_evaluate  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, you get the line number in the field pos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2008 11:14:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-08T11:14:50Z</dc:date>
    <item>
      <title>Capture selected row values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-selected-row-values/m-p/3879712#M932552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the selected row values in table control. In my scenario i have n number of rows in table control. In that if i select the particular row, then that selected row should be deleted. so how to capture the index of the selected row in table control. If index cannot be retrieved, then how to find the field values of the selected row from the table control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2008 10:45:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-selected-row-values/m-p/3879712#M932552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-08T10:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capture selected row values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-selected-row-values/m-p/3879713#M932553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add a selection column to the table control. (in the element attributes in Screen painter) &lt;/P&gt;&lt;P&gt;name it e.g. mark, declare it also a field mark type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: mark type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at the table control tc with module tc-evaluate ( in the screen flow logic)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL tc.&lt;/P&gt;&lt;P&gt;	MODULE tc_evaluate.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare integer position for storing the line of the table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: pos type i.&lt;/P&gt;&lt;P&gt;data: lines-tc type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE tc_evaluate INPUT.&lt;/P&gt;&lt;P&gt;lines_tc = sy-loopc.&lt;/P&gt;&lt;P&gt;  if mark = 'X'.&lt;/P&gt;&lt;P&gt;    pos = tc-current_line.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " tc_evaluate  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, you get the line number in the field pos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2008 11:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-selected-row-values/m-p/3879713#M932553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-08T11:14:50Z</dc:date>
    </item>
  </channel>
</rss>

