<?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>Question Re: Function module parameter not found in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14062021#M4908817</link>
    <description>&lt;P&gt;Maybe you need a member variable of your class. Set this variable at your method. Then addd a method to access the variable. At the function module call this added method.&lt;/P&gt;&lt;P&gt;(If you doesn't create an object of the class change the method and object to class method and class data.)&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;class lcl_handler definition.
  public section.
...
    methods:
      give_file
        returning value(rt_file) type file_table.
...
  private section.
    data:
      mt_file type file_table.
...
endclass.

class lcl_handler implementation.
...
  method on_hotspot_click.
...
    mt_file = ld_value.
...
  endmethod.
...
  method give_file.
    rt_file = mt_file.
  endmethod.
...
endclass.&lt;/LI-CODE&gt;&lt;LI-CODE lang="abap"&gt;function z_ca_get_cluster.
...
  ex_file = lo_object-&amp;gt;give_file( ).
" or ex_file = lcl_handler=&amp;gt;give_file( ).
...
endfunction.&lt;/LI-CODE&gt;&lt;P&gt;Alternatively use an (old style) global variable within your function group (you already have another one - gt_recover?). Set the value to the global variable in the method. Get the value from this variable in the function module.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2025 13:34:39 GMT</pubDate>
    <dc:creator>ulrich_mhrke</dc:creator>
    <dc:date>2025-03-31T13:34:39Z</dc:date>
    <item>
      <title>Function module parameter not found</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaq-p/14060296</link>
      <description>&lt;P&gt;I have an odd situation with an Export parameter not being found in my include.&lt;/P&gt;&lt;P&gt;Here's the function declaration;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;function z_ca_get_cluster.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*"----------------------------------------------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*"*"Local Interface:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" IMPORTING&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" VALUE(IM_PROVIDER) TYPE ZCADEPARTMENT OPTIONAL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" VALUE(IM_SUBPROVIDER) TYPE ZCASUBDEPT OPTIONAL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" EXPORTING&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" REFERENCE(&lt;STRONG&gt;EX_FILE&lt;/STRONG&gt;) TYPE FILE_TABLE. &amp;lt;--- Problem parameter&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*" REFERENCE(EX_CLUSTERID) &amp;lt;--- Also not found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*"----------------------------------------------------------------------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;clear: gt_recover.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here's the includes;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*******************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;* System-defined Include-files. *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*******************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;include lzcaclustertop. " Global Declarations&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;include lzcaclusteruxx. " Function Modules&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;*******************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;* User-defined Include-files (if necessary). *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;*******************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;include lzcaclusterlcl.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And here we are inside the include which has an issue;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;class lcl_handler implementation.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;method on_hotspot_click.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;data: ld_value type zcafilename,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ld_row type lvc_s_row.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;field-symbols: &amp;lt;row&amp;gt; type zcaclusterid.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sender-&amp;gt;get_current_cell( importing e_value = ld_value es_row_id = ld_row ).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ex_file = ld_value.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;endmethod.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;endclass.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I try to activate it, I get the following error;&lt;/P&gt;&lt;P&gt;Field "EX_FILE" is unknown.&lt;/P&gt;&lt;P&gt;I have tried activating the include by itself and I have tried activating everything together. I have tried deleting and readding the export parameters, but nothing seems to change this error. I have even tried forcing the activation but it short dumps when I try to run it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 15:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaq-p/14060296</guid>
      <dc:creator>Marque</dc:creator>
      <dc:date>2025-03-28T15:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Function module parameter not found</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14060354#M4908659</link>
      <description>A parameter is local to its procedure (as you can see: "Local Interface"), you can't use it directly in another procedure, pass it explicitly via parameters (or to avoid, transfer it to a global function group parameter).</description>
      <pubDate>Fri, 28 Mar 2025 17:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14060354#M4908659</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2025-03-28T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function module parameter not found</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14060594#M4908691</link>
      <description>There is a period (".") after your first exporting parameter. Is that in your actual Code, too?</description>
      <pubDate>Sat, 29 Mar 2025 09:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14060594#M4908691</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2025-03-29T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function module parameter not found</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14062021#M4908817</link>
      <description>&lt;P&gt;Maybe you need a member variable of your class. Set this variable at your method. Then addd a method to access the variable. At the function module call this added method.&lt;/P&gt;&lt;P&gt;(If you doesn't create an object of the class change the method and object to class method and class data.)&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;class lcl_handler definition.
  public section.
...
    methods:
      give_file
        returning value(rt_file) type file_table.
...
  private section.
    data:
      mt_file type file_table.
...
endclass.

class lcl_handler implementation.
...
  method on_hotspot_click.
...
    mt_file = ld_value.
...
  endmethod.
...
  method give_file.
    rt_file = mt_file.
  endmethod.
...
endclass.&lt;/LI-CODE&gt;&lt;LI-CODE lang="abap"&gt;function z_ca_get_cluster.
...
  ex_file = lo_object-&amp;gt;give_file( ).
" or ex_file = lcl_handler=&amp;gt;give_file( ).
...
endfunction.&lt;/LI-CODE&gt;&lt;P&gt;Alternatively use an (old style) global variable within your function group (you already have another one - gt_recover?). Set the value to the global variable in the method. Get the value from this variable in the function module.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 13:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14062021#M4908817</guid>
      <dc:creator>ulrich_mhrke</dc:creator>
      <dc:date>2025-03-31T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function module parameter not found</title>
      <link>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14062438#M4908847</link>
      <description>Yes, I will go with your proposal. It's very odd though because I copied this code as-is from an S4 2020 system to a S4 2023 system and was going to make a couple of changes there. I would have expected the copied code to work</description>
      <pubDate>Mon, 31 Mar 2025 18:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/function-module-parameter-not-found/qaa-p/14062438#M4908847</guid>
      <dc:creator>Marque</dc:creator>
      <dc:date>2025-03-31T18:22:25Z</dc:date>
    </item>
  </channel>
</rss>

