<?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: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321906#M1991155</link>
    <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;In the example I gave the return parameter is not a obligatory.&lt;BR /&gt;Please find another example where return parameter is not present still there is dump as missing parameter .&lt;/P&gt;&lt;P&gt;REPORT zdynamic.&lt;BR /&gt;
TYPE-POOLS : abap.
&lt;BR /&gt;DATA: func TYPE string,
&lt;BR /&gt;      lt_ptab  TYPE abap_func_parmbind_tab,&lt;BR /&gt;
      ls_ptab  TYPE abap_func_parmbind,&lt;/P&gt;&lt;P&gt;
      lt_etab  TYPE abap_func_excpbind_tab, &lt;/P&gt;&lt;P&gt;      ls_etab  TYPE abap_func_excpbind, &lt;/P&gt;&lt;P&gt;      str      TYPE   TRDIR. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;itab&amp;gt; TYPE any.&lt;/P&gt;&lt;P&gt;
ASSIGN str TO &amp;lt;itab&amp;gt;. &lt;/P&gt;&lt;P&gt;DATA : lv_level TYPE string. &lt;/P&gt;&lt;P&gt;DATA : lv_type TYPE char10.&lt;/P&gt;&lt;P&gt;
lv_level = 'ZDYNAMIC'. &lt;/P&gt;&lt;P&gt;** Exporting
ls_ptab-name = 'E_TRDIR'.&lt;/P&gt;&lt;P&gt;
ls_ptab-kind = abap_func_exporting. &lt;/P&gt;&lt;P&gt;GET REFERENCE OF lv_type INTO ls_ptab-value. &lt;/P&gt;&lt;P&gt;INSERT ls_ptab INTO TABLE lt_ptab. &lt;/P&gt;&lt;P&gt;*** Importing
ls_ptab-name = 'I_PROGNAME'.&lt;/P&gt;&lt;P&gt;
ls_ptab-kind = abap_func_importing. &lt;/P&gt;&lt;P&gt;GET REFERENCE OF lv_level INTO ls_ptab-value. &lt;/P&gt;&lt;P&gt;INSERT ls_ptab INTO TABLE lt_ptab. &lt;/P&gt;&lt;P&gt;*** Exceptions
ls_etab-name = 'NOT_EXISTS'.&lt;/P&gt;&lt;P&gt;
ls_etab-value = 1. &lt;/P&gt;&lt;P&gt;INSERT ls_etab INTO TABLE lt_etab. &lt;/P&gt;&lt;P&gt;ls_etab-name = 'OTHERS'. &lt;/P&gt;&lt;P&gt;ls_etab-value = 2. &lt;/P&gt;&lt;P&gt;INSERT ls_etab INTO TABLE lt_etab.&lt;/P&gt;&lt;P&gt;
func = 'READ_TRDIR'.&lt;/P&gt;&lt;P&gt;" Function Name&lt;/P&gt;&lt;P&gt;
CALL FUNCTION func &lt;/P&gt;&lt;P&gt;  PARAMETER-TABLE
    lt_ptab &lt;/P&gt;&lt;P&gt;  EXCEPTION-TABLE
    lt_etab. &lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.
