<?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: Debug FM called in background Task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040870#M86427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; How do i close this message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just did. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2005 22:09:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-15T22:09:40Z</dc:date>
    <item>
      <title>Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040857#M86414</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;  Is there any way i can debug a FM called in "background task as separate unit" ? What is the difference if i call in background task and in update task? I think both gets triggered by a commit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 18:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040857#M86414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T18:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040858#M86415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harikrishna,&lt;/P&gt;&lt;P&gt; I don't think one can debug an FM in a background mode.&lt;/P&gt;&lt;P&gt;AFAIK, a for an update task, a separate thread runs to process, in parallel with the called program.&lt;/P&gt;&lt;P&gt;Program execution doesn't wait for the control to get back from the Update task.&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>Tue, 15 Nov 2005 18:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040858#M86415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T18:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040859#M86416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If calling in Update Task, then it runs in an UPdate Work process, if you call in background task, it is running in a background task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The update task is a little special though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REad on.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3 &lt;/P&gt;&lt;P&gt;CALL FUNCTION func IN UPDATE TASK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... EXPORTING p1 = f1 ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... TABLES p1 = itab1 ... pn = itabn&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&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. Update function modules must be flagged as such in the Function Builder &lt;/P&gt;&lt;P&gt;The return value is not set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... EXPORTING p1 = f1 ... pn = fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Values of fields and field strings specified under EXPORTING are passed from the calling program to the function module. In the function module, the formal parameters are defined as import parameters. In the interface definition, default values must be assigned to all import parameters of the update function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... TABLES p1 = itab1 ... pn = itabn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;TABLES passes references to internal tables. All table parameters of the function module must have values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;With update function modules, both import parameters and exceptions are ignored when the call is made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Administration transaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related &lt;/P&gt;&lt;P&gt;COMMIT WORK, SET UPDATE TASK LOCAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 18:25:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040859#M86416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T18:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040860#M86417</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;When you call the FM in background task, then a process id will be created for it. So then go to SM66 and Identify the process id then placing the cursor on the process ID press the debugging button. If you have authorization then you can debug it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 18:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040860#M86417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040861#M86418</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;In case you have not deleted the completed background Job, you can try this out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In SM37 display the completed Job you want to debug&lt;/P&gt;&lt;P&gt;2. Select the job and type in 'JDBG' in the command window and hit enter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just want to let you know there is a way to debbug the backgrond job.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 18:43:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040861#M86418</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-11-15T18:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040862#M86419</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;  Thanks for the replies. I do usually debug back ground jobs using these procedures. But in this case this FM is called in Background task from an user exit. How do i get the process id for this? Also i dont think i can see this through SM37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:06:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040862#M86419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T21:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040863#M86420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anyway that you can comment out the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN BACKGROUND TASK  part of the function call.  This way you can put a break point in it and you will be able to debug.  Or is it necessary for the fm to run truly in a BG task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040863#M86420</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-15T21:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040864#M86421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;  This is what i tried to do. But this FM changes details on a PO and is called from an exit called during the PO creation. It does a BDC to update the same PO. So if i try to run it in the same process it would lock me out. I am getting an error in the BDC and wanted to analayse that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040864#M86421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T21:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040865#M86422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this. Run in your program in debugging up to the point of the call. In another session, run transaction SM50. Now execute the function module call and switch to SM50 screen. See if your function module execution is seen there under the type BGD. Select that and in the menu, 'Program/Session&lt;DEL&gt;&amp;gt;Program&lt;/DEL&gt;&amp;gt;Debugging'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your function module really runs fast, then there is no way you can do this. It has to run atleast for a couple of seconds for you to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040865#M86422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040866#M86423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Its very quick, but i guess i can do some thing. Put in a conditional endless loop in the FM. &lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;if variable = 'X'.&lt;/P&gt;&lt;P&gt; exit.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;In debug change the condition so that it exits. I hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040866#M86423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T21:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040867#M86424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes if the function module in question is custom one, then you can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srinivas Adavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes and if it works, please don't forget to close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 21:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040867#M86424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T21:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040868#M86425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It did work. Once again thanks for all the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i close this message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: harikrishnan balan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 22:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040868#M86425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T22:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040869#M86426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you reward and close please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 22:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040869#M86426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T22:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debug FM called in background Task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040870#M86427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; How do i close this message?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just did. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2005 22:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-fm-called-in-background-task/m-p/1040870#M86427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-15T22:09:40Z</dc:date>
    </item>
  </channel>
</rss>

