<?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: Avoid from user to delete data in internal table inside view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036839#M1171446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best thing to do is to use [table maintanance events|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in your case you can use &lt;STRONG&gt;03 event - Before deleting the data displayed&lt;/STRONG&gt;. In the routine you just check appropriate conditions like if certain combinations of records exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Dec 2008 21:43:32 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-12-30T21:43:32Z</dc:date>
    <item>
      <title>Avoid from user to delete data in internal table inside view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036838#M1171445</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 VIEW and i want to avoid from the user the option to delete specific combination for that in the view code i keep the table extract before the modify and after and then i have 2 internal tables one with  original data and the second with data after modifying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i give example.&lt;/P&gt;&lt;P&gt;Assume i want to avoid from the user to delete the combination a1 b1 c1 mail.&lt;/P&gt;&lt;P&gt;and the user mark the line in the view to delete, i see in second table that i get mark sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;field1  field 2 field 3 description 
a1       a2        a3              mail
b1       b2        b3              notif
c1       c2        c3              mail  
d1       d2        d3              notif
a1       a2        a3              task
 f1       f2         f3               notif


 itab after

field1  field 2 field 3   description  mark
a1        a2         a3           mail  
b1        b2         b3           notif
c1        c2         c3           mail
d1        d2         d3           notif
a1        a2         a3           notif       M
 f1        f2          f3            task  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing i want to give the user option to delete the combination &lt;STRONG&gt;just&lt;/STRONG&gt; if in the table &lt;/P&gt;&lt;P&gt;there is no entry with the combination but different description i.e.&lt;/P&gt;&lt;P&gt;if in the table i have for the combination :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a1        a2         a3           mail  &lt;/P&gt;&lt;P&gt;a1        a2         a3           notif  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user can't delete it.&lt;/P&gt;&lt;P&gt; but if he have in table just one entire like below  with description &lt;STRONG&gt;mail&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a1        a2         a3           mail  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;he can delete it .&lt;/P&gt;&lt;P&gt;what is the best way to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 20:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036838#M1171445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-30T20:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid from user to delete data in internal table inside view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036839#M1171446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best thing to do is to use [table maintanance events|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think in your case you can use &lt;STRONG&gt;03 event - Before deleting the data displayed&lt;/STRONG&gt;. In the routine you just check appropriate conditions like if certain combinations of records exists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should help you&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 21:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036839#M1171446</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-30T21:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid from user to delete data in internal table inside view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036840#M1171447</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;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if  the user Modify the combination and after that he push to delete it,&lt;/P&gt;&lt;P&gt;i want also to avoid that any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have idea how to do the loop i new to abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2008 22:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036840#M1171447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-30T22:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Avoid from user to delete data in internal table inside view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036841#M1171448</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;&lt;/P&gt;&lt;P&gt;Assume i want to do that in the &lt;STRONG&gt;screen&lt;/STRONG&gt; (i don't want to use event for this issue)  i need some help with the loop  on the 2 table assume i have itab_before and itab_after,&lt;/P&gt;&lt;P&gt;i  any appreciate help with that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Michael  A on Dec 31, 2008 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 06:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avoid-from-user-to-delete-data-in-internal-table-inside-view/m-p/5036841#M1171448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T06:21:54Z</dc:date>
    </item>
  </channel>
</rss>