*** Error Handling
ENDIF.&lt;/P&gt;&lt;P&gt;is there any restrictions while calling the dynamic FM.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1892615-test1.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hiri &lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 15:07:43 GMT</pubDate>
    <dc:creator>hiriyappa_myageri</dc:creator>
    <dc:date>2021-02-15T15:07:43Z</dc:date>
    <item>
      <title>CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321900#M1991149</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
  &lt;P&gt;Greetings,&lt;/P&gt;
  &lt;P&gt;I am facing the problem in calling dynamic function module or BAPI in s/4 hana system.&lt;/P&gt;
  &lt;P&gt;It is giving me an error saying that parameter missing.&lt;BR /&gt;&lt;IMG alt="" style="font-size: 15px; color: rgb(60, 60, 60);" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1892611-screenshot-2021-02-15-193828.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Kindly help on this .&lt;/P&gt;
  &lt;P&gt;Please find my code snippet.&lt;/P&gt;
  &lt;P&gt;REPORT zdynamic.&lt;BR /&gt;TYPE-POOLS : abap.&lt;BR /&gt;&lt;BR /&gt;DATA: lv_fname TYPE string,&lt;BR /&gt; lt_ptab TYPE abap_func_parmbind_tab,&lt;BR /&gt; ls_ptab TYPE abap_func_parmbind,&lt;BR /&gt; lt_etab TYPE abap_func_excpbind_tab,&lt;BR /&gt; ls_etab TYPE abap_func_excpbind,&lt;BR /&gt; str TYPE TABLE OF BAPIPARAM.&lt;BR /&gt;&lt;BR /&gt;FIELD-SYMBOLS : &amp;lt;itab&amp;gt; TYPE ANY TABLE.&lt;BR /&gt;ASSIGN str TO &amp;lt;itab&amp;gt;.&lt;BR /&gt;DATA : lv_level TYPE string.&lt;BR /&gt;DATA : lv_type TYPE char10.&lt;/P&gt;
  &lt;P&gt;lv_level = 'xyz'.&lt;/P&gt;
  &lt;P&gt;*** Importing&lt;BR /&gt;ls_ptab-name = 'USERNAME'.&lt;BR /&gt;ls_ptab-kind = abap_func_importing.&lt;BR /&gt;GET REFERENCE OF lv_level INTO ls_ptab-value.&lt;BR /&gt;INSERT ls_ptab INTO TABLE lt_ptab.&lt;BR /&gt;&lt;BR /&gt;** Table&lt;BR /&gt;ls_ptab-name = 'PARAMETER'.&lt;BR /&gt;ls_ptab-kind = abap_func_tables.&lt;BR /&gt;GET REFERENCE OF &amp;lt;itab&amp;gt; INTO ls_ptab-value.&lt;BR /&gt;INSERT ls_ptab INTO TABLE lt_ptab.&lt;BR /&gt;&lt;BR /&gt;*** Exceptions&lt;BR /&gt;ls_etab-name = 'NOT_EXISTS'.&lt;BR /&gt;ls_etab-value = 1.&lt;BR /&gt;INSERT ls_etab INTO TABLE lt_etab.&lt;BR /&gt;ls_etab-name = 'OTHERS'.&lt;BR /&gt;ls_etab-value = 2.&lt;BR /&gt;INSERT ls_etab INTO TABLE lt_etab.&lt;BR /&gt;&lt;BR /&gt;lv_fname = 'BAPI_USER_GET_DETAIL'." Function Name&lt;BR /&gt;&lt;BR /&gt;CALL FUNCTION lv_fname&lt;BR /&gt; PARAMETER-TABLE&lt;BR /&gt; lt_ptab&lt;BR /&gt; EXCEPTION-TABLE&lt;BR /&gt; lt_etab.&lt;BR /&gt;IF sy-subrc NE 0.&lt;BR /&gt;*** Error Handling&lt;BR /&gt;ENDIF.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;I referred the many posts the gui_download dynamic function call is working fine but i am not able to call the functions other than gui_download dynamically.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Hiri&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321900#M1991149</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2021-02-15T14:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321901#M1991150</link>
      <description>&lt;P&gt;Please edit the question to add the relevant snippet of code.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321901#M1991150</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-02-15T14:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321902#M1991151</link>
      <description>&lt;P&gt;Hello Hiriyappa Myageri,&lt;/P&gt;&lt;P&gt;As Andrea said, it would be easier if you provided a code snipper of the call. &lt;/P&gt;&lt;P&gt;However, judging from the short dump description it seems you have not provided a value for a required parameter of the function you're trying to use. Please check that functions definition and provide values for all required parameters. Otherwise it will not work. &lt;/P&gt;&lt;P&gt;Edit: You can open the function module in SE37 transaction to check its parameters and their attributes.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321902#M1991151</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-15T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321903#M1991152</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;BR /&gt;&lt;BR /&gt;I have added code snippet. Kindly find same in original post.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Hiri&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321903#M1991152</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2021-02-15T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321904#M1991153</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;You're missing the RETURN tables parameter in your call. This parameter is obligatory.&lt;/P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Mon, 15 Feb 2021 14:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321904#M1991153</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-15T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321905#M1991154</link>
      <description>&lt;P&gt;By using the model option to add the function in some ABAP code it looks like your missing RETURN table parameter.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 14:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321905#M1991154</guid>
      <dc:creator>ArthurParisius</dc:creator>
      <dc:date>2021-02-15T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321906#M1991155</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;/P&gt;&lt;P&gt;In the example I gave the return parameter is not a obligatory.&lt;BR /&gt;Please find another example where return parameter is not present still there is dump as missing parameter .&lt;/P&gt;&lt;P&gt;REPORT zdynamic.&lt;BR /&gt;
