<?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: Line selected in a table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731399#M898093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the reply. It did work for me. I found the solution at this site that was posted by Franklin Mendez on April 15th, 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear lv_line.&lt;/P&gt;&lt;P&gt;    GET CURSOR LINE lv_line.&lt;/P&gt;&lt;P&gt;    lv_line = lv_line + tc_prod_rl_ind-top_line - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tessy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 28, 2008 12:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 16:37:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T16:37:20Z</dc:date>
    <item>
      <title>Line selected in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731396#M898090</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;I'm using the command GET CURSOR LINE line to get the line I selected in a table control. The number of visible rows is 4. This command gets me the correct row I selected only upto the 4th line but after that, for the 5th row, the row selected is returned as '4'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the correct row that I've selected on the table control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 15:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731396#M898090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T15:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Line selected in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731397#M898091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use the std mechanism of selecting the line in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You need to have one character field for the selection in your internal table&lt;/P&gt;&lt;P&gt;2. Assign this field in your table control property:&lt;/P&gt;&lt;P&gt;Check the checkbox "w/SelColumn" and give this character field name in the adjacent field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when you select the row, the corresponding "Character" field will have the value "X".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 15:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731397#M898091</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-04-28T15:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Line selected in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731398#M898092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GET CURSOR only works on the number of table control lines that can be displayed on screen at any one time.  So, if your screen can display only 4 lines, all you'll ever get from GET CURSOR is a number 1 to 4.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your screen also knows which of your table control records is currently displayed as the top line of your table control.  This information is held in field TC_ITEMS-TOP_LINE (where TC_ITEMS is the name of your table control).  By combining these two bits of information, you can find the correct line number of your selected record.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the case you describe where you are clicking on line 5 but GET CURSOR thinks it is line 4 because your screen has moved down a record, I would think that TC_ITEMS-TOP_LINE would be 2.  Add 4 and 2 together, subtract 1 and you'll get your correct line number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 16:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731398#M898092</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-04-28T16:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Line selected in a table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731399#M898093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the reply. It did work for me. I found the solution at this site that was posted by Franklin Mendez on April 15th, 2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear lv_line.&lt;/P&gt;&lt;P&gt;    GET CURSOR LINE lv_line.&lt;/P&gt;&lt;P&gt;    lv_line = lv_line + tc_prod_rl_ind-top_line - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tessy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 28, 2008 12:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 16:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/line-selected-in-a-table-control/m-p/3731399#M898093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T16:37:20Z</dc:date>
    </item>
  </channel>
</rss>

