<?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 from database ztable using index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866465#M672365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant ,&lt;/P&gt;&lt;P&gt;  I dont think there is any operation that can be performed on a data base table uisng index , you will have to use the primary key for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how you are getting the index of the database table , if you can get it then  you can surely also get the primary key fields of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 04:03:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T04:03:18Z</dc:date>
    <item>
      <title>delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866462#M672362</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;i want to delte from database table record using index&lt;/P&gt;&lt;P&gt;say for eg i have the index captured in a variable = 8 and i want to delted the 8th record from database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest how to do it&lt;/P&gt;&lt;P&gt;&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>Fri, 05 Oct 2007 03:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866462#M672362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T03:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866463#M672363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant , &lt;/P&gt;&lt;P&gt;  I dont think you can delete entries from  a database table using index ,  to delete you need to specify the primary key in the where clause.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 03:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866463#M672363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T03:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866464#M672364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;can i modify using index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or let me know i have data in a table zcust_em and it has only one record which is different from the database table which i want to modify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do it?&lt;/P&gt;&lt;P&gt;&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>Fri, 05 Oct 2007 03:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866464#M672364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T03:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866465#M672365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant ,&lt;/P&gt;&lt;P&gt;  I dont think there is any operation that can be performed on a data base table uisng index , you will have to use the primary key for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how you are getting the index of the database table , if you can get it then  you can surely also get the primary key fields of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:03:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866465#M672365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866466#M672366</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;i have a database table zmm_aims_opn&lt;/P&gt;&lt;P&gt;with fields &lt;/P&gt;&lt;P&gt;customer number name email&lt;/P&gt;&lt;P&gt;all are primary keys?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have captured the data in t_modify internal table which contains the data whihc is to be modified&lt;/P&gt;&lt;P&gt;but it is beig inserted not modified as this int table has the modified data hence it is not able to match with the database table and hence it is inserting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now ther are tow options to use cetain condtion to comapre the record in the d atabase table or use index&lt;/P&gt;&lt;P&gt;index will be better one pls suggest&lt;/P&gt;&lt;P&gt;or let me know if i can use where conditon &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or the table zcust_em contains the data which is to be now in the da tabase table how to  use this table to update in database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the modification code is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_aims_opn_modify. &lt;/P&gt;&lt;P&gt;modify zmm_aims_opn from table t_aims_opn_modify ( this is internal table having all records to be modified)&lt;/P&gt;&lt;P&gt;message s001 with 'Data saved'(004). &lt;/P&gt;&lt;P&gt;refresh:t_aims_opn_modify. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;lse. &lt;/P&gt;&lt;P&gt;message s001 with 'Data already saved'(003). &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;nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866466#M672366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866467#M672367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see my reply to a similar question you have posted,&lt;/P&gt;&lt;P&gt;&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;Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arun R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866467#M672367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866468#M672368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think it is the similar thread. Can you please close one thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866468#M672368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: delete from database ztable using index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866469#M672369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;I think this may be ur solution to update a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT table t_aims_opn_modify .&lt;/P&gt;&lt;P&gt;    UPDATE zmm_aims_opn SET email = table t_aims_opn_modify -email&lt;/P&gt;&lt;P&gt;                       WHERE email EQ table t_aims_opn_modify -email&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      COMMIT WORK.&lt;/P&gt;&lt;P&gt;     message s001 with 'Data saved'(003&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 05:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-ztable-using-index/m-p/2866469#M672369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T05:18:13Z</dc:date>
    </item>
  </channel>
</rss>

