<?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: How to retrieve data from Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822507#M660265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement this code in your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be some button on your screen and after selecting some or all the records from the table control you must be pressing some button for collecting the selected rows from the table control too your internal table.&lt;/P&gt;&lt;P&gt;Put Fcode of that button in WHEN condition in this CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: kc_sel_flag TYPE char01    VALUE 'X'.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN kc_sel.&lt;/P&gt;&lt;P&gt;      PERFORM f_sel_desel USING kc_sel_flag.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_sel_desel&lt;/P&gt;&lt;P&gt;     USING    p_sel_desel TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_cond_type-z_sel = p_sel_desel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the Itab.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MODIFY it_cond_type&lt;/P&gt;&lt;P&gt;         FROM wa_cond_type&lt;/P&gt;&lt;P&gt;         TRANSPORTING z_sel&lt;/P&gt;&lt;P&gt;         WHERE mandt EQ sy-mandt. "Where cond is only to specify all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_sel_desel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that all the selected records will be having 'X' in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mueksh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 08:10:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-20T08:10:27Z</dc:date>
    <item>
      <title>How to retrieve data from Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822506#M660264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am a Beginner to ABAP. I want to know how to fetch the selected rows from Screen table control.&lt;/P&gt;&lt;P&gt;Here is my scenario:&lt;/P&gt;&lt;P&gt;I am having one table control with selection field. Once i select some rows means the selected rows are going to be stored in one Internal Table.&lt;/P&gt;&lt;P&gt;If any body knows the thing means please reply me the logic as well as giving me some code sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 07:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822506#M660264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T07:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data from Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822507#M660265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mithun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to implement this code in your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be some button on your screen and after selecting some or all the records from the table control you must be pressing some button for collecting the selected rows from the table control too your internal table.&lt;/P&gt;&lt;P&gt;Put Fcode of that button in WHEN condition in this CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: kc_sel_flag TYPE char01    VALUE 'X'.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN kc_sel.&lt;/P&gt;&lt;P&gt;      PERFORM f_sel_desel USING kc_sel_flag.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_sel_desel&lt;/P&gt;&lt;P&gt;     USING    p_sel_desel TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set the value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  wa_cond_type-z_sel = p_sel_desel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the Itab.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MODIFY it_cond_type&lt;/P&gt;&lt;P&gt;         FROM wa_cond_type&lt;/P&gt;&lt;P&gt;         TRANSPORTING z_sel&lt;/P&gt;&lt;P&gt;         WHERE mandt EQ sy-mandt. "Where cond is only to specify all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f_sel_desel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that all the selected records will be having 'X' in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mueksh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 08:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822507#M660265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T08:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve data from Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822508#M660266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u need to do in order to capture is&lt;/P&gt;&lt;P&gt;in SE51 under the table control properties u have a property called W/SelColumn&lt;/P&gt;&lt;P&gt;give in some name to it (be ROW_CHK)&lt;/P&gt;&lt;P&gt;and now include a field &lt;/P&gt;&lt;P&gt;data : chk(1) type c. &lt;/P&gt;&lt;P&gt;to the internal table which u r passing to the tab ctrl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in PAI of tab ctrl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this way&lt;/P&gt;&lt;P&gt;if ROW_CHK = 'X'.&lt;/P&gt;&lt;P&gt;chk = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way u can capture the rows selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now if u wnt to knw the selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write as &lt;/P&gt;&lt;P&gt;loop at itab where chk = 'X'.&lt;/P&gt;&lt;P&gt;move the selected rows to a new int table........&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 08:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-from-table-control/m-p/2822508#M660266</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-09-20T08:15:57Z</dc:date>
    </item>
  </channel>
</rss>