TYPE-POOLS : abap.
&lt;BR /&gt;DATA: func TYPE string,
&lt;BR /&gt;      lt_ptab  TYPE abap_func_parmbind_tab,&lt;BR /&gt;
      ls_ptab  TYPE abap_func_parmbind,&lt;/P&gt;&lt;P&gt;
      lt_etab  TYPE abap_func_excpbind_tab, &lt;/P&gt;&lt;P&gt;      ls_etab  TYPE abap_func_excpbind, &lt;/P&gt;&lt;P&gt;      str      TYPE   TRDIR. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;itab&amp;gt; TYPE any.&lt;/P&gt;&lt;P&gt;
ASSIGN str TO &amp;lt;itab&amp;gt;. &lt;/P&gt;&lt;P&gt;DATA : lv_level TYPE string. &lt;/P&gt;&lt;P&gt;DATA : lv_type TYPE char10.&lt;/P&gt;&lt;P&gt;
lv_level = 'ZDYNAMIC'. &lt;/P&gt;&lt;P&gt;** Exporting
ls_ptab-name = 'E_TRDIR'.&lt;/P&gt;&lt;P&gt;
ls_ptab-kind = abap_func_exporting. &lt;/P&gt;&lt;P&gt;GET REFERENCE OF lv_type INTO ls_ptab-value. &lt;/P&gt;&lt;P&gt;INSERT ls_ptab INTO TABLE lt_ptab. &lt;/P&gt;&lt;P&gt;*** Importing
ls_ptab-name = 'I_PROGNAME'.&lt;/P&gt;&lt;P&gt;
ls_ptab-kind = abap_func_importing. &lt;/P&gt;&lt;P&gt;GET REFERENCE OF lv_level INTO ls_ptab-value. &lt;/P&gt;&lt;P&gt;INSERT ls_ptab INTO TABLE lt_ptab. &lt;/P&gt;&lt;P&gt;*** Exceptions
ls_etab-name = 'NOT_EXISTS'.&lt;/P&gt;&lt;P&gt;
ls_etab-value = 1. &lt;/P&gt;&lt;P&gt;INSERT ls_etab INTO TABLE lt_etab. &lt;/P&gt;&lt;P&gt;ls_etab-name = 'OTHERS'. &lt;/P&gt;&lt;P&gt;ls_etab-value = 2. &lt;/P&gt;&lt;P&gt;INSERT ls_etab INTO TABLE lt_etab.&lt;/P&gt;&lt;P&gt;
func = 'READ_TRDIR'.&lt;/P&gt;&lt;P&gt;" Function Name&lt;/P&gt;&lt;P&gt;
CALL FUNCTION func &lt;/P&gt;&lt;P&gt;  PARAMETER-TABLE
    lt_ptab &lt;/P&gt;&lt;P&gt;  EXCEPTION-TABLE
    lt_etab. &lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.
*** Error Handling
ENDIF.&lt;/P&gt;&lt;P&gt;is there any restrictions while calling the dynamic FM.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1892615-test1.png" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hiri &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 15:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321906#M1991155</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2021-02-15T15:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321907#M1991156</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;hirizm&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;RETURN is an obligatory parameter in BAPI_USER_GET_DETAIL function.&lt;/P&gt;&lt;P&gt;Please format your code with the "Code" button in the message editor's toolbar.&lt;/P&gt;&lt;P&gt;If function's parameter is marked as IMPORTING, you have to mark it as EXPORTING in your report. And vice versa. Like in normal ABAP function call.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 15:20:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321907#M1991156</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-02-15T15:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: CALL_FUNCTION_PARM_MISSING in standalone program while calling bapi dynamically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321908#M1991157</link>
      <description>&lt;P&gt;Hi Mateusz,&lt;BR /&gt;&lt;BR /&gt;You are right . Parameter table is  we need to pass the values as you mentioned . &lt;BR /&gt;Now it is working fine&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hiri&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 17:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-parm-missing-in-standalone-program-while-calling-bapi/m-p/12321908#M1991157</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2021-02-15T17:39:56Z</dc:date>
    </item>
  </channel>
</rss>

