<?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: FM On Update Task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613845#M599810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Ravi.&lt;/P&gt;&lt;P&gt;I need to Create the Goods Mvt. step by step using a BAPI.Say there are 3 sets of data,if the first one is OK but second one is with error I want to Rollback the first also.&lt;/P&gt;&lt;P&gt;If this is the case what I need to do?&lt;/P&gt;&lt;P&gt;Thx again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2007 16:28:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-26T16:28:26Z</dc:date>
    <item>
      <title>FM On Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613843#M599808</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 have written a subroutine and inside that I am calling a FM In Update Task.Control is going to the Subroutine but not into the FM In Update Task,but the SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Code is like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM sub_post_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_post_data .&lt;/P&gt;&lt;P&gt;*----- Post through the FM in UPDATE TASK&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'Z_MB1A_POST'&lt;/P&gt;&lt;P&gt;    IN UPDATE TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      gm_header = gm_header&lt;/P&gt;&lt;P&gt;      gm_code   = gm_code&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      gm_item   = gm_item&lt;/P&gt;&lt;P&gt;      t_return  = gm_return.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processing type of the FM is selected as UPDATE MODULE and START IMMED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please tell me why the control is not going into the Update TASK FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in Adv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 16:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613843#M599808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: FM On Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613844#M599809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajarshi,&lt;/P&gt;&lt;P&gt;   When you call an FM in update task, it doesn't get executed until the system encounters a commit statement later in its flow.&lt;/P&gt;&lt;P&gt;This is what the sap help says:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;"Flags the function module func for execution in the update task. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and a subsequent COMMIT WORK then causes the function module to be executed by the update task."&amp;lt;/b&amp;gt;&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>Thu, 26 Jul 2007 16:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613844#M599809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T16:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM On Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613845#M599810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx Ravi.&lt;/P&gt;&lt;P&gt;I need to Create the Goods Mvt. step by step using a BAPI.Say there are 3 sets of data,if the first one is OK but second one is with error I want to Rollback the first also.&lt;/P&gt;&lt;P&gt;If this is the case what I need to do?&lt;/P&gt;&lt;P&gt;Thx again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 16:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613845#M599810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: FM On Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613846#M599811</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;&lt;/P&gt;&lt;P&gt;  The function modules called in update task are executed at the end of the transaction .. if you want to look into the flow and debug in the update task.. while you are in the debugging mode place a break point at statment call function.. and go with f5 slowly u will get to the update funcation module at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 16:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613846#M599811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T16:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: FM On Update Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613847#M599812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to debug the function module called in update task set the debugging setting as update debugging and put the break point inside the funtion module so it will stop at the funion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the best .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;srinu reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2007 20:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-on-update-task/m-p/2613847#M599812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-26T20:20:28Z</dc:date>
    </item>
  </channel>
</rss>

