<?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: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479634#M836451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field VALUE must contains the reference to the data object, not the data object itself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must set the value like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET REFERENCE OF &amp;lt;your_variable&amp;gt; INTO lt_parmbind-value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content from debugger must appear like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="initial" __jive_macro_name="A"&gt;&lt;/SPAN&gt; with a numeric value instead of "initial".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 12:15:19 GMT</pubDate>
    <dc:creator>former_member199581</dc:creator>
    <dc:date>2008-02-29T12:15:19Z</dc:date>
    <item>
      <title>Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479631#M836448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm trying to call dynamically a function module using the following statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: lt_parmbind         TYPE abap_func_parmbind_tab,
        lt_excbind          TYPE abap_func_excpbind_tab,
        ls_parmbind         TYPE abap_func_parmbind,
        ls_excbind          TYPE abap_func_excpbind.

.....

    CALL FUNCTION my_function_module_name
        PARAMETER-TABLE
          lt_parmbind
        EXCEPTION-TABLE
          lt_excbind.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error message:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Error analysis                                                                      
    An exception occurred that is explained in detail below.                        
    The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was   
     not caught in                                                                  
    procedure "DEBUG_FM" "(METHOD)", nor was it propagated by a RAISING clause.     
    Since the caller of the procedure could not have anticipated that the           
    exception would occur, the current program is terminated.                       
    The reason for the exception is:                                                
    When calling the function module "/NYH/AGIB_BCA_GET_ACCOUNTS", one of the       
     parameters                                                                     
    needed according to the interface description was not specified.                                                                                
This parameter was "I_PARTNER".&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;                                                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the table  &lt;STRONG&gt;lt_parmbind&lt;/STRONG&gt; does contain a structure with ls_parmbind-name = "I_PARTNER".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone has an idea about the problem? &lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 11:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479631#M836448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479632#M836449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you must check the value in lt_parmbind-value.&lt;/P&gt;&lt;P&gt;If the value is initial, then the reference is not catched in field and the system misses the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Roby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 12:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479632#M836449</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2008-02-29T12:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479633#M836450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;thank you for your quick answer.&lt;/P&gt;&lt;P&gt;Here are the values for the relevant row.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;VALUE[Fref]:&lt;/STRONG&gt; -&amp;gt;123240&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLES_WA[Fref]:&lt;/STRONG&gt; &lt;SPAN __default_attr="initial" __jive_macro_name="A"&gt;&lt;/SPAN&gt;	&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KIND:&lt;/STRONG&gt;20	&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NAME:&lt;/STRONG&gt; I_PARTNER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps is the WA field? Do you have an idea on how to fill it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 12:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479633#M836450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T12:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479634#M836451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field VALUE must contains the reference to the data object, not the data object itself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must set the value like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GET REFERENCE OF &amp;lt;your_variable&amp;gt; INTO lt_parmbind-value.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The content from debugger must appear like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="initial" __jive_macro_name="A"&gt;&lt;/SPAN&gt; with a numeric value instead of "initial".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 12:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479634#M836451</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2008-02-29T12:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479635#M836452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;I tried that sintax, and my understanding is that in the VALUE filed I have a reference to the actual parameter.&lt;/P&gt;&lt;P&gt;However in the debugger, before the statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INSERT ls_parmbind INTO TABLE lt_parmbind.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure &lt;STRONG&gt;ls_parmbind&lt;/STRONG&gt; has these values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Component&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Val.Ty.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Val.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Technical Type.&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;123240&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;REF TO \TYPE=BU_PARTNER&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;TABLES_WA&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN __default_attr="INITIAL" __jive_macro_name="A"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Fref.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;KIND&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;20&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;I(4)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;NAME&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;I_PARTNER&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;C(30)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 13:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479635#M836452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T13:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479636#M836453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And it still don't work I suppose...&lt;/P&gt;&lt;P&gt;I'll try and let you know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 14:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479636#M836453</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2008-02-29T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479637#M836454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, I still get the same error.&lt;/P&gt;&lt;P&gt;Thank you for helping!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 15:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479637#M836454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479638#M836455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry man, but I can't get the function module you're using in my system...&lt;/P&gt;&lt;P&gt;Could you please post the source code? I need to check it out to help you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 08:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479638#M836455</guid>
      <dc:creator>former_member199581</dc:creator>
      <dc:date>2008-03-03T08:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479639#M836456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roberto,&lt;/P&gt;&lt;P&gt;here is the code of the method that dynamically calls the function module. &lt;/P&gt;&lt;P&gt;What happens is that I have the parameters name, value and type stored for each Function Module in the in the internal table mt_log_pd (these fields are string type).&lt;/P&gt;&lt;P&gt;I populate the table for the dynamic calling by looping at mt_log_pd: I guess that the problem is in the value assignment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: ls_log_pd           LIKE LINE OF mt_log_pd,
        lt_log_pd           LIKE mt_log_pd,
        lt_parmbind         TYPE abap_func_parmbind_tab,
        lt_excbind          TYPE abap_func_excpbind_tab,
        ls_parmbind         TYPE abap_func_parmbind,
        ls_excbind          TYPE abap_func_excpbind,
        lr_dyn_ref          TYPE REF TO data.

  FIELD-SYMBOLS: &amp;lt;l_fs_par_value&amp;gt; TYPE ANY.

