<?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: select current line through push button in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138451#M1819038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amol,&lt;/P&gt;&lt;P&gt;&lt;/P&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.&amp;nbsp; So, if your screen can display only 4 lines, all you'll ever get from GET CURSOR is a number 1 to 4.&amp;nbsp;&amp;nbsp; &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.&amp;nbsp; This information is held in field TC_ITEMS-TOP_LINE (where TC_ITEMS is the name of your table control).&amp;nbsp; By combining these two bits of information, you can find the correct line number of your selected record.&amp;nbsp; &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.&amp;nbsp; Add 4 and 2 together, subtract 1 and you'll get your correct line number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Mar 2014 09:35:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-01T09:35:20Z</dc:date>
    <item>
      <title>select current line through push button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138450#M1819037</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 have created one module pool program with table control. There I have inserted on push button where some logic is deployed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I push button on current line or any line, that line should be selected in the program. So that I can move that line to next internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, it always shows first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 09:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138450#M1819037</guid>
      <dc:creator>former_member207480</dc:creator>
      <dc:date>2014-03-01T09:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: select current line through push button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138451#M1819038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amol,&lt;/P&gt;&lt;P&gt;&lt;/P&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.&amp;nbsp; So, if your screen can display only 4 lines, all you'll ever get from GET CURSOR is a number 1 to 4.&amp;nbsp;&amp;nbsp; &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.&amp;nbsp; This information is held in field TC_ITEMS-TOP_LINE (where TC_ITEMS is the name of your table control).&amp;nbsp; By combining these two bits of information, you can find the correct line number of your selected record.&amp;nbsp; &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.&amp;nbsp; Add 4 and 2 together, subtract 1 and you'll get your correct line number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 09:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138451#M1819038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-01T09:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: select current line through push button in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138452#M1819039</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;Please follow the following steps.&lt;/P&gt;&lt;P&gt;1) Add a field "SEL" of type char 01 to the structure you will be using in the module pool programming in the include.&lt;/P&gt;&lt;P&gt;2) In the layout of the table control use the same structure for the table control design.&lt;/P&gt;&lt;P&gt;3)Add the layout there will be a new column in the beginning of the table control.&lt;/P&gt;&lt;P&gt;4)In the properties of the table control at the end of the properties window there is a field w/sel. Add the structure-fieldname(SEL) to that.(The one you created in the first step).&lt;/P&gt;&lt;P&gt;5)Go for the radio button according to your need.&lt;/P&gt;&lt;P&gt;6)Now when you select a line, that particular line will be marked as structure-sel = 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; using which you can do SQL operation that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 07:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-current-line-through-push-button-in-module-pool/m-p/10138452#M1819039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-03T07:11:08Z</dc:date>
    </item>
  </channel>
</rss>

