<?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 Delete entries from database tables using update function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607749#M1085848</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;&lt;/P&gt;&lt;P&gt;I need to delete entries from database tables using the update function module. I am calling the FM by this method - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_CL_DELETE' IN UPDATE TASK EXPORTING P1 = L_GUID P2 = TABLENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem with update function modules is that it does not accept reference parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What code shall i write exactly in the FM so that enties get deleted from the databse table TABLENAME for the parameter L_GUID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradipta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Oct 2008 05:38:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-18T05:38:07Z</dc:date>
    <item>
      <title>Delete entries from database tables using update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607749#M1085848</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;&lt;/P&gt;&lt;P&gt;I need to delete entries from database tables using the update function module. I am calling the FM by this method - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_CL_DELETE' IN UPDATE TASK EXPORTING P1 = L_GUID P2 = TABLENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem with update function modules is that it does not accept reference parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What code shall i write exactly in the FM so that enties get deleted from the databse table TABLENAME for the parameter L_GUID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pradipta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2008 05:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607749#M1085848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-18T05:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from database tables using update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607750#M1085849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use Pass by Value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the check box against the parameter. you can see two checkboxes &lt;STRONG&gt;optional and passby value&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2008 05:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607750#M1085849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-18T05:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from database tables using update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607751#M1085850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pradipta Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can delete the Database table entries using MODIFY keyword also it but first using MODIFY table just get all the data from the database table to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After fetching all the data then keep the loop to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify database table name from wa_itab index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ITAB and WA_ITAB structure must be same just like the DATABASE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work ..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Oct 2008 06:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-database-tables-using-update-function-module/m-p/4607751#M1085850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-18T06:32:18Z</dc:date>
    </item>
  </channel>
</rss>

