<?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: SYNTAX Problem in User-Exit (Perform/Form) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754984#M1583036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you do this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;function.

  include zx
endfuncion.

include ZXAD1U10 
form aaa.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the abap engine see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;function.
  form aaa. " this is because the incorrect nesting error apperars

  endform.
endfuncion.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, you can do two things:&lt;/P&gt;&lt;P&gt;1° put your include sentence in the top of the function group, not inside the exit.&lt;/P&gt;&lt;P&gt;2° try with dinamyc sencentes include (zx...)  perform (routine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 13:25:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-15T13:25:10Z</dc:date>
    <item>
      <title>SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754980#M1583032</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;i use this User-Exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION EXIT_SAPLAD15_010.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(I_DLISRC) LIKE  AD01DLIA-DLISRC
*"     VALUE(I_KOKRS) LIKE  TKA01-KOKRS
*"  TABLES
*"      T_COVP STRUCTURE  COVP OPTIONAL
*"      T_COSPA STRUCTURE  COSPA OPTIONAL
*"      T_COSSA STRUCTURE  COSSA OPTIONAL
*"      T_COVPR STRUCTURE  COVPR OPTIONAL
*"      T_COSRA STRUCTURE  COSRA OPTIONAL
*"      T_V_COFP STRUCTURE  V_COFP OPTIONAL
*"      T_FMSUA STRUCTURE  FMSUA OPTIONAL
*"      T_CKF_DIP_CUSTOMER_EXIT STRUCTURE  CKF_DIP_CUSTOMER_EXIT
*"       OPTIONAL
*"      IT_OBJECTS STRUCTURE  AD01OBJ OPTIONAL
*"----------------------------------------------------------------------


  INCLUDE ZXAD1U10.


ENDFUNCTION.

*----------------------------------------------------------------------*
*   INCLUDE ZXAD1U10                                                   *
*----------------------------------------------------------------------*
CASE I_DLISRC.
  WHEN '0001'. "Istkosten
    PERFORM DP90.
  WHEN '0021'. "Plankosten
    PERFORM DP80.
ENDCASE.
*
************************************************************************
FORM DP80.
*
BREAK-POINT.
*
ENDFORM.                                                    "DP90
************************************************************************
FORM DP90.
*
BREAK-POINT.
*
ENDFORM.                                                    "DP90
************************************************************************
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this syntax-error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect nesting: Before the statement "FORM", the structure&lt;/P&gt;&lt;P&gt;introduced by "FUNCTION" must be concluded by "ENDFUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't it possible to use own Forms in includes of exits?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Regards Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754980#M1583032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754981#M1583033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define your FORMS like that in the include, then you've basically defined them between FUNCTION...ENDFUNCTION which isn't allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define your FORMS in include zxad1zzz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754981#M1583033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T12:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754982#M1583034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to attributes tab of Function Module EXIT_SAPLAD15_010&lt;/P&gt;&lt;P&gt;Double click on program name SAPLXAD1&lt;/P&gt;&lt;P&gt;Write your form endform in  INCLUDE ZXAD1ZZZ.      " Subprograms and Modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 12:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754982#M1583034</guid>
      <dc:creator>prasoon_sahay</dc:creator>
      <dc:date>2011-03-15T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754983#M1583035</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;Write your Form DP80 ....Endform  and Form DP90...Endform in  in include zxad1zzz. &lt;/P&gt;&lt;P&gt; as in user-exit after endfunction not allow to write form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kunjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 13:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754983#M1583035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T13:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754984#M1583036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you do this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;function.

  include zx
endfuncion.

include ZXAD1U10 
form aaa.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the abap engine see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;function.
  form aaa. " this is because the incorrect nesting error apperars

  endform.
endfuncion.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, you can do two things:&lt;/P&gt;&lt;P&gt;1° put your include sentence in the top of the function group, not inside the exit.&lt;/P&gt;&lt;P&gt;2° try with dinamyc sencentes include (zx...)  perform (routine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 13:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754984#M1583036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: SYNTAX Problem in User-Exit (Perform/Form)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754985#M1583037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most (near every) exit function group main program have include for this purpose, the most useful are&lt;/P&gt;&lt;P&gt;(for an exit FG Xnnn)&lt;/P&gt;&lt;P&gt;- ZXnnnTOP for your global data&lt;/P&gt;&lt;P&gt;- ZXnnnZZZ for your form (and modules)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 15:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-problem-in-user-exit-perform-form/m-p/7754985#M1583037</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-03-15T15:35:22Z</dc:date>
    </item>
  </channel>
</rss>

