<?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 with UPDATE TASK in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608140#M272913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. But when I did that...it said...update debugging has triggered. But the control is not going inside the update function module. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2006 20:43:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-02T20:43:36Z</dc:date>
    <item>
      <title>Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608138#M272911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the below code. While debugging the control is not going inside the function module called using &amp;lt;b&amp;gt;call function ...... in update task&amp;lt;/b&amp;gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the function module is not executed immediately, but is scheduled for execution in a special work process (update work process). For this purpose, the name of the function module including the passed actual parameters is stored as a log record in the database table VBLOG. If the statement is executed during the update task, the addition IN UPDATE TASK is ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual execution is triggered by the statement COMMIT WORK which is not happening in this case. The formal parameters of the function module receive the values of the actual parameters from table VBLOG. How can I read the entries in VBLOG? Why the function module is not executed? Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM bte_publish ON COMMIT LEVEL 9.
* syncron update
    COMMIT WORK AND WAIT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*       Publish business transaction events. The function module have
*       to call as last update module!
*----------------------------------------------------------------------*&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;FORM bte_publish.

  IF NOT gvt_nodes IS INITIAL.
    CALL FUNCTION 'CUSTOMER_HIERARCHY_THROW_BTE' IN UPDATE TASK
         EXPORTING
              ffi_valid_on    = knvh-datab
              fti_event_list  = gvt_nodes
              fti_event_listx = gvt_nodesx.
  ENDIF.
ENDFORM.                               " BTE_PUBLISH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 20:22:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608138#M272911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T20:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608139#M272912</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;  For the update modules you have to set the update debugging on to debug those..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the debugging screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In the menu choose the option Settings -&amp;gt; Update debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 20:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608139#M272912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T20:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608140#M272913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. But when I did that...it said...update debugging has triggered. But the control is not going inside the update function module. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 20:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608140#M272913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T20:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608141#M272914</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;  If you put a break point I believe it will not stop..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Once you set the update debuggin..Press F8..It will process all the update function modules..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Skip the function modules that you don't want to debug by pressing F6 on the function module calls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 20:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608141#M272914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T20:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608142#M272915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right Naren. But I need to check inside the update function module, whether it is calling the BTE function module I had configured and the code which I had put in it. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The COMMIT WORK is returning 4 and hence I believe it is not popping up another debuggin session in which the update FM runs.&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Somen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608142#M272915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608143#M272916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you getting any update termination error when executing the code..Check SM13 for update terminaation logs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608143#M272916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608144#M272917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Right. What should I do in this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608144#M272917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608145#M272918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SM13 and display the update termination and check in which function module you got the error..And try to fix the error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608145#M272918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608146#M272919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I did fixed the error now. And now the status is 'initial'. I am not sure what does that mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the next step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608146#M272919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608147#M272920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kewl. I executed that module from SM13 and it took me there. Full points to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608147#M272920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Function module with UPDATE TASK</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608148#M272921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to re-process the transaction..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set the update debugging..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then make sure there is no update errors before your code is executed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2006 21:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-with-update-task/m-p/1608148#M272921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-02T21:56:36Z</dc:date>
    </item>
  </channel>
</rss>