*----------------------------------------------------------------------*
  "Populate the parameter tab
  LOOP AT mt_log_pd INTO ls_log_pd WHERE functmdl = i_functmdl.
    IF ls_log_pd-parent_field = 0 AND ls_log_pd-param_kind &amp;lt;&amp;gt; 2.
      "Name
      ls_parmbind-name  = ls_log_pd-param_name.
      "Kind
      CASE ls_log_pd-param_kind.
        WHEN 1. "Importing
          ls_parmbind-kind  = abap_func_importing.
        WHEN 2. "Exporting
          ls_parmbind-kind  = abap_func_exporting.
        WHEN 3. "Changing
          ls_parmbind-kind  = abap_func_changing.
        WHEN 4. "Tables
          ls_parmbind-kind  = abap_func_tables.
        WHEN OTHERS.
          "exception
      ENDCASE.
      "Value
      CREATE DATA lr_dyn_ref TYPE (ls_log_pd-param_ass_type).
      ASSIGN lr_dyn_ref-&amp;gt;* TO &amp;lt;l_fs_par_value&amp;gt;.
      &amp;lt;l_fs_par_value&amp;gt; = ls_log_pd-param_value.
      GET REFERENCE OF &amp;lt;l_fs_par_value&amp;gt; INTO ls_parmbind-value.
      "GET REFERENCE OF &amp;lt;l_fs_par_value&amp;gt; INTO ls_parmbind-tables_wa.
      "ls_parmbind-value = lr_dyn_ref.
      INSERT ls_parmbind INTO TABLE lt_parmbind.
    ENDIF.
  ENDLOOP.

*----------------------------------------------------------------------*
  "Execute the Function Module
  CALL FUNCTION i_functmdl
    PARAMETER-TABLE
      lt_parmbind
    EXCEPTION-TABLE
      lt_excbind.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 09:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479639#M836456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Function Module Calling - CX_SY_DYN_CALL_PARAM_MISSING Exception</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479640#M836457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one thing that could help...&lt;/P&gt;&lt;P&gt;The field ls_parmbind-value is assigned to the reference of &amp;lt;l_fs_par_value&amp;gt;, that is assigned inside the loop cycle.&lt;/P&gt;&lt;P&gt;When the dynamic calling is performed, may be the case that elements of table lt_parmbind have references to variables that don't exist anymore.&lt;/P&gt;&lt;P&gt;Could this be the cause of the error message? If so, do you have any suggestion to solve the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2008 11:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-calling-cx-sy-dyn-call-param-missing-exception/m-p/3479640#M836457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-03T11:17:21Z</dc:date>
    </item>
  </channel>
</rss>

