<?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: Forward Workitem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531001#M1263620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, but I have already created a rule for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I ask that if you make a workitem forwarding, check this in the user the one that has become the forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2009 13:11:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-27T13:11:03Z</dc:date>
    <item>
      <title>Forward Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5530999#M1263618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make a check so that if a user reaches a workitem to his inbox, checks if the user has&lt;/P&gt;&lt;P&gt;permissions to run it and if he do not have the permissions to be forwarded to all users.&lt;/P&gt;&lt;P&gt;I am using the class IF_SWF_IFS_WORKITEM_EXIT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this class I managed to forward the workitem when you press cancel (sy-ucomm = 'CANC'). &lt;/P&gt;&lt;P&gt;But in this case it does not work properly. &lt;/P&gt;&lt;P&gt;I tried to put the code when the event is executed (im_event_name) is' BEF_EXEC 'and' STATE_CHG 'but when launching the error &lt;/P&gt;&lt;P&gt;workitem remains in the Ready status, and although it seems that all users have received the workitem, they can not execute it. &lt;/P&gt;&lt;P&gt;I have also tried with the event 'AFT_EXEC' but if you try to change the state the workflow becomes wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know how I can do to stop the execution of the workitem and send to everyone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 11:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5530999#M1263618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531000#M1263619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Why don't checking the problem before delivering the workitem to the user.&lt;/P&gt;&lt;P&gt;Create a rule to check if the user i authorized to execute the workitem or forward the workitem to an other user!&lt;/P&gt;&lt;P&gt;Hope this answer helps!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 11:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531000#M1263619</guid>
      <dc:creator>Peter_Lintner</dc:creator>
      <dc:date>2009-04-27T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531001#M1263620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter, but I have already created a rule for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I ask that if you make a workitem forwarding, check this in the user the one that has become the forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531001#M1263620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-27T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Forward Workitem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531002#M1263621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAP_WAPI_SET_WORKITEM_STATUS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      workitem_id          = ls_wihead-wi_id&lt;/P&gt;&lt;P&gt;      status               = 'READY'&lt;/P&gt;&lt;P&gt;     USER                 = SY-UNAME&lt;/P&gt;&lt;P&gt;     LANGUAGE             = SY-LANGU&lt;/P&gt;&lt;P&gt;     DO_COMMIT            = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the following method was not working well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD lv_wi_handle-&amp;gt;set_status&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        im_new_status = swfco_wi_status_ready.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 07:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/forward-workitem/m-p/5531002#M1263621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T07:32:30Z</dc:date>
    </item>
  </channel>
</rss>

