<?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: Workitem Generation Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267837#M1915138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the same question in &lt;A __default_attr="2218" __jive_macro_name="community" class="jive_macro_community jive_macro" data-orig-content="SAP Business Workflow" href="https://community.sap.com/"&gt;&lt;/A&gt; they will be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 12:08:15 GMT</pubDate>
    <dc:creator>mauro_blanc3</dc:creator>
    <dc:date>2015-08-27T12:08:15Z</dc:date>
    <item>
      <title>Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267836#M1915137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please guide us on how in workflow, work item number gets generated at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Production System , we are having an issue where work item number are not getting generated in a particular sequence. This is affecting our code logic which we have implemented based on work item number of future task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example if current work item number of task is&amp;nbsp; 593862 , Then Next step generated 593863 ( Previous +1) and further to this next task should generate 593864 but it generated 593866. May be 593864 got generated for difference work flow instance of different document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 6-7 such cases reported in production where workflow has generated work item number not in sequence sometime added by 2&amp;nbsp; to previous work item or by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help as to what can be done so that it always generate work item in sequence .&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267836#M1915137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T12:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267837#M1915138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the same question in &lt;A __default_attr="2218" __jive_macro_name="community" class="jive_macro_community jive_macro" data-orig-content="SAP Business Workflow" href="https://community.sap.com/"&gt;&lt;/A&gt; they will be able to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267837#M1915138</guid>
      <dc:creator>mauro_blanc3</dc:creator>
      <dc:date>2015-08-27T12:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267838#M1915139</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;The Workitem ID&amp;nbsp; is created from number Range Object SWW_WIID.&lt;/P&gt;&lt;P&gt;If you have more than one Application-servers the buffer of the Object could be a problem.&lt;/P&gt;&lt;P&gt;And there are a lot of Background-Workitems in the System. Maybe they are taking some numbers.&lt;/P&gt;&lt;P&gt;You can check the Workitems in your system using Transaction SWI1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267838#M1915139</guid>
      <dc:creator>former_member252826</dc:creator>
      <dc:date>2015-08-27T15:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267839#M1915140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Peer&lt;/P&gt;&lt;P&gt; Is there a way we can get system generate wi number in a sequence manner for particular workflow instance. Ex after 13, 14 should be generated for next step but 15 got generated because 14 was being occupied by some other workflow instance of different document running in live syatem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267839#M1915140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-27T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267840#M1915141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice to see you here. two points from my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There is no way you can ensure the workitems in sequence. Its only possible if you stop all other workflows ( including standard and custom , and some background processes ) which is near to impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The logic which you have written in the code for sequence workitem ID is incorrect. If you need particular workitem id , there are a lot of FM/Classes/Methods to fetch the same. Please use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 05:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267840#M1915141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-28T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267841#M1915142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rakesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes there are many FM/Classes to get the WI ID but&amp;nbsp; we do not have the provision to use FM/Classes /Methods to get the WI of the task which has not being generated yet.&amp;nbsp; We have to pass the WI to web dynpro application thru URL parameter in NWBC environment&amp;nbsp; . Since wi id which is passed to WD app is of task which will be generated post sending mail we have made this assumption of WI sequence number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are randomly few cases which are not generating the WI ID in sequence but&amp;nbsp; for 90% cases this is generating in sequence manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to ensure the system to behave uniformly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 06:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267841#M1915142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-28T06:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267842#M1915143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Silky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got your requirement now. You can use program exit/Workitem exit to send the mail rather than mail step. Put a program exit in the actual workitem and prepare your email with actual workitem id and other parameters and by this way , you will be getting always correct workitem ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 10:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267842#M1915143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-28T10:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267843#M1915144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.. Then how will we pass the Dialog Task Workitem ID generated to Class Method used in Prg Exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a Way to bind Task Workitem ID to Class Method Parameter at Program Exit Level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 10:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267843#M1915144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-28T10:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem Generation Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267844#M1915145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Silky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CALL METHOD cl_swf_evt_requester=&amp;gt;get_workitem&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; IMPORTING&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ex_workitem&amp;nbsp;&amp;nbsp; = tmp_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;You will get the workitem in tmp_object-objkey.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Put this code in the program exit and with this workitem id , you can send the email or by concatenation , you can prepare the link.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Basically you need to first generate the workitem and then in parallel or after send the email. You cannot assume wokritem generation in sequence.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 08:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-generation-issue/m-p/11267844#M1915145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-02T08:01:24Z</dc:date>
    </item>
  </channel>
</rss>

