<?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 IN CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661822#M293213</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;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module give the message in a POPUP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-subrc is set in some other place...THis is not because of the container or the editor..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear the SY-SUBRC before the IF condition if editor1 is initial.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if editor1 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 19:29:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-08T19:29:28Z</dc:date>
    <item>
      <title>ERROR IN CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661819#M293210</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;can anyone tell me the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if editor1 is initial.&lt;/P&gt;&lt;P&gt;CREATE OBJECT TEXTEDIT_CUSTOM_CONTAINER1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;CONTAINER_NAME = 'TEXTEDITOR2'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 1&lt;/P&gt;&lt;P&gt;CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;P&gt;CREATE_ERROR = 3&lt;/P&gt;&lt;P&gt;LIFETIME_ERROR = 4&lt;/P&gt;&lt;P&gt;LIFETIME_DYNPRO_DYNPRO_LINK = 5.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add your handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT EDITOR1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;PARENT = TEXTEDIT_CUSTOM_CONTAINER1&lt;/P&gt;&lt;P&gt;WORDWRAP_POSITION = '85'&lt;/P&gt;&lt;P&gt;WORDWRAP_MODE = CL_GUI_TEXTEDIT=&amp;gt;WORDWRAP_AT_FIXED_POSITION&lt;/P&gt;&lt;P&gt;WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=&amp;gt;FALSE&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;OTHERS = 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0. -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;********* HERE IS ERROR&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TITEL = V_REPID_9911 "--&amp;gt; program name&lt;/P&gt;&lt;P&gt;TXT2 = SPACE&lt;/P&gt;&lt;P&gt;TXT1 = 'Error in flush'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When iam going to the screen for the first time &lt;/P&gt;&lt;P&gt;sy-subrc is 0 and its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am going back and coming again the sy-subrc is 4 &lt;/P&gt;&lt;P&gt;and iam getting an error ERROR IN FLUSH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE TO RECTIFY THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHAT DOES THIS PIECE OF CODE DOES.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TITEL = V_REPID_9911 "--&amp;gt; program name&lt;/P&gt;&lt;P&gt;TXT2 = SPACE&lt;/P&gt;&lt;P&gt;TXT1 = 'Error in flush'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUESTION2)&lt;/P&gt;&lt;P&gt;WHAT DOES THE SY-SUBRC HERE REFERRING TO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WAITING FOR REPLIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661819#M293210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661820#M293211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I see all of your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661820#M293211</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T19:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661821#M293212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QUESTION 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHAT DOES THIS PIECE OF CODE DOES.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_INFORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TITEL = V_REPID_9911 "--&amp;gt; program name&lt;/P&gt;&lt;P&gt;TXT2 = SPACE&lt;/P&gt;&lt;P&gt;TXT1 = 'Error in flush'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This piece of code obviously throws a popup message, that's it.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661821#M293212</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T19:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661822#M293213</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;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module give the message in a POPUP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-subrc is set in some other place...THis is not because of the container or the editor..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear the SY-SUBRC before the IF condition if editor1 is initial.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if editor1 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661822#M293213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR IN CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661823#M293214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Guys,&lt;/P&gt;&lt;P&gt;Its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam awarding points to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 19:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-code/m-p/1661823#M293214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T19:37:15Z</dc:date>
    </item>
  </channel>
</rss>

