<?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: alv delete rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944777#M1153201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;before populating into the ALV .just do what eever you want.. and at finally you just send to the alv..&lt;/P&gt;&lt;P&gt;this is the one of the best approach ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2008 06:24:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-24T06:24:26Z</dc:date>
    <item>
      <title>alv delete rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944776#M1153200</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;Ive created an ALV report using REUSE_ALV_GRID_DISPLAY FM. I want to delete selected rows. The code is working fine, however after deletion i've to refresh the display to show new data set. for e.g. if initially i had 10 rows and i deleted 3 rows it should show me 7 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this , i'm repopulating the internal table and calling the REUSE_ALV_GRID_DISPLAY FM again. This is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know whether i'm using the optimal approach or does anyone see a drawback in this method &amp;amp; suggest a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Guys for going thro this post !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 06:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944776#M1153200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: alv delete rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944777#M1153201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;before populating into the ALV .just do what eever you want.. and at finally you just send to the alv..&lt;/P&gt;&lt;P&gt;this is the one of the best approach ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 06:24:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944777#M1153201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T06:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: alv delete rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944778#M1153202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, there are 2 approches to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.   1. You delete the data base table entries ,&lt;/P&gt;&lt;P&gt;      2. reselect evrything from databse in inetrnal table.&lt;/P&gt;&lt;P&gt;      3. show internal table details in alv.&lt;/P&gt;&lt;P&gt;this will make sure your databse delete was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.   1. You delete the data base table entries ,&lt;/P&gt;&lt;P&gt;      2. Pop us the success message / error message if database deleet successds / falis.&lt;/P&gt;&lt;P&gt;      3. delete the entris from original internal table &lt;/P&gt;&lt;P&gt;      4. Deisplay the internal table entries again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this avaoids the databse selection again and this will be more optimized approch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this answers your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 07:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944778#M1153202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T07:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: alv delete rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944779#M1153203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have used REUSE_ALV_GRID_DISPLAY FM.As far as mu understanding goes, you want to delete selected rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this , what i suggest you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) final internal table consists of the data before deletion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) make the necessary deletions/additions in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) populate into another internal table final_int_table_temp which is of the similar structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) use this temp final table in the Fm and display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem with the repopulating the internal table,is we are giving effort to the Database which is again a performance issue hence whatever changes you want to do confine it upto the internal table level only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you understood the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get back if still you have the doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;srikanth.p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 07:48:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944779#M1153203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T07:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: alv delete rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944780#M1153204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx guys , point added&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 09:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-delete-rows/m-p/4944780#M1153204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T09:08:41Z</dc:date>
    </item>
  </channel>
</rss>

