<?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: Row Selection - Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575009#M1271569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TOP include add a variable "DATA: sel type c."&lt;/P&gt;&lt;P&gt;that it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 03:51:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T03:51:09Z</dc:date>
    <item>
      <title>Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575001#M1271561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  We all know that in order to select a row from a table control, we need to enter a name in the w/Selection &lt;/P&gt;&lt;P&gt;  of the Table Control attributes and declare a field in the internal table of type char1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But, in my case, I am not using any internal table with the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am just writing LOOP WITH CONTROL &amp;lt;TABLE CONTROL NAME&amp;gt; in both PBO n PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am just reading data from the Table Control and storing it in an Internal table. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Can anyone please tell me how to incorporate the Row Selection Logic ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Based on the row selected, I need to display some info to the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have already given a name to the w/selection field of the table control attributes. Now how should I &lt;/P&gt;&lt;P&gt;  use this name in the code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 05:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575001#M1271561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T05:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575002#M1271562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Table Control is nothing but displaying the data on a screen in a tabular form not but a table form.&lt;/P&gt;&lt;P&gt;then how come u r reading the data from the table control with out any internal table defined for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think your requirement is only possible when u declare a internal table for table control &lt;/P&gt;&lt;P&gt;with w/selection field defined for row selection and then based on ur row selection &lt;/P&gt;&lt;P&gt;try to store the data into another internal and display that to the users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575002#M1271562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575003#M1271563</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;Inorder to get the select buttons on the rows of the table control , for the table control attributes select the check box with sel column and give selection col.name as WF_SEL (for eg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With in PAI....under loop on internal table which is containing data displayed in table control....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FIELD wf_sel MODULE m_delete_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE m_delete_row INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF wf_sel = 'X' .&lt;/P&gt;&lt;P&gt;    CLEAR wf_delete_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    tb_table_cont-po_cond = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY tb_table_cont INDEX tc_fact_in-current_line&lt;/P&gt;&lt;P&gt;    TRANSPORTING po_cond     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wf_delete_row = tc_fact_in-current_line.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575003#M1271563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575004#M1271564</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the details of the selected row in the table control, maintain an internal table which has the same data &amp;amp; structure of the table control in the same order. There is a system field "SY-LOOPC" which gets populated with selected row no in the table control(in the PAI event). With the help of that value, get the details from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575004#M1271564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575005#M1271565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the PAI loop just create a module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there you check w\Selection parameter = 'X'.&lt;/P&gt;&lt;P&gt;if parameter = 'X'.&lt;/P&gt;&lt;P&gt;&amp;lt;move tbcl data to your internal table.&amp;gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;lt;Keep a extra field in your internal table type c and mark it X in the internal table when the condition is satisfied&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this discussion was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 06:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575005#M1271565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575006#M1271566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suvendu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have named the w/selection parameter as SEL in the table control attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am using ITAB only for pushing data from table control to ITAB and again displaying the records in the &lt;/P&gt;&lt;P&gt;   table control entered earlier. Now I need to select this row and press one button to perform some action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   So can u please tell me whether I need to include an extra parameter of type c in this ITAB ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Also on pressing the row selection button, will the other buttons for each row will also be selected ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because according to my requirement, I need to show different things at each row on press of the corresponding push buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 09:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575006#M1271566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T09:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575007#M1271567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No you don't have to add a new parameter to ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under PAI -&amp;gt; LOOP endloop just add a module and put this code under this module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sel = 'X'.&lt;/P&gt;&lt;P&gt;move screen data to temporary internal table.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then add one more MODULE after end of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you can play around with the data in the temporary table and then update the data back to ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the discussion was helpful and you got some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575007#M1271567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575008#M1271568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Suvendu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I exactly did what u have written, but it is showing error as " Unknown data SEL, not able to recognise".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What should I do now ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 11:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575008#M1271568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Row Selection - Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575009#M1271569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TOP include add a variable "DATA: sel type c."&lt;/P&gt;&lt;P&gt;that it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Suvendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 03:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-selection-table-control/m-p/5575009#M1271569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T03:51:09Z</dc:date>
    </item>
  </channel>
</rss>

