<?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: Before the statement &amp;quot;FORM&amp;quot;, conclude with &amp;quot;ENDFUNCTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472467#M1555252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inserted the include in the include mentioned  by you.&lt;/P&gt;&lt;P&gt;The perform does not even require any floating call.&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Nov 2010 13:12:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-19T13:12:00Z</dc:date>
    <item>
      <title>Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472454#M1555239</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;I'm using this exit :EXIT_SAPLVEDA_001.&lt;/P&gt;&lt;P&gt;In this exit include zxvedu03 is used.&lt;/P&gt;&lt;P&gt;I have written a perform in this include  zxvedu03  : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform abc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have written the code &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form abc.
                                         endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in include ZXVEDF01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have called this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;includeZXVEDF01&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in the last line of include zxvedu03.&lt;/P&gt;&lt;P&gt;Now i'm getting error : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Incorrect nesting: Before the statement "FORM", the structure  
introduced by "FUNCTION" must be concluded with "ENDFUNCTION".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried to create include from perform statement and then inserted code and vise versa too but results are same.&lt;/P&gt;&lt;P&gt;Please suggest how can i revolve this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472454#M1555239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472455#M1555240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all it should be included on the top. Secondly why are you creating a separate include..? Any particular reason...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472455#M1555240</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2010-11-19T09:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472456#M1555241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used it in the top but issue is not solved.&lt;/P&gt;&lt;P&gt;This is as per the requirement required such changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 10:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472456#M1555241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472457#M1555242</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;   There is no need to write the Include statement "includeZXVEDF01" inside zxvedu03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472457#M1555242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472458#M1555243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write you form.....endform after ENDFUNCTION statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472458#M1555243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472459#M1555244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot write my form endform statement after endfunction the Function endfucntion is in standard FM .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472459#M1555244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472460#M1555245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you please paste your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472460#M1555245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472461#M1555246</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;This is my code of include ZXVEDU03:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if ( contrl-sndsad in rl_var2 ) or ( contrl-sndsad in rl_var1 ).

*** Uncommented below perform
  perform contract_determine using contrl-sndsad segment
                                                 dxvbak
                                                 dxvbap
                                                 dxvbadr
                                                 dd_flag_k.
endif.
***
***statements**
include zxvedf01.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code in includeZXVEDF01 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form contract_determine using    p_cntrl_sndsad p_segment type edidd
                                                p_dxvbak   structure wa_dxvbak
                                                p_dxvbap   structure wa_dxvbap
                                                p_dxvbadr  structure wa_dxvbadr
                                                p_d_flag_k structure wa_d_flag_k.


*** statements**
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Include ZXVEDU03 is in EXIT_SAPLVEDA_001 and ZXVEDF01 is in ZXVEDU03.&lt;/P&gt;&lt;P&gt;EXIT_SAPLVEDA_001-&amp;gt; ZXVEDU03-&amp;gt;ZXVEDF01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472461#M1555246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472462#M1555247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZXVEDF01 is in ZXVEDU03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's your problem: it should not be in there. It should be included outside the FUNCTION...ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include it in: lxvedf00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Maen Anachronos on Nov 19, 2010 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472462#M1555247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472463#M1555248</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;you said &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in include ZXVEDF01.

I have called this includeZXVEDF01&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should not do this way  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are calling  ZXVEDF01  in ZXVEDF01 (include ) which is same  .&lt;/P&gt;&lt;P&gt;&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472463#M1555248</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-11-19T11:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472464#M1555249</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;The problem is solved .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used a dynamic calling of the include and it worked.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM contract_determine(ZXVEDF01) USING contrl-sndsad segment
                                                 dxvbak
                                                 dxvbap
                                                 dxvbadr
                                                 dd_flag_k.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for the replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 12:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472464#M1555249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T12:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472465#M1555250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you actually are creating a routine inside the function...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you exit is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION.

include zx.....

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if in that include you are calling another one, both includes are inside the main exit funcion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, i think the solution is to put your code in another funcion instead of declaring a form routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( this answer came late for 3 minutes   &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;  )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sebastian Bustamante on Nov 19, 2010 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 12:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472465#M1555250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472466#M1555251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So now you have a floating INCLUDE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it properly: put your FORM routine in the include i mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 12:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472466#M1555251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Before the statement "FORM", conclude with "ENDFUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472467#M1555252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I inserted the include in the include mentioned  by you.&lt;/P&gt;&lt;P&gt;The perform does not even require any floating call.&lt;/P&gt;&lt;P&gt;It worked.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 13:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-before-the-statement-quot-form-quot-conclude-with-quot-endfunction/m-p/7472467#M1555252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-19T13:12:00Z</dc:date>
    </item>
  </channel>
</rss>

