<?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: Function module not recognizing IMPORT param in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932262#M1150587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Amit, here is the deal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group: PACK   contains the following INCLUDES:&lt;/P&gt;&lt;P&gt;LZPACKF01&lt;/P&gt;&lt;P&gt;LZPACKTOP&lt;/P&gt;&lt;P&gt;LZPACKUXX&lt;/P&gt;&lt;P&gt;ZPACKDATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module: ZDLV_PACK_0001 contains the following IMPORT parameters:&lt;/P&gt;&lt;P&gt;I_ZZZZZ&lt;/P&gt;&lt;P&gt;I_ZPA01&lt;/P&gt;&lt;P&gt;I_ZPA02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source code of main FM: ZDLV_PACK_0001 :&lt;/P&gt;&lt;P&gt;  perform reset_vars_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Souce code of INCLUDE LZPACKF01 contains the above FORM&lt;/P&gt;&lt;P&gt;FORM reset_vars_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT I_ZZZZZ IS INITIAL.       &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;  &amp;lt;========== THis is where Function mod. is failing &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Refresh internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR:   var1, var2, var3, var4.&lt;/P&gt;&lt;P&gt;    REFRESH:  tab1, tab2, tab3, tab4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP JUNOON on Dec 18, 2008 7:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2008 01:23:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-19T01:23:43Z</dc:date>
    <item>
      <title>Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932257#M1150582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abapers,&lt;/P&gt;&lt;P&gt;IMPORT parameter: &lt;STRONG&gt;I_ZZZZZ&lt;/STRONG&gt; was declared in a custom Function module, but when it is referenced in one of the Function modules INCLUDE, it doesn't seem to recognize. Here is the error during syntax-check:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Field "I_ZZZZZ" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note I've activated the complete Func. group using SE80 as some have suggested on this Forum, and have also activated the "INCLUDE". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your thoughts!&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP JUNOON on Dec 18, 2008 6:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 00:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932257#M1150582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T00:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932258#M1150583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I_ZZZZZ is defined local in custom FM,and It will be reconize only, once this FM has been used in some program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the defination of I_ZZZZZ is not exist in Data dictionary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 00:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932258#M1150583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T00:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932259#M1150584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It shouldn't give a syntax error in this case. Do you agree?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 00:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932259#M1150584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T00:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932260#M1150585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i'm not sure what you are trying to do!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please paste your piece of code where you are geting this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 00:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932260#M1150585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T00:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932261#M1150586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  I think the parameters declared in the Function Module interface Import/Export are local to the Function-End Function construct. If you need to use any of these variables outside you should declare a global variable in the top include (Global data section) populate it within the FM and then use it wherever needed OR if calling a subroutine from within the FM pass the parameters in the subroutine interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 01:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932261#M1150586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T01:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932262#M1150587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Amit, here is the deal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group: PACK   contains the following INCLUDES:&lt;/P&gt;&lt;P&gt;LZPACKF01&lt;/P&gt;&lt;P&gt;LZPACKTOP&lt;/P&gt;&lt;P&gt;LZPACKUXX&lt;/P&gt;&lt;P&gt;ZPACKDATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module: ZDLV_PACK_0001 contains the following IMPORT parameters:&lt;/P&gt;&lt;P&gt;I_ZZZZZ&lt;/P&gt;&lt;P&gt;I_ZPA01&lt;/P&gt;&lt;P&gt;I_ZPA02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source code of main FM: ZDLV_PACK_0001 :&lt;/P&gt;&lt;P&gt;  perform reset_vars_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Souce code of INCLUDE LZPACKF01 contains the above FORM&lt;/P&gt;&lt;P&gt;FORM reset_vars_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT I_ZZZZZ IS INITIAL.       &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;  &amp;lt;========== THis is where Function mod. is failing &lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Refresh internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR:   var1, var2, var3, var4.&lt;/P&gt;&lt;P&gt;    REFRESH:  tab1, tab2, tab3, tab4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP JUNOON on Dec 18, 2008 7:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 01:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932262#M1150587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T01:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932263#M1150588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I_ZZZZZ is a local parameter within the FM, so you can use that within Function .. EndFunction only. Either you should have defined that as Global at the beginning. Now if you really want to use that to clear, you need to bring the code within that form to inside Fuinction itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 01:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932263#M1150588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T01:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932264#M1150589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Function Module: ZDLV_PACK_0001 contains the following IMPORT parameters:&lt;/P&gt;&lt;P&gt;&amp;gt; I_ZZZZZ&lt;/P&gt;&lt;P&gt;&amp;gt; I_ZPA01&lt;/P&gt;&lt;P&gt;&amp;gt; I_ZPA02&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Source code of main FM: ZDLV_PACK_0001 :&lt;/P&gt;&lt;P&gt;&amp;gt;   perform reset_vars_itab.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Souce code of INCLUDE LZPACKF01 contains the above FORM&lt;/P&gt;&lt;P&gt;&amp;gt; FORM reset_vars_itab.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   IF NOT I_ZZZZZ IS INITIAL.       &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;  &amp;lt;========== THis is where Function mod. is failing &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; *   Refresh internal tables&lt;/P&gt;&lt;P&gt;&amp;gt;     CLEAR:   var1, var2, var3, var4.&lt;/P&gt;&lt;P&gt;&amp;gt;     REFRESH:  tab1, tab2, tab3, tab4.&lt;/P&gt;&lt;P&gt;&amp;gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i already said in my first reply I_ZZZZZ is a local parameter for your FM,it can't access outside of FM anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you declear I_ZZZZZ in your include its value would always be initial,untill and unless you call FM in your Include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At line:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF NOT I_ZZZZZ IS INITIAL. "&amp;lt;========== Call here FM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 01:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932264#M1150589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T01:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not recognizing IMPORT param</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932265#M1150590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an FYI - this FM exist in one of the instances perfectly working for past several yrs and we're trying to re-create in a different instance.&lt;/P&gt;&lt;P&gt; I_ZZZZZ is an import param for the FM, and will be available for all includes within F.group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ABAP JUNOON on Dec 18, 2008 8:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 02:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-recognizing-import-param/m-p/4932265#M1150590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T02:49:58Z</dc:date>
    </item>
  </channel>
</rss>

