<?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: problem with function module calling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927015#M940500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2008 12:16:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-06T12:16:31Z</dc:date>
    <item>
      <title>problem with function module calling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927013#M940498</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 two questions here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a function moduel 'Z_GET_MATL_BALANCE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my code it called in the below said way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_GET_MATL_BALANCE'&lt;/P&gt;&lt;P&gt;    DESTINATION 'NONE'&lt;/P&gt;&lt;P&gt;    STARTING NEW TASK 'A'&lt;/P&gt;&lt;P&gt;    PERFORMING f_back ON END OF TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ref_dte    = s_datum-low&lt;/P&gt;&lt;P&gt;      str_dte    = s_datum-high&lt;/P&gt;&lt;P&gt;      end_dte    = s_datum-high&lt;/P&gt;&lt;P&gt;      i_werks    = p_werks&lt;/P&gt;&lt;P&gt;      i_past     = 'X'&lt;/P&gt;&lt;P&gt;      i_future   = 'X'&lt;/P&gt;&lt;P&gt;      verselem   = p_mrpver&lt;/P&gt;&lt;P&gt;      plscn      = p_scenar&lt;/P&gt;&lt;P&gt;      r_outrec   = r_outrec&lt;/P&gt;&lt;P&gt;      supstk     = p_supstk&lt;/P&gt;&lt;P&gt;      days_ahead = w_days_ahead&lt;/P&gt;&lt;P&gt;      shipnt     = p_shipnt&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;mat_bals   = w_zmat_bals_a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;i_zdatum   = i_datum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;mat_movmts = w_mat_movmts_a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;mat_ship   = i_mat_ship_a.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e005(ZMIM) WITH&lt;/P&gt;&lt;P&gt;   text-009 text-166 text-054 sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_back USING task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'A' .&lt;/P&gt;&lt;P&gt;      RECEIVE RESULTS FROM FUNCTION 'Z_GET_MATL_BALANCE'&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;mat_bals                     = w_zmat_bals_a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;mat_movmts                   = w_mat_movmts_a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;mat_ship                     = i_mat_ship_a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            call_material_lesen_fail     = 1&lt;/P&gt;&lt;P&gt;            call_t450n_fail              = 2&lt;/P&gt;&lt;P&gt;            call_t399d_fail              = 3&lt;/P&gt;&lt;P&gt;            call_aufbauen_mdpsx_fail     = 4&lt;/P&gt;&lt;P&gt;            call_mdezx_aufbauen_fail     = 5&lt;/P&gt;&lt;P&gt;            call_t001w_fail              = 6&lt;/P&gt;&lt;P&gt;            call_zmrpelem_failed         = 7&lt;/P&gt;&lt;P&gt;            call_aufbauen_mdpsx_sim_fail = 8&lt;/P&gt;&lt;P&gt;            OTHERS                       = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;       RET_CODE1 = SY-SUBRC.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now my first question is what is the difference between function modules calling normally and in the above said way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the second question is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under tables parameter i have four internal tables defined where as while calling the same function module using recive results i have three internal tables. is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am asking this because i am getting an error message while using this funciton module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do not give generic answers, all the helpful answers will get a def reward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 11:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927013#M940498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T11:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module calling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927014#M940499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call function starting new task is used to make Asynchronus RFC Call. In this case your function module will be called in a NEW SESSION and it will exceute independently from the Main program which is calling the FM. Also, the main program will continue its own processing and it will not wait for the RFC FM to complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not mandatory to have all the TABLES parameters in the RETURN Perform (..Receive results from ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 11:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927014#M940499</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2008-06-06T11:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with function module calling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927015#M940500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 12:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-module-calling/m-p/3927015#M940500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-06T12:16:31Z</dc:date>
    </item>
  </channel>
</rss>

