<?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>Question Re: Background task is not being executed in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386012#M3764068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in transaction SWE2 I should use as a "receiver function module" my own FM instead of standard SWW_WI_CREATE_VIA_EVENT_IBF, do my stuff inside and call no workflow. Is this what you meant?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 09:59:46 GMT</pubDate>
    <dc:creator>marcin_cholewczuk</dc:creator>
    <dc:date>2014-05-30T09:59:46Z</dc:date>
    <item>
      <title>Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaq-p/10386009</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;&lt;/P&gt;&lt;P&gt;It's been&amp;nbsp; some time since I've played with workflows and I have forgotten quite a lot, so I assume that this is a simple matter and I'm just forgetting something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background: In response to changes that are being made to one of objects in system I'm trying to an update z-tables. I've decided to use workflow events that are being fired during creation of change document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did: &lt;/P&gt;&lt;P&gt;- I've created ABAP class that implements IF_WORKFLOW interface and implemented all Methods (especially BI_PERSISTENT~FIND_BY_LPOR and BI_PERSISTENT~LPOR, rest have only EXIT inside), added Contructor, event and my own method that do all work.&lt;/P&gt;&lt;P&gt;- I've prepared Workflow that was started with event that I've declared in my class and added one activity that is calling method (that do all work)&lt;/P&gt;&lt;P&gt;- I made all customizing that was necessary for this to run (like in transaction SWEC). Since this is SAP object and change object already exists, I did no changes in SWED&lt;/P&gt;&lt;P&gt;- for first test I've set it task work in dialog and added me as an agent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;I'm changing an object. In effect in SWIA workflow is getting status STARTED and automatically a dialog step is added with status READY. I can execute it in business workplace. Dialog step is being set to COMPLETED, &lt;STRONG&gt;but workflow has still status STARTED - I've to click button "manualy end" in SWIA to make it change into COMPLETED. What could be the reason?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Next:&lt;/P&gt;&lt;P&gt;I've deleted agent for my task and I've set it to "background task"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;I'm changing an object. In effect in SWIA workflow is getting status READY. &lt;STRONG&gt;No background task is being created automatically, why? &lt;/STRONG&gt;When I click "execute workitem" and refresh then workflow status is STARTED and &lt;STRONG&gt;background task is being created, however It's not being executed, again why?&lt;/STRONG&gt; When I go in details of this task then I can see that its start date/time and creation date/time are equal, so it should be executed right after creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas are welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaq-p/10386009</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2014-05-30T08:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386010#M3764066</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; Check SWU3 for customiozin is ok or not. Then use SWU_OBUF. If still provlem exist, share&amp;nbsp;&amp;nbsp; your graphical screenshot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 08:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386010#M3764066</guid>
      <dc:creator>anjan_paul</dc:creator>
      <dc:date>2014-05-30T08:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386011#M3764067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you defined the task as background processing? if you changed this option in the task and it was not set in the first time, try running transaction swu_obuf it sometimes solves strange system behaviors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, if your only requirement is to update z-tables, why not use a receiver function module in swe2 instead of a workflow it is easier and has not requirements from the DB (workflow logs,head,linked object etc.) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386011#M3764067</guid>
      <dc:creator>ronen_weisz</dc:creator>
      <dc:date>2014-05-30T09:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386012#M3764068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So in transaction SWE2 I should use as a "receiver function module" my own FM instead of standard SWW_WI_CREATE_VIA_EVENT_IBF, do my stuff inside and call no workflow. Is this what you meant?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386012#M3764068</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2014-05-30T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386013#M3764069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, call your own function module instead of the sww_wi_create_via_event_ibf. you need only to have the same type for importing parameters. if you look in swe2 you will see there is at least one standard link of this type you can use as an example (draw.changed) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 10:40:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386013#M3764069</guid>
      <dc:creator>ronen_weisz</dc:creator>
      <dc:date>2014-05-30T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Background task is not being executed</title>
      <link>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386014#M3764070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatelly I still don't know why wf was not triggered &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/877/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt; I suspect that system is not enough configured. That way or other your solution works fine for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 11:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/background-task-is-not-being-executed/qaa-p/10386014#M3764070</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2014-05-30T11:00:10Z</dc:date>
    </item>
  </channel>
</rss>

