<?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: FM Enhancement implementation: IF ... ELSE ... ENDIF. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100543#M437866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your ENDIF statement is outside of ENDFUNCTION system will not accept &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you IF ELSE and ENDIF statement are with in  the ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 13:02:20 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2007-04-05T13:02:20Z</dc:date>
    <item>
      <title>FM Enhancement implementation: IF ... ELSE ... ENDIF.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100542#M437865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use the enhacement framework to modify a SAP standard function module (BUA_ADDRESS_F4). The function module is a F4-help. The available F4 fields are hard coded and I want to a add some fields to the F4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I add an enhancement implemetation at the beginning of the FM and at the end of the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the beginning enhancement I simply put "IF 1 = 2."&lt;/P&gt;&lt;P&gt;In the ending enhancement " ELSE. CALL FUNCTION own_function ENDIF."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that seems to be impossible. I get a syntax error on the IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it impossible to open an if statement in the beginning implementation of an enhancement and close the if statement in the ending implementation of the enhancement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has some suggestions&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;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 12:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100542#M437865</guid>
      <dc:creator>steven_dierick</dc:creator>
      <dc:date>2007-04-05T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: FM Enhancement implementation: IF ... ELSE ... ENDIF.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100543#M437866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your ENDIF statement is outside of ENDFUNCTION system will not accept &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you IF ELSE and ENDIF statement are with in  the ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 13:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100543#M437866</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-04-05T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM Enhancement implementation: IF ... ELSE ... ENDIF.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100544#M437867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aRs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If and endif statements are nested correctly (both are within the endfunction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a solution for my problem. Instead of placing the SAP code between the IF and ELSE statement and my own code after the ELSE, I place my code in the beginning between an IF and ENDIF. And I use an exit to skip the SAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm however still interested in some comments on my first question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 14:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-enhancement-implementation-if-else-endif/m-p/2100544#M437867</guid>
      <dc:creator>steven_dierick</dc:creator>
      <dc:date>2007-04-05T14:18:05Z</dc:date>
    </item>
  </channel>
</rss>

