<?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: error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962372#M395538</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;The requirement is quite confusing. Please elaborate in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, what i understood, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vlgnum ne dlgnum.&lt;/P&gt;&lt;P&gt;call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;textline1 = text-001 " Unsaved data will be lost.&lt;/P&gt;&lt;P&gt;titel = text-002        " Do you want to continue ?&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;answer = answer.&lt;/P&gt;&lt;P&gt;case answer.&lt;/P&gt;&lt;P&gt;when 'N'.&lt;/P&gt;&lt;P&gt;message i143(zz) with 'Unsaved data lost.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'J'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2007 12:07:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-07T12:07:50Z</dc:date>
    <item>
      <title>error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962371#M395537</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 have to display a message box asking the user he/she want to save data or not.If they select no then i have to reach selection screen but at present i am not getting this I am coming out of the program.For this I am writing below code in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vlgnum ne dlgnum.&lt;/P&gt;&lt;P&gt;    call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        textline1 = text-001&lt;/P&gt;&lt;P&gt;        titel     = text-002&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        answer    = answer.&lt;/P&gt;&lt;P&gt;    case answer.&lt;/P&gt;&lt;P&gt;      when 'N'.&lt;/P&gt;&lt;P&gt;        leave to screen 0.&lt;/P&gt;&lt;P&gt;      when 'J'.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;I also need to display error message in this messagebox but it displaying warning message.Please tell me how to solve these 2 problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962371#M395537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962372#M395538</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;The requirement is quite confusing. Please elaborate in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, what i understood, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vlgnum ne dlgnum.&lt;/P&gt;&lt;P&gt;call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;textline1 = text-001 " Unsaved data will be lost.&lt;/P&gt;&lt;P&gt;titel = text-002        " Do you want to continue ?&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;answer = answer.&lt;/P&gt;&lt;P&gt;case answer.&lt;/P&gt;&lt;P&gt;when 'N'.&lt;/P&gt;&lt;P&gt;message i143(zz) with 'Unsaved data lost.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'J'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962372#M395538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962373#M395539</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;use this FM POPUP_TO_CONFIRM_DATA_LOSS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is absolete now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : c type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   DEFAULTOPTION       = 'J'&lt;/P&gt;&lt;P&gt;    TITEL               = 'shiva'&lt;/P&gt;&lt;P&gt;    START_COLUMN        = 25&lt;/P&gt;&lt;P&gt;   START_ROW           = 6&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   ANSWER              = c&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message e888(sabapdocu).&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962373#M395539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962374#M395540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even I have come across this requirement.&lt;/P&gt;&lt;P&gt;Try the following code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_SELTAB LIKE STANDARD TABLE OF rsparams WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;IF ANSWER = 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; T_SELTAB-SELNAME = TEXT-001.&lt;/P&gt;&lt;P&gt; T_SELTAB-SIGN    = 'I'.&lt;/P&gt;&lt;P&gt; T_SELTAB-OPTION  = 'EQ'.&lt;/P&gt;&lt;P&gt; T_SELTAB-LOW     = 'X'.&lt;/P&gt;&lt;P&gt; APPEND T_SELTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT ZMUMM009&lt;/P&gt;&lt;P&gt; WITH   SELECTION-TABLE T_SELTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REFRESH T_SELTAB.&lt;/P&gt;&lt;P&gt; MESSAGE S000(ZM) WITH 'Processing cancelled by user'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should fulfill both ur answers...&lt;/P&gt;&lt;P&gt;Reward if found useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2007 12:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-message/m-p/1962374#M395540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-07T12:12:24Z</dc:date>
    </item>
  </channel>
</rss>

