<?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 getting error of CALL FUNCTION in coding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-of-call-function-in-coding/m-p/7146308#M1514044</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;i have wrtie a code for calling SMART FORM.In the coding &lt;STRONG&gt;START OF SELECTION&lt;/STRONG&gt;,i got error at &lt;STRONG&gt;f_display_report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM f_display_report .

  DATA: fname(30) TYPE c.

  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZCCL_RATE_COMPARISION2'
    IMPORTING
      fm_name            = fname
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.


  IF sy-subrc = 0.
    CALL FUNCTION fname
      EXPORTING
        gi_main    =  gs_main
      TABLES
        it_detail  =  gi_detail.

  ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;GS_MIAN&lt;/STRONG&gt; and &lt;STRONG&gt;GI_DETAIL&lt;/STRONG&gt; are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gs_main LIKE ekko,
    gi_detail LIKE STANDARD TABLE OF ekpo WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execuring it gives me error of &lt;STRONG&gt;Incorrect parameter with CALL FUNCTION&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 09:26:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-18T09:26:29Z</dc:date>
    <item>
      <title>getting error of CALL FUNCTION in coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-of-call-function-in-coding/m-p/7146308#M1514044</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;i have wrtie a code for calling SMART FORM.In the coding &lt;STRONG&gt;START OF SELECTION&lt;/STRONG&gt;,i got error at &lt;STRONG&gt;f_display_report&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM f_display_report .

  DATA: fname(30) TYPE c.

  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'ZCCL_RATE_COMPARISION2'
    IMPORTING
      fm_name            = fname
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.


  IF sy-subrc = 0.
    CALL FUNCTION fname
      EXPORTING
        gi_main    =  gs_main
      TABLES
        it_detail  =  gi_detail.

  ENDIF.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;GS_MIAN&lt;/STRONG&gt; and &lt;STRONG&gt;GI_DETAIL&lt;/STRONG&gt; are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gs_main LIKE ekko,
    gi_detail LIKE STANDARD TABLE OF ekpo WITH HEADER LINE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after execuring it gives me error of &lt;STRONG&gt;Incorrect parameter with CALL FUNCTION&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sappk25&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-of-call-function-in-coding/m-p/7146308#M1514044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting error of CALL FUNCTION in coding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-of-call-function-in-coding/m-p/7146309#M1514045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please also place the type refered in smart forms.&lt;/P&gt;&lt;P&gt;Your dump analysis will clearly say which parameter was mistyped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My assumption is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION fname
      EXPORTING
        gi_main    =  gs_main
      TABLES
        it_detail  =  gi_detail[]   "&amp;lt;--- try adding a square bracket here
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-error-of-call-function-in-coding/m-p/7146309#M1514045</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-18T09:34:07Z</dc:date>
    </item>
  </channel>
</rss>

