<?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: User exit- when i keep error msg leaves transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262833#M148157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moshin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-UNAME EQ 'MF8562'.
  BREAK-POINT.
  MESSAGE E000(ZMSG_1).
  &amp;lt;b&amp;gt;SET SCREEN &amp;lt;current screen&amp;gt;.
  LEAVE SCREEN.&amp;lt;/b&amp;gt;
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements &amp;lt;b&amp;gt;do not&amp;lt;/b&amp;gt; end the screen sequence. The screen sequence only ends when you leave to next screen 0.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2006 03:45:18 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-04-13T03:45:18Z</dc:date>
    <item>
      <title>User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262829#M148153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help on this one..I have to do some validations just before saving data, i found this exit that is trigerring just before saving data but when i give some error message it just comes out of the transaction. I want an exit which can popup an error message and then stays in the transaction and allows user to correct data..Is there any other way to do it like any OSS notes or something else can be applied here..The Exit is for transaction FB60 and function module is EXIT_SAPLF048_001..Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 02:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262829#M148153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T02:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262830#M148154</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;Can you post the code where you are throwing the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 02:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262830#M148154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T02:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262831#M148155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi,&lt;/P&gt;&lt;P&gt;I was just testing the enhancement by giving the following code in the enhancement F180A001 but its coming out of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-uname eq 'MF8562'.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;Message e000(zmsg_1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me the correct way to proceed on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 02:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262831#M148155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T02:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262832#M148156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-uname eq 'MF8562'.&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;Message e000(zmsg_1).&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;LEAVE TO SCREEN SY-DYNNR.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 03:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262832#M148156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T03:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262833#M148157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moshin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can code something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-UNAME EQ 'MF8562'.
  BREAK-POINT.
  MESSAGE E000(ZMSG_1).
  &amp;lt;b&amp;gt;SET SCREEN &amp;lt;current screen&amp;gt;.
  LEAVE SCREEN.&amp;lt;/b&amp;gt;
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements &amp;lt;b&amp;gt;do not&amp;lt;/b&amp;gt; end the screen sequence. The screen sequence only ends when you leave to next screen 0.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 03:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262833#M148157</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-13T03:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262834#M148158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you try these two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Use leave program.&lt;/P&gt;&lt;P&gt;2. give Warning message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 04:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262834#M148158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T04:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262835#M148159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ferry,&lt;/P&gt;&lt;P&gt;I tried the following code u sent but when i give the screen number it does go back to the screen but then when i close the error message it goes back to debugging mode. I want it back to the transaction so that user can correct the errors. Any other way to do this plzzzz..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UNAME EQ 'MF8562'.&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;  MESSAGE E000(ZMSG_1).&lt;/P&gt;&lt;P&gt;  SET SCREEN &amp;lt;current screen&amp;gt;.&lt;/P&gt;&lt;P&gt;  LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the code i used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262835#M148159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262836#M148160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moshin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please delete &amp;lt;b&amp;gt;BREAK-POINT&amp;lt;/b&amp;gt; statement and try to change to message from error to system/warning.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF SY-UNAME EQ 'MF8562'.  
  MESSAGE S000(ZMSG_1).  
  SET SCREEN SY-DYNNR.
  LEAVE SCREEN.
ENDIF.&lt;/CODE&gt;&lt;/PRE&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262836#M148160</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-13T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262837#M148161</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;Don't give error message , try to Give ABEND message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UNAME EQ 'MF8562'.&lt;/P&gt;&lt;P&gt;BREAK-POINT.&lt;/P&gt;&lt;P&gt;MESSAGE &amp;lt;b&amp;gt;A000&amp;lt;/b&amp;gt;(ZMSG_1).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what exactly you want ? you want to check it is working or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or do you want to really give error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try giving ABEND message.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262837#M148161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262838#M148162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ferry,&lt;/P&gt;&lt;P&gt;If i remove break-point it still comes out of the transaction when i close the error message. Is there any other way to do it.Please let me know as i am really not able to proceed on this one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262838#M148162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262839#M148163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohsin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to Give Info or Warning messages instead of Error, error will take you out of Transaction.&lt;/P&gt;&lt;P&gt;don't issue error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262839#M148163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262840#M148164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijay,&lt;/P&gt;&lt;P&gt;The requirement is to give an error message if the user enters wrong data just before saving it. I found the exit for it but when i give error message it just comes out of the transaction. I want it to go back to the screen so that the user can correct the errors and resubmit the document.Do you know how i should proceed on this one..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohsin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262840#M148164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262841#M148165</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 to identify the screen where he enters wrong data , and you need to validate the data and set the screen to the screen where the data is entered wrongly. and say leave screen and now issue error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a doubt, are they custom screen fields , if so why can't you handle them there it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 15:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262841#M148165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-13T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: User exit- when i keep error msg leaves transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262842#M148166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Moshin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: WA_ANSWER(1) TYPE C. 

IF SY-UNAME EQ 'MF8562'.  

  CLEAR WA_ANSWER.
  CALL FUNCTION 'POPUP_TO_CONFIRM'
    EXPORTING
      TEXT_QUESTION = 'Error Notification'
      TEXT_BUTTON_1 = 'Fixed Error'
      TEXT_BUTTON_2 = 'No'
    IMPORTING
      ANSWER        = WA_ANSWER.  

  CASE WA_ANSWER.
    WHEN '1' 
      SET SCREEN SY-DYNNR.  
          
    WHEN '2'.
      ...   
 
    WHEN 'A'   *Cancel
      ...

   ENDCASE
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2006 16:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-when-i-keep-error-msg-leaves-transaction/m-p/1262842#M148166</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-04-13T16:15:49Z</dc:date>
    </item>
  </channel>
</rss>

