<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594051#M266952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks fr ur help.but still i m not able to delete the row.please help me by giving code for beloww statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE 1 database table named zSTUD_TEMP having field sid,sname,saddress.&lt;/P&gt;&lt;P&gt;Please give me the code for deleteing row from database table through table control.&lt;/P&gt;&lt;P&gt;its vry urgent.i have to use it in project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DELETE'.&lt;/P&gt;&lt;P&gt;      MODIFY i_ZSTUD_TEMP FROM I_ZSTUD_TEMP INDEX&lt;/P&gt;&lt;P&gt;            tab_cntrl-CURRENT_LINE transporting CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;      LOOP AT i_ZSTUD_TEMP WHERE CHECK = 'X'.&lt;/P&gt;&lt;P&gt;        APPEND i_ZSTUD_TEMP TO WA_ZSTUD_TEMP1.&lt;/P&gt;&lt;P&gt;        DELETE FROM ZSTUD_TEMP WHERE SID EQ WA_ZSTUD_TEMP1-SID.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 05:55:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T05:55:56Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594051#M266952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks fr ur help.but still i m not able to delete the row.please help me by giving code for beloww statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE 1 database table named zSTUD_TEMP having field sid,sname,saddress.&lt;/P&gt;&lt;P&gt;Please give me the code for deleteing row from database table through table control.&lt;/P&gt;&lt;P&gt;its vry urgent.i have to use it in project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DELETE'.&lt;/P&gt;&lt;P&gt;      MODIFY i_ZSTUD_TEMP FROM I_ZSTUD_TEMP INDEX&lt;/P&gt;&lt;P&gt;            tab_cntrl-CURRENT_LINE transporting CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;      LOOP AT i_ZSTUD_TEMP WHERE CHECK = 'X'.&lt;/P&gt;&lt;P&gt;        APPEND i_ZSTUD_TEMP TO WA_ZSTUD_TEMP1.&lt;/P&gt;&lt;P&gt;        DELETE FROM ZSTUD_TEMP WHERE SID EQ WA_ZSTUD_TEMP1-SID.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 05:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594051#M266952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594052#M266953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To delete and add rows in the table control, first set the selection mode property and give a name to it (Say "SEL").&lt;/P&gt;&lt;P&gt;Either u can select the rows in the table control and press the push button.&lt;/P&gt;&lt;P&gt;Then in PAI write the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 9001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE DeleteADDRecord INPUT.&lt;/P&gt;&lt;P&gt;if SEL = 'X' AND sy-ucomm = 'DELETE'.&lt;/P&gt;&lt;P&gt;delete it_purchase index tc1-Current_line.&lt;/P&gt;&lt;P&gt;elseif SEL = 'X' AND sy-ucomm = 'ADD'.&lt;/P&gt;&lt;P&gt;it_purchase-itemno = tc1-Current_line + 1.&lt;/P&gt;&lt;P&gt;insert it_purchase index tc1-Current_line.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE. " DeleteRecord INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the above code.&lt;/P&gt;&lt;P&gt;delete rows&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="2066146"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 06:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594052#M266953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T06:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594053#M266954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please stop creating new threads for the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem can be solved by having a 'marking method'. This can be achieved by having a marking column in the table control. &lt;/P&gt;&lt;P&gt;Check if this is present in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the marking column is not created then you'll have to get the selected line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically the table control is based on the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is you have to identify the lines in the internal table and then put them in another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use this internal table to delete from the Database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of queries feel free to ask&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 06:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/1594053#M266954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T06:23:20Z</dc:date>
    </item>
  </channel>
</rss>

