<?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: function module in new task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101774#M736040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;   The problem was that I've importing parameters in FM...but as per ur guidance I was able to sort it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2007 08:24:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-23T08:24:50Z</dc:date>
    <item>
      <title>function module in new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101770#M736036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;   I've got a Z function module. I want to use starting new task syntax with it. But the problem is that its having an importing parameter also. is there any alternative for that. I need to process this FM in a new task. Points will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 06:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101770#M736036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T06:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: function module in new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101771#M736037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION update_function IN UPDATE TASK &lt;/P&gt;&lt;P&gt;                             [EXPORTING p1 = a1 p2 = a2 ...] &lt;/P&gt;&lt;P&gt;                             [TABLES t1 = itab1 t2 = itab2 ...].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 07:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101771#M736037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: function module in new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101772#M736038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that he has IMPORTING parameters.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You call the FM STARTING NEW TASK, without IMPORTING parameters.  If you need the results, then you must use the addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{PERFORMING subr}|{CALLING meth} ON END OF TASK &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the subroutine or method, you'll need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECEIVE RESULTS FROM FUNCTION, putting your import parameters there.  This is all documented very well in the ABAP help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: note that you have posted this before.  You say you have a problem with the importing params.  What precisely is the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Matthew Billingham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 07:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101772#M736038</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-11-23T07:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: function module in new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101773#M736039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;HERE THE EXAMPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DIF_PLAN&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&amp;lt;/b&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM dif_plan TABLES  it_param TYPE tdf_el &lt;/P&gt;&lt;P&gt;              USING  nam LIKE t_name&lt;/P&gt;&lt;P&gt;                     idx.&lt;/P&gt;&lt;P&gt;  CONCATENATE nam idx  INTO taskname.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Y_F_CO_DIF_DF_ELEM'&lt;/P&gt;&lt;P&gt;  STARTING NEW TASK taskname&lt;/P&gt;&lt;P&gt;  DESTINATION IN GROUP DEFAULT&lt;/P&gt;&lt;P&gt;    PERFORMING outdata_new ON END OF TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_keart   = 'N'      &lt;/P&gt;&lt;P&gt;      i_kkzst   = ' '      &lt;/P&gt;&lt;P&gt;      i_curtp   = p_curtp&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_param   = it_param &lt;/P&gt;&lt;P&gt;      t_el_hv   = it_el_hv&lt;/P&gt;&lt;P&gt;      t_elehkns = it_elehkns&lt;/P&gt;&lt;P&gt;      t_ckmlkev = it_ckmlkev&lt;/P&gt;&lt;P&gt;      r_mlcct   = ra_mlcct&lt;/P&gt;&lt;P&gt;      r_categ   = ra_categ&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      int_err   = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e203(zmco).&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ADD 1 TO started_task.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF free_task  &amp;lt;=  proc_cnt_n .&lt;/P&gt;&lt;P&gt;    WAIT UNTIL gs_cnt &amp;gt;= started_task.&lt;/P&gt;&lt;P&gt;    CLEAR: started_task, gs_cnt.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*Quantity of free processes&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'SPBT_GET_CURR_RESOURCE_INFO'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       free_pbt_wps                      = free_task&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       internal_error                    = 1&lt;/P&gt;&lt;P&gt;       pbt_env_not_initialized_yet       = 2&lt;/P&gt;&lt;P&gt;       OTHERS                            = 3&lt;/P&gt;&lt;P&gt;             .&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  PERFORM num_task USING 4.&lt;/P&gt;&lt;P&gt;  proc_cnt = proc_cnt - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "DIF_PLAN&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  outdata_new&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      --&amp;gt;TASKNAME   text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&amp;lt;/b&amp;gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM outdata_new USING taskname.&lt;/P&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'Y_F_CO_DIF_DF_ELEM'&lt;/P&gt;&lt;P&gt;                           TABLES&lt;/P&gt;&lt;P&gt;                                 t_outdata = it_dif_df_elem1&lt;/P&gt;&lt;P&gt;                           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                                 int_err   = 1&lt;/P&gt;&lt;P&gt;                                 OTHERS    = 2.&lt;/P&gt;&lt;P&gt;  APPEND LINES OF it_dif_df_elem1 TO it_dif_df_elem.&lt;/P&gt;&lt;P&gt;  ADD 1 TO gs_cnt.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 07:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101773#M736039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module in new task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101774#M736040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;   The problem was that I've importing parameters in FM...but as per ur guidance I was able to sort it out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2007 08:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-new-task/m-p/3101774#M736040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-23T08:24:50Z</dc:date>
    </item>
  </channel>
</rss>

