<?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: delete data into table before insert in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251234#M1213205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply write the following code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If MARA is your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DELETE from MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete all entries.&lt;/P&gt;&lt;P&gt;If you want to delete only some entries, you can provide a  &lt;STRONG&gt;where&lt;/STRONG&gt; clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then write the code for inserting the entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 11:28:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-23T11:28:36Z</dc:date>
    <item>
      <title>delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251225#M1213196</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;how to write a code for delete the data first from ztable before inserting the data into the same table after execution of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  itab like ztable occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ztable is not initial.&lt;/P&gt;&lt;P&gt;delete itab.&lt;/P&gt;&lt;P&gt;modify ztable from itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this code is not working.Plz reply as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vipul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251225#M1213196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251226#M1213197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   you can use refresh itab[].&lt;/P&gt;&lt;P&gt;this would delete all the data from itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251226#M1213197</guid>
      <dc:creator>viquar_iqbal</dc:creator>
      <dc:date>2009-02-23T11:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251227#M1213198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you want to delete all the rows or a particular row?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251227#M1213198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251228#M1213199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to delete all the rows but when i put debug it show it skip from the if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251228#M1213199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251229#M1213200</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;Can i have ur reqiurement clear....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur trying to delete the table entries first then trying to insert the entries to the same table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so let me know,that  the entries ur deleting are same as that of the entries ur inserting.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not y u want to delete the table entries first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251229#M1213200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251230#M1213201</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;Your requirement is not clear. Please specify it clearly.&lt;/P&gt;&lt;P&gt;you have deleted itab then modifying ztable from itab. how come data will be there in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251230#M1213201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251231#M1213202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If ztable is not initial.
clear: itab , itab[]."delete itab.
modify itab from ztable.
endif.


clear: itab , itab[]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: tahir naqqash on Feb 23, 2009 4:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251231#M1213202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251232#M1213203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;delete itab from 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;modify ztable from itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251232#M1213203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251233#M1213204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think U can check if Ztable is empty or not ..&lt;/P&gt;&lt;P&gt;remove this statement ..&lt;/P&gt;&lt;P&gt;write as ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab[] is not initial.&lt;/P&gt;&lt;P&gt;  clear itab[].&lt;/P&gt;&lt;P&gt;  modify ztable from itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251233#M1213204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251234#M1213205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply write the following code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If MARA is your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;DELETE from MARA.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will delete all entries.&lt;/P&gt;&lt;P&gt;If you want to delete only some entries, you can provide a  &lt;STRONG&gt;where&lt;/STRONG&gt; clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then write the code for inserting the entries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251234#M1213205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251235#M1213206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    When you are checking a table whether it is initial  or not.&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; if itab[] is not initial.....endif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and if you want to delete the data in internal table.&lt;/P&gt;&lt;P&gt;You can always use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Refresh : itab[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or if you want to delete only the cirrent line Use.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; delete itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this may help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitteja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251235#M1213206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251236#M1213207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give your requirement very clearly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251236#M1213207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251237#M1213208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete ztable&lt;/P&gt;&lt;P&gt;insert ztable from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251237#M1213208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251238#M1213209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx my problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 11:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251238#M1213209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T11:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete data into table before insert</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251239#M1213210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Try doing this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   DATA: itab type standard tabe of ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select * from ztable into table itab.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      delete ztable.&lt;/P&gt;&lt;P&gt;    else &lt;/P&gt;&lt;P&gt;      modify ztable from itab. &lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work, I have tried it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Suraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 12:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-data-into-table-before-insert/m-p/5251239#M1213210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T12:09:04Z</dc:date>
    </item>
  </channel>
</rss>

