<?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: deleting multiple records from table control using module pools in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160488#M751853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Satish,&lt;/P&gt;&lt;P&gt;            This is kiran kumar.G.I will send send a sample code plz check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u satify with my answer give me REWARD POINTS..&lt;/P&gt;&lt;P&gt;code in SE38:&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;when 'DELE'.&lt;/P&gt;&lt;P&gt;if gt_item-cflag = 'X'.&lt;/P&gt;&lt;P&gt;*Delete the Record from the Database Table&lt;/P&gt;&lt;P&gt;delete from yvbap where vbeln = gt_item-vbeln&lt;/P&gt;&lt;P&gt;                    and posnr = gt_item-posnr&lt;/P&gt;&lt;P&gt;                    and matnr = gt_item-matnr&lt;/P&gt;&lt;P&gt;                    and matkl = gt_item-matkl&lt;/P&gt;&lt;P&gt;                    and arktx = gt_item-arktx.&lt;/P&gt;&lt;P&gt;*Delete the Record from the Internal Table&lt;/P&gt;&lt;P&gt;delete gt_item index my_table-current_line.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE my_table is the TABLE CONTROL NAME..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE IN PAI EVENT:&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;*Populate data into internal Table&lt;/P&gt;&lt;P&gt;loop at gt_item.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0110.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;IF U WANT ENTIRE PROGRAM CODE JUST SEND BLANK MAIL TO THIS MAIL ID : gunuputi_kiran@yahoo.co.in.&lt;/P&gt;&lt;P&gt;subject line :SDN.SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Kumar.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2007 06:59:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-21T06:59:17Z</dc:date>
    <item>
      <title>deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160480#M751845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;         I am working with TABLE CONTROL in module pools.&lt;/P&gt;&lt;P&gt;          i want to delete multiple records which i select from &lt;/P&gt;&lt;P&gt;           Table control screen , in my case i am able to delete &lt;/P&gt;&lt;P&gt;            single record i.e first line whcih i enter , others i am unable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below i m providing my logic for delete .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DEL'.&lt;/P&gt;&lt;P&gt;LOOP AT IT_EMP WHERE CHECKBOX = 'X'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;DELETE ZDATA_12 FROM TABLE IT_EMP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looking for some replies as its a urgent requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help frnds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: satish kau on Dec 19, 2007 11:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 10:20:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160480#M751845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T10:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160481#M751846</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;I think that you could try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Verify (debugging) that checkbox is set to 'X' for every row that you have selected --&amp;gt; maybe something is failing and it is only set to 'X' for the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) If a) is correct, please try to delete the row using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE IT_EMP INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 10:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160481#M751846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T10:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160482#M751847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Satish&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;   Try this, this is my module program in this the user select the lines and click the push button in the screen then the records are updated in my ztable and these lines are deleted in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE app_rej INPUT.&lt;/P&gt;&lt;P&gt;  Case sy-ucomm.&lt;/P&gt;&lt;P&gt;    when 'APP' or 'APP1'.&lt;/P&gt;&lt;P&gt;      perform update using 'A'.&lt;/P&gt;&lt;P&gt;    When 'REJ'.&lt;/P&gt;&lt;P&gt;      Perform update using 'R'.&lt;/P&gt;&lt;P&gt;      w_flag1 = 'x'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " app_rej  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update  USING    VALUE(P_val) type any.&lt;/P&gt;&lt;P&gt;  loop at t_timesheet into fs_timesheet.&lt;/P&gt;&lt;P&gt;    if fs_timesheet-cbox = 'X'.&lt;/P&gt;&lt;P&gt;      fs_timesheet-app_stat = p_val.&lt;/P&gt;&lt;P&gt;      perform fill_time using fs_timesheet.&lt;/P&gt;&lt;P&gt;      update zcl_time_data1 from  FS_TIME_data.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;delete t_timesheet index sy-tabix.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0 and p_val = 'A'.&lt;/P&gt;&lt;P&gt;          message s015 with text-113.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0 and p_val = 'R'.&lt;/P&gt;&lt;P&gt;            message s015 with text-114.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        message s015 with text-115.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plzzz Reward if it is useful,&lt;/P&gt;&lt;P&gt;Mahi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 10:45:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160482#M751847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T10:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160483#M751848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frnds i want to delete eventually records from database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt; satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160483#M751848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160484#M751849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort table  it_emp by checkbox.&lt;/P&gt;&lt;P&gt;delete IT_EMP where checkbox = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are you deleting ZDATA_12 ??? bit confused...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160484#M751849</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2007-12-19T11:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160485#M751850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From database table? Which database table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you exactly trying to do? The user selects rows to delect in the table control and then delete this rows in the database table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please specify your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, David!;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160485#M751850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160486#M751851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;  Your delete statement is in side the loop so don't use table key word it may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DEL'.&lt;/P&gt;&lt;P&gt;LOOP AT IT_EMP WHERE CHECKBOX = 'X'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;DELETE ZDATA_12 FROM TABLE IT_EMP.&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;DELETE { {FROM target [WHERE sql_cond]} (use this syntax)&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plzz Reward if useful,&lt;/P&gt;&lt;P&gt;Mahi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160486#M751851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160487#M751852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar requirement in my project.&lt;/P&gt;&lt;P&gt;You will have to use two internal tables in order to delete the entries from the standard Z tables.&lt;/P&gt;&lt;P&gt;Here, tb_line is the name of internal table used for the table control.&lt;/P&gt;&lt;P&gt;tb_line_del is the internal table used to store the deleted entries from the table control.&lt;/P&gt;&lt;P&gt;The code when clicking on DELETE button is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt; when 'DELETE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;To delete the selected line from table control&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;      loop at tb_line.&lt;/P&gt;&lt;P&gt;        if tb_line-mark = 'X'.&lt;/P&gt;&lt;P&gt;          move-corresponding tb_line to tb_line_del.&lt;/P&gt;&lt;P&gt;          append tb_line_del.&lt;/P&gt;&lt;P&gt;          delete tb_line.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the entries are there in the tb_line_del internal table,now the following code has to be written to delete the entries from the Z table corresponding to the values in the tb_line_del internal table.&lt;/P&gt;&lt;P&gt;Here,TCL_ITEMS is the name of the table control.First you need to check if there are any entries in the table control.Then you can go ahead withe the deletion of rows from the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written this code in a form by name 'SAVE' .In the PAI module of the screen when clicking on the save button you should use the following code.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;perform Save subroutine to perform save operation&lt;/STRONG&gt;******&lt;/P&gt;&lt;P&gt;      PERFORM save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for form 'SAVE' would be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF TCL_ITEM-LINES NE 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Update the entries into header table&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;  MODIFY ztm09_ekko.                      *&lt;STRONG&gt;ztm09_ekko,ztm09_ekpo are the z tables used&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tb_line.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-ebeln = ztm09_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-ebelp = tb_line-ebelp.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-matnr = tb_line-matnr.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-menge = tb_line-menge.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-meins = tb_line-meins.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-netpr = tb_line-netpr.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-waers = tb_line-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;Update the entries into item table&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;    MODIFY ztm09_ekpo.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tb_line_del.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-ebeln = ztm09_ekko-ebeln.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-ebelp = tb_line_del-ebelp.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-matnr = tb_line_del-matnr.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-menge = tb_line_del-menge.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-meins = tb_line_del-meins.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-netpr = tb_line_del-netpr.&lt;/P&gt;&lt;P&gt;    ztm09_ekpo-waers = tb_line_del-waers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Delete the entries from ztm09_ekpo&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;    DELETE ztm09_ekpo.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;Displaying the corresponding messages&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;  MESSAGE 'SAVED SUCCESSFULLY' TYPE 'I'.&lt;/P&gt;&lt;P&gt;  CLEAR ztm09_ekko.&lt;/P&gt;&lt;P&gt;  CLEAR tb_line.      REFRESH tb_line.&lt;/P&gt;&lt;P&gt;    LEAVE TO SCREEN 100.&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kashyap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kashyap Ivaturi on Dec 21, 2007 7:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160487#M751852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: deleting multiple records from table control using module pools</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160488#M751853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Satish,&lt;/P&gt;&lt;P&gt;            This is kiran kumar.G.I will send send a sample code plz check it once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u satify with my answer give me REWARD POINTS..&lt;/P&gt;&lt;P&gt;code in SE38:&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;when 'DELE'.&lt;/P&gt;&lt;P&gt;if gt_item-cflag = 'X'.&lt;/P&gt;&lt;P&gt;*Delete the Record from the Database Table&lt;/P&gt;&lt;P&gt;delete from yvbap where vbeln = gt_item-vbeln&lt;/P&gt;&lt;P&gt;                    and posnr = gt_item-posnr&lt;/P&gt;&lt;P&gt;                    and matnr = gt_item-matnr&lt;/P&gt;&lt;P&gt;                    and matkl = gt_item-matkl&lt;/P&gt;&lt;P&gt;                    and arktx = gt_item-arktx.&lt;/P&gt;&lt;P&gt;*Delete the Record from the Internal Table&lt;/P&gt;&lt;P&gt;delete gt_item index my_table-current_line.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE my_table is the TABLE CONTROL NAME..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE IN PAI EVENT:&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;*Populate data into internal Table&lt;/P&gt;&lt;P&gt;loop at gt_item.&lt;/P&gt;&lt;P&gt; MODULE USER_COMMAND_0110.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;IF U WANT ENTIRE PROGRAM CODE JUST SEND BLANK MAIL TO THIS MAIL ID : gunuputi_kiran@yahoo.co.in.&lt;/P&gt;&lt;P&gt;subject line :SDN.SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Kumar.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2007 06:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/deleting-multiple-records-from-table-control-using-module-pools/m-p/3160488#M751853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-21T06:59:17Z</dc:date>
    </item>
  </channel>
</rss>

