<?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: Error in calling FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134588#M1190126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put this FM1 inside form Form1 and the soubroutine in side FM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform FORM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form FORM1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call FM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is mean i call my function module inside a function module , Is it possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Feb 2009 08:15:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-07T08:15:07Z</dc:date>
    <item>
      <title>Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134581#M1190119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to call the FM &lt;STRONG&gt;GET_PRINT_PARAMETERS&lt;/STRONG&gt;, but is raised an run time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         CALL_FUNCTION_UC_STRUCT&lt;/P&gt;&lt;P&gt;Except.                   CX_SY_DYN_CALL_ILLEGAL_TYPE&lt;/P&gt;&lt;P&gt;Date and Time          02/07/2009 10:37:23&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Setup the Print Parmaters&lt;/P&gt;&lt;P&gt;  call function 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            authority              = space&lt;/P&gt;&lt;P&gt;            copies                 = '1'&lt;/P&gt;&lt;P&gt;            cover_page             = space&lt;/P&gt;&lt;P&gt;            data_set               = space&lt;/P&gt;&lt;P&gt;            department             = space&lt;/P&gt;&lt;P&gt;            destination            = space&lt;/P&gt;&lt;P&gt;            expiration             = '1'&lt;/P&gt;&lt;P&gt;            immediately            = space&lt;/P&gt;&lt;P&gt;            in_archive_parameters  = space&lt;/P&gt;&lt;P&gt;            in_parameters          = space&lt;/P&gt;&lt;P&gt;            layout                 = space&lt;/P&gt;&lt;P&gt;            mode                   = space&lt;/P&gt;&lt;P&gt;            new_list_id            = 'X'&lt;/P&gt;&lt;P&gt;            no_dialog              = 'X'&lt;/P&gt;&lt;P&gt;            user                   = sy-uname&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            out_parameters         = loc_mstr_print_parms&lt;/P&gt;&lt;P&gt;            valid                  = loc_mc_valid&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            archive_info_not_found = 1&lt;/P&gt;&lt;P&gt;            invalid_print_params   = 2&lt;/P&gt;&lt;P&gt;            invalid_archive_params = 3&lt;/P&gt;&lt;P&gt;            others                 = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wating ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ali Saleh AlAbbad on Feb 7, 2009 8:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134581#M1190119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134582#M1190120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the data declaration whcih you have passed to the Fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
   l_text        TYPE pri_params-plist,
    l_valid       TYPE c,                 " Flag
    wa_param      LIKE pri_params.     

l_text = i_vdetails_line-objid.
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      copies                 = '1'
*      destination            = sy-pdest
      line_count             = sy-linct
      line_size              = sy-linsz
      list_name              = l_text
      new_list_id            = 'X'
      no_dialog              = 'X'
    IMPORTING
      out_parameters         = wa_param
      valid                  = l_valid
    EXCEPTIONS
      archive_info_not_found = 1
      invalid_print_params   = 2
      invalid_archive_params = 3
      OTHERS                 = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134582#M1190120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134583#M1190121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see no error or mistak in the parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134583#M1190121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134584#M1190122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bro....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to chec in if the parameter you have passed to function module has exactly same data type as that of parameter in function module...&lt;/P&gt;&lt;P&gt;and if so move the data which is not having exactly sane data type or field width to a data variable having that thing same as in func module.... and the use that variable to be passed to function module....&lt;/P&gt;&lt;P&gt;your problem will be solved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:49:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134584#M1190122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134585#M1190123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what type you have taken for:&lt;/P&gt;&lt;P&gt;out_parameters = loc_mstr_print_parms --is it pri_params&lt;/P&gt;&lt;P&gt;valid = loc_mc_valid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:53:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134585#M1190123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134586#M1190124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loc_mstr_print_parms should be of type PRI_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134586#M1190124</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-02-07T07:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134587#M1190125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copied your code and tested but i did not get any runtime error...Check the copied code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
    loc_mc_valid      TYPE c,                 " Flag
    loc_mstr_print_parms      LIKE pri_params.


call function 'GET_PRINT_PARAMETERS'
     EXPORTING
          authority              = space
          copies                 = '1'
          cover_page             = space
          data_set               = space
          department             = space
          destination            = space
          expiration             = '1'
          immediately            = space
          in_archive_parameters  = space
          in_parameters          = space
          layout                 = space
          mode                   = space
          new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
     IMPORTING
          out_parameters         = loc_mstr_print_parms
          valid                  = loc_mc_valid
     EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
IF sy-subrc eq 0.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 07:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134587#M1190125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T07:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134588#M1190126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put this FM1 inside form Form1 and the soubroutine in side FM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform FORM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form FORM1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call FM1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is mean i call my function module inside a function module , Is it possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 08:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134588#M1190126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134589#M1190127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me what is the type of the variable&lt;/P&gt;&lt;P&gt; loc_mc_valid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Feb 2009 09:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134589#M1190127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-07T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in calling FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134590#M1190128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Feb 2009 04:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-calling-fm/m-p/5134590#M1190128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-08T04:31:22Z</dc:date>
    </item>
  </channel>
</rss>

