<?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: How to exit from an update Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289243#M499220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hemansu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after coming out from function module check value of sy-subrc&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0&lt;/P&gt;&lt;P&gt;  exit.  or leave to screen 0 [module pool progarm] or stop.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 05:53:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-17T05:53:01Z</dc:date>
    <item>
      <title>How to exit from an update Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289240#M499217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an Update Function Module in my program.The Program also has various other logics implemented in it. The Update Function Module gets triggered only when it finds COMMIT WORK statement. Now, I want that when the FM gets triggered and inside it, sy-subrc &amp;lt;&amp;gt; 0 at any stage, it should exit the complete processing and come to my main screen.&lt;/P&gt;&lt;P&gt;I tried to use Exit, STOP commands in the FM, but they only make the processing to exit from the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what shud I do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful suggestions will be surely rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 05:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289240#M499217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T05:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit from an update Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289241#M499218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Himanshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you come out the Update FM using EXIT or STOP then check for the sy-subrc in calling program and if it is not 0 then you can once again write the exit commands to the main program screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 05:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289241#M499218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T05:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit from an update Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289242#M499219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in ur calling program just  below  the FM call write followiing  statement - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check sy-subrc EQ '0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 05:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289242#M499219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T05:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to exit from an update Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289243#M499220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hemansu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after coming out from function module check value of sy-subrc&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0&lt;/P&gt;&lt;P&gt;  exit.  or leave to screen 0 [module pool progarm] or stop.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 05:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-exit-from-an-update-function-module/m-p/2289243#M499220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T05:53:01Z</dc:date>
    </item>
  </channel>
</rss>

