<?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 Table control with Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080766#M1356833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted a button in a table control.I am calling one more screen at the click of this Button.  I need the line number of table control when I press this button. This button can be chossen randomly from top to bottom. I am not getting any idea how to add the logic for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to find out the solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, Krishan raheja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2009 06:37:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-25T06:37:48Z</dc:date>
    <item>
      <title>Table control with Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080766#M1356833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted a button in a table control.I am calling one more screen at the click of this Button.  I need the line number of table control when I press this button. This button can be chossen randomly from top to bottom. I am not getting any idea how to add the logic for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me to find out the solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds, Krishan raheja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 06:37:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080766#M1356833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T06:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080767#M1356834</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;just add one more field to your internal table as MARK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in the property of the Table control give this column name in w/SelColumn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a new code block will be added to your report automatically..&lt;/P&gt;&lt;P&gt;Once you click any row that MARK field will mark as X.&lt;/P&gt;&lt;P&gt;so just get the index of that row by reading it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 06:45:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080767#M1356834</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-08-25T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080768#M1356835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Krishnan,
You need to use below GET statement under PAI event.
&lt;PRE&gt;&lt;CODE&gt;GET CURSOR FIELD MARA-MATNR LINE LINE_NO.
"Where MARA-MATNR is the column name of the table control 
"LINE_NO is the number of the row of the table control&lt;/CODE&gt;&lt;/PRE&gt; 

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 06:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080768#M1356835</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-08-25T06:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table control with Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080769#M1356836</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;You can do it 2 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;One is, you can have a w/sel Column for your table control. Go to the Layout -&amp;gt; Screen Attributes of the Table Control -&amp;gt; Check the w/sel column and give a name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;Correspondingly, declare a field of type char1 in your internal table declaration for the MARK field. Whenever you depress the MARK field on the table control, simultaneously, update the correspoding field in the internal table to 'X'. This way you can find the row number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or the most appropriate way would be to use GET CURSOR FIELD.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

get cursor field vbak-vbeln line selectedline.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further reference, you can check the link which has your same problem answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7963275"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 06:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-with-button/m-p/6080769#M1356836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T06:56:28Z</dc:date>
    </item>
  </channel>
</rss>

