<?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: statement not accessible - Syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766139#M1584100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai...&lt;/P&gt;&lt;P&gt;  Write your form routine after end of the function module... if need declare the variables as Globally..&lt;/P&gt;&lt;P&gt;   So that you can run as you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Samba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 07:04:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-05T07:04:28Z</dc:date>
    <item>
      <title>statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766135#M1584096</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a form within a standard include. The form has an include within it. Its a custom include. So its an exit i suppose. Now i have a problem in the custom include. There is "statement not accessible" error. Find below the code in the custom include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;  Include           ZZIMOVEKVGR4                                     *
*&amp;amp;---------------------------------------------------------------------*
DATA: r_vkorg TYPE RANGE OF vkorg.
CONSTANTS: c_z_salesorg_zzkvgr4 TYPE rvari_vnam VALUE
                                                'Z_SALESORG_ZZKVGR4'.
* Get the values from variant Z_SALESORG_ZZKVGR4 of TVARVC tavle
CALL FUNCTION 'Z_FILL_RANGE_TABLE_FROM_TVARV'
EXPORTING
 name                 = c_z_salesorg_zzkvgr4
*   INITLINE             = ' '
*   LINE_SEPARATOR       = ','
TABLES
 rngtab               = r_vkorg.
* Check for the sales orgranisation in TVARVC table
IF vbrk-vkorg IN r_vkorg.
* Move field Customer group 4 to KOMPCV structure
  MOVE vbrp
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me understand how to overcome the same. The function module called has a select query. Does it have something to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pasting here the form that calls this include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USEREXIT_ACCOUNT_PREP_KOMPCV.

*  KOMPCV-zzfield = xxxx-zzfield2.
*{   INSERT         TSTK9B000H                                        1
* TSTK9A05ZS-Begin of changes For scr 7060
* Only for the sale organisation S096
    INCLUDE ZZIMOVEKVGR4.                                "TSTK9A05ZS
* TSTK9A05ZS-End of changes
*}   INSERT

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Selvakumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766135#M1584096</guid>
      <dc:creator>selvakumar_mohan</dc:creator>
      <dc:date>2011-04-04T18:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766136#M1584097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MOVE vbrp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement is not valid. If the problem persists after you take care of the above line, please post the true code. That will help us to diagnose the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 19:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766136#M1584097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-04T19:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766137#M1584098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Include your code mentioned in include ZZIMOVEKVGR4  in Form -end-form statements.&lt;/P&gt;&lt;P&gt;Form XYZ.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call this perform XYZ in the main program...where you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 05:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766137#M1584098</guid>
      <dc:creator>Rushikesh_Yeole</dc:creator>
      <dc:date>2011-04-05T05:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766138#M1584099</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 form in RV60AFZZ is to modify KOMPCV fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see any attempts to change those fields in your include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either move your code directly into form routine USEREXIT_ACCOUNT_PREP_KOMPCV, or correct your code in your include to make it work (as Sudhi told before).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 05:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766138#M1584099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766139#M1584100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai...&lt;/P&gt;&lt;P&gt;  Write your form routine after end of the function module... if need declare the variables as Globally..&lt;/P&gt;&lt;P&gt;   So that you can run as you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Samba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 07:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766139#M1584100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766140#M1584101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai...&lt;/P&gt;&lt;P&gt;  Write your form routine after end of the function module... if need declare the variables as Globally..&lt;/P&gt;&lt;P&gt;   So that you can run as you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Samba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 07:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766140#M1584101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T07:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: statement not accessible - Syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766141#M1584102</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;While Activating it , it will show process Error ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate both the include pgm with Errors,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And Try to  Execute it.it may Execute.Try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Prakash K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 09:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/statement-not-accessible-syntax-error/m-p/7766141#M1584102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-05T09:21:47Z</dc:date>
    </item>
  </channel>
</rss>

