<?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: Enhancement Framework - Is it possible? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664626#M1574394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Leave the subprogram show_list with RETURN, if one of the required formal parameters structure or data_tab is initial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM show_list USING structure TYPE c 
                     data_tab  TYPE ANY TABLE. 
  DATA alv_list TYPE REF TO cl_gui_alv_grid. 
  IF structure IS INITIAL OR 
     data_tab  IS INITIAL. 
    RETURN. 
  ENDIF. 
  CREATE OBJECT alv_list 
         EXPORTING i_parent = cl_gui_container=&amp;gt; screen0. 
  CALL METHOD alv_list-&amp;gt;set_table_for_first_display 
    EXPORTING i_structure_name = structure 
    CHANGING  it_outtab        = data_tab. 
  CALL SCREEN 100. 
ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Feb 2011 00:41:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-10T00:41:01Z</dc:date>
    <item>
      <title>Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664624#M1574392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forums,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to look into enhancing a SAP program, in the area I would plan to set my enhancement point is at the beginning of a FORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a flag or something I can set that after my code executes I DO NOT execute the SAP code that comes after it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form test.
**************************** enhancement spot here

SAP code.... (do not want to execute)


endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 21:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664624#M1574392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-09T21:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664625#M1574393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CHECK 1 = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP code is never reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rafael Rojas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 00:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664625#M1574393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T00:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664626#M1574394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Leave the subprogram show_list with RETURN, if one of the required formal parameters structure or data_tab is initial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM show_list USING structure TYPE c 
                     data_tab  TYPE ANY TABLE. 
  DATA alv_list TYPE REF TO cl_gui_alv_grid. 
  IF structure IS INITIAL OR 
     data_tab  IS INITIAL. 
    RETURN. 
  ENDIF. 
  CREATE OBJECT alv_list 
         EXPORTING i_parent = cl_gui_container=&amp;gt; screen0. 
  CALL METHOD alv_list-&amp;gt;set_table_for_first_display 
    EXPORTING i_structure_name = structure 
    CHANGING  it_outtab        = data_tab. 
  CALL SCREEN 100. 
ENDFORM. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 00:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664626#M1574394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T00:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664627#M1574395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can simply put an 'exit' stateemnt after your code and before the sap standard stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you must be very careful here. Sometimes it's not obvious where various sap forms are used and it may be risky to do this unless you are sure you understand all the uses of this form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 03:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664627#M1574395</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-10T03:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664628#M1574396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EXIT is suggested over RETURN.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 03:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664628#M1574396</guid>
      <dc:creator>former_member194142</dc:creator>
      <dc:date>2011-02-10T03:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancement Framework - Is it possible?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664629#M1574397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MSRaju_ABAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the documentation of SAP states:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;We recommend using EXIT only within loops (see EXIT (loops) ). Instead, use RETURN to leave processing blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for this particular scenario, SAP recommends to use RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 16:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancement-framework-is-it-possible/m-p/7664629#M1574397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T16:23:18Z</dc:date>
    </item>
  </channel>
</rss>

