<?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 Query in Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-function-module/m-p/6607341#M1438277</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;I am calling a Function Module for Paralle Processing.&lt;/P&gt;&lt;P&gt;But the subroutine to receive the results always has a sy-subrc of 1.&lt;/P&gt;&lt;P&gt;Can u pls help me as to why the sy-subrc is always 1.&lt;/P&gt;&lt;P&gt;Function Module:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Make the RFC call&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'&lt;/P&gt;&lt;P&gt;        STARTING NEW TASK lv_taskname&lt;/P&gt;&lt;P&gt;        DESTINATION IN GROUP lv_rfc_group&lt;/P&gt;&lt;P&gt;        PERFORMING sub_update_results ON END OF TASK&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          t_orders              = gt_orders_batch&lt;/P&gt;&lt;P&gt;          t_status              = gt_status&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          system_failure        = 1&lt;/P&gt;&lt;P&gt;          communication_failure = 2&lt;/P&gt;&lt;P&gt;          resource_failure      = 3&lt;/P&gt;&lt;P&gt;          OTHERS                = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine:&lt;/P&gt;&lt;P&gt;FORM sub_update_results USING uv_taskname.&lt;/P&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     t_orders_not_updated            = gt_orders_not_updated_temp&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;       system_failure        = 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      time_out              = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       communication_failure = 2&lt;/P&gt;&lt;P&gt;       resource_failure      = 3&lt;/P&gt;&lt;P&gt;       OTHERS                = 4.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the SUbroutine the sy-subrc is always '1'(Though i am not explicitly raising an exception in the Function Module')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 08:29:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-11T08:29:55Z</dc:date>
    <item>
      <title>Query in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-function-module/m-p/6607341#M1438277</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;I am calling a Function Module for Paralle Processing.&lt;/P&gt;&lt;P&gt;But the subroutine to receive the results always has a sy-subrc of 1.&lt;/P&gt;&lt;P&gt;Can u pls help me as to why the sy-subrc is always 1.&lt;/P&gt;&lt;P&gt;Function Module:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Make the RFC call&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'&lt;/P&gt;&lt;P&gt;        STARTING NEW TASK lv_taskname&lt;/P&gt;&lt;P&gt;        DESTINATION IN GROUP lv_rfc_group&lt;/P&gt;&lt;P&gt;        PERFORMING sub_update_results ON END OF TASK&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          t_orders              = gt_orders_batch&lt;/P&gt;&lt;P&gt;          t_status              = gt_status&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          system_failure        = 1&lt;/P&gt;&lt;P&gt;          communication_failure = 2&lt;/P&gt;&lt;P&gt;          resource_failure      = 3&lt;/P&gt;&lt;P&gt;          OTHERS                = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine:&lt;/P&gt;&lt;P&gt;FORM sub_update_results USING uv_taskname.&lt;/P&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'Z_STATUS_CHANGE_TEST_ARFC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;     t_orders_not_updated            = gt_orders_not_updated_temp&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;       system_failure        = 1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      time_out              = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       communication_failure = 2&lt;/P&gt;&lt;P&gt;       resource_failure      = 3&lt;/P&gt;&lt;P&gt;       OTHERS                = 4.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the SUbroutine the sy-subrc is always '1'(Though i am not explicitly raising an exception in the Function Module')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-function-module/m-p/6607341#M1438277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Query in Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-function-module/m-p/6607342#M1438278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you specifying correct name for group? i.e. Is it defined as server or either it should be DEFAULT or blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, System failure generally occurs when FM is going to dump..First check if FM is working correctly with parameters you have passed without parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mohaiyuddin Soniwala on Feb 11, 2010 2:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-in-function-module/m-p/6607342#M1438278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:43:44Z</dc:date>
    </item>
  </channel>
</rss>

