<?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 Record selected in the table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064037#M426924</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How do i know the line no of the record selected in the table control.I have declared a table control CONTROLS : t_control1 type tableview using screen 200.But in t_control1-current_line the line no that is stored is always 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2007 04:30:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T04:30:03Z</dc:date>
    <item>
      <title>Record selected in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064037#M426924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  How do i know the line no of the record selected in the table control.I have declared a table control CONTROLS : t_control1 type tableview using screen 200.But in t_control1-current_line the line no that is stored is always 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 04:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064037#M426924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T04:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Record selected in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064038#M426925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know the line number of Record u have selected u have to write logic in PAI... Set table control properties wutg selection criteria possible in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOr example refer to following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE status_0100.&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL flights.&lt;/P&gt;&lt;P&gt;MODULE fill_table_control.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH CONTROL flights.&lt;/P&gt;&lt;P&gt;MODULE read_table_control.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE fill_table_control OUTPUT.&lt;/P&gt;&lt;P&gt;READ TABLE itab INTO demo_conn INDEX flights-current_line.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE read_table_control INPUT.&lt;/P&gt;&lt;P&gt;lines = sy-loopc.&lt;/P&gt;&lt;P&gt;if itab-x = 'X'.&lt;/P&gt;&lt;P&gt;va_current_line_data = demo_conn.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details do write to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DARSHAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Dude don't forget to give rewards.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 08:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064038#M426925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T08:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Record selected in the table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064039#M426926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The t_control1-current_line values changes in the loop but out of the loop it shows alwaya as 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for example you have selected the 5 row then the X marked against the select/BOX will be seen in the loop. But out of the it will show the alwaya as 1. &lt;/P&gt;&lt;P&gt;That's why you need to modify the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;Laxmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 14:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/record-selected-in-the-table-control/m-p/2064039#M426926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T14:07:23Z</dc:date>
    </item>
  </channel>
</rss>

