<?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 options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989066#M1342219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use POPUP_TO_CONFIRM Function For This Purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'POPUP_TO_CONFIRM'
   EXPORTING
     titlebar       = 'Delete a Record'
     text_question  = 'Confirm Deletion'
     text_button_1  = 'Yes'(001)
     text_button_2  = 'No'(002)
     default_button = '1'
   IMPORTING
     answer         = answer.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 06:00:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-18T06:00:27Z</dc:date>
    <item>
      <title>delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989065#M1342218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have report program. In selection screen I have a text box. whenever user enters value in that and click on Delete from CustoTable pushbutton the table entries should delete from that table. &lt;/P&gt;&lt;P&gt;But before deleting the table entries I should include a query that asks before the deletion values. whenever user says OK the table entries should be deleted. Whenever user says CANCEL it shouldn't deleted from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 05:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989065#M1342218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T05:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989066#M1342219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use POPUP_TO_CONFIRM Function For This Purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'POPUP_TO_CONFIRM'
   EXPORTING
     titlebar       = 'Delete a Record'
     text_question  = 'Confirm Deletion'
     text_button_1  = 'Yes'(001)
     text_button_2  = 'No'(002)
     default_button = '1'
   IMPORTING
     answer         = answer.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 06:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989066#M1342219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T06:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989067#M1342220</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 use following code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'POPUP_TO_CONFIRM'
         EXPORTING
           titlebar              = 'Delete'
           text_question         = 'Are you Sure?'
           text_button_1         = 'Yes'
           icon_button_1         = 'ICON_CHECKED'
           text_button_2         = 'No'
           icon_button_2         = 'ICON_INCOMPLETE'
           default_button        = '2'
           display_cancel_button = 'X'
           popup_type            = 'ICON_MESSAGE_QUESTION'
         IMPORTING
           answer                = ans
         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 ans = 1 "means user has pressed ok
"delete statement
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 06:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989067#M1342220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989068#M1342221</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 not delete from database table .&lt;/P&gt;&lt;P&gt;Use a loop on internal table and delete inside comparing values in where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get all the records in the internal table and then use this command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete &amp;lt;database table&amp;gt; from table itab.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;commit work.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ztarget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;include structure ztarget.&lt;/P&gt;&lt;P&gt;data : end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table itab from ztarget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;delete from ztarget where kunnr = itab-kunnr.&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;regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 06:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989068#M1342221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T06:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989069#M1342222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are all yours..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WS_MSG&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you display an one-line message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_STEP&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you make a question whether the user wishes to perform the step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_MESSAGE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you inform the user about a specific decision point during an action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_VALUE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE&lt;/P&gt;&lt;P&gt;Desc. Provide user with several choices as radio buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE_WITH_MESSAGE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DISPLAY_TEXT&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you display a two-line message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_SELECT_MONTH&lt;/P&gt;&lt;P&gt;Desc. Popup to choose a month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;Desc. Provide a display of a table for user to select one, with the value of the table line returned when selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM&lt;/P&gt;&lt;P&gt;Desc. Pop-up dialog confirm an action before it is carried out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DISPLAY_TEXT&lt;/P&gt;&lt;P&gt;Desc. Displays a text in a modal screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_INFORM&lt;/P&gt;&lt;P&gt;Desc. Displays several lines of text. No OK or Cancel buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM/POPUP_TO_DISPLAY_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TH_POPUP  Good One!&lt;/P&gt;&lt;P&gt;Desc. Display a popup system message on a specific users screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_LOSS_OF_DATA&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you make a question whether the user wishes to perform a processing step with loss of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_STEP&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you make a question whether the user wishes to perform the step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_MESSAGE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you inform the user about a specific decision point during an action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_CONFIRM_WITH_VALUE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you make a question whether the user wishes to perform a processing step with a particular object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE&lt;/P&gt;&lt;P&gt;Desc. Provide user with several choices as radio buttons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DECIDE_WITH_MESSAGE&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you inform the user about a specific decision point via a diagnosis text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_TO_DISPLAY_TEXT&lt;/P&gt;&lt;P&gt;Desc. Create a dialog box in which you display a two-line message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;Desc. Provide a display of a table for user to select one, with the value of the table line returned when selected. &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;Sumit Nene.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 06:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989069#M1342222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: delete options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989070#M1342223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;USE THE FOLLOWING CODES.&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN ' CUST'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         DEFAULTOPTION        = 'N'&lt;/P&gt;&lt;P&gt;         TEXTLINE1            = 'Do U Want To Delete The Text'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          TEXTLINE2            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TITEL                = 'Confirmation'&lt;/P&gt;&lt;P&gt;        START_COLUMN          = 25&lt;/P&gt;&lt;P&gt;        START_ROW             = 6&lt;/P&gt;&lt;P&gt;        CANCEL_DISPLAY        = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ANSWER                = ANS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ANS EQ 'J'.&lt;/P&gt;&lt;P&gt; DELETE TEXT.&lt;/P&gt;&lt;P&gt; ELSEIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 06:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-options/m-p/5989070#M1342223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T06:10:45Z</dc:date>
    </item>
  </channel>
</rss>

