<?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: Set alert When delete record from DB table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487760#M1419922</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;You have to call the function module POPUP_TO_CONFIRM as told by harine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the function module as defined and write your code when sy-subrc =0. as defined&lt;/P&gt;&lt;P&gt;that will definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 06:07:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-22T06:07:33Z</dc:date>
    <item>
      <title>Set alert When delete record from DB table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487756#M1419918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI exparts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to write a function for delete record from DB table suppose KNA1.&lt;/P&gt;&lt;P&gt;Before deleting the record I want to see a alert message which contain two button "YES" &amp;amp; "NO".&lt;/P&gt;&lt;P&gt;If  YES data will be delete .&lt;/P&gt;&lt;P&gt;If NO data will not delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your regards&lt;/P&gt;&lt;P&gt;Rayhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487756#M1419918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set alert When delete record from DB table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487757#M1419919</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;You can search in forums instead of waiting for the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5731699"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487757#M1419919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set alert When delete record from DB table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487758#M1419920</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;you can give a pop-up message using FM POPUP_TO_CONFIRM after user command 'DELETE' or before deleting from DB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487758#M1419920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set alert When delete record from DB table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487759#M1419921</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;Try using the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: l_answer type c.

If sy-ucomm = 'DELETE'.

call function 'POPUP_TO_CONFIRM'
        exporting
         titlebar                    = 'Deletion Confirmation'
          text_question               = 'Do you want to delete the record?'
          text_button_1               = 'Yes'
          icon_button_1               = 'X'
          text_button_2               = 'No'
          icon_button_2               = 'X'
          default_button              = 1
          display_cancel_button       = 
       importing
         answer                      = l_answer
      exceptions
         text_not_found              = 1
         others                      = 2
                .
      if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

If l_answer = 1.

"code for deleting the record from the database.

endif.

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487759#M1419921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set alert When delete record from DB table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487760#M1419922</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;You have to call the function module POPUP_TO_CONFIRM as told by harine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call the function module as defined and write your code when sy-subrc =0. as defined&lt;/P&gt;&lt;P&gt;that will definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 06:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alert-when-delete-record-from-db-table/m-p/6487760#M1419922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T06:07:33Z</dc:date>
    </item>
  </channel>
</rss>

