<?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 click on table control. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096215#M1359512</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;If u can select the line, it should mean u manage a MARK colunm, so u should have a field for mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PAI.
  
   FIELD MARK MODULE GET_SELECTED_LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   CHECK MARK = 'X'.
* Get record index
   SEL_INDEX = &amp;lt;tab control&amp;gt;-CURRENT_LINE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user-command u can read the line SEL_INDEX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u need to manage multiply selection, it should be better your to store the flag for mark in your internal table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   ITAB-MARK = 'X'.
  MODIFY ITAB LINE &amp;lt;table control&amp;gt;-current_line.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your user command u need to read the record where MARK is equal to X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to manage the double click: u need to use GET CURSOR command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   GET CURSOR LINE SEL_INDEX.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u have the record of table control where the double was done, but u need to know the value of the index of internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEL_INDEX = &amp;lt;tab control&amp;gt;-top_line + SEL_INDEX - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2009 15:56:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-07T15:56:17Z</dc:date>
    <item>
      <title>capture click on table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096213#M1359510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to capture data from the line clicked on table control.the thing is ,I can select line but after selecting how to capture the line, plz 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, 07 Sep 2009 15:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096213#M1359510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: capture click on table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096214#M1359511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this thread :&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="155964"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pallavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 15:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096214#M1359511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T15:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: capture click on table control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096215#M1359512</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;If u can select the line, it should mean u manage a MARK colunm, so u should have a field for mark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your PAI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PAI.
  
   FIELD MARK MODULE GET_SELECTED_LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   CHECK MARK = 'X'.
* Get record index
   SEL_INDEX = &amp;lt;tab control&amp;gt;-CURRENT_LINE.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user-command u can read the line SEL_INDEX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF u need to manage multiply selection, it should be better your to store the flag for mark in your internal table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   ITAB-MARK = 'X'.
  MODIFY ITAB LINE &amp;lt;table control&amp;gt;-current_line.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your user command u need to read the record where MARK is equal to X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to manage the double click: u need to use GET CURSOR command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE GET_SELECTED_LINE.
   GET CURSOR LINE SEL_INDEX.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now u have the record of table control where the double was done, but u need to know the value of the index of internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEL_INDEX = &amp;lt;tab control&amp;gt;-top_line + SEL_INDEX - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2009 15:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capture-click-on-table-control/m-p/6096215#M1359512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-07T15:56:17Z</dc:date>
    </item>
  </channel>
</rss>

