<?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 User Exit: User determination in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961393#M67459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the FM does not work for you. Can you let me know  the enhancement (SMOD) id for the exit you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested, Method SWF_RUN_WIM_CRT_INTERNAL~GET_AGENTS_FOR_WORKITEM in class CL_SWF_RUN_WIM_LOCAL is where the agents are determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ramki Maley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2005 12:53:42 GMT</pubDate>
    <dc:creator>ramki_maley</dc:creator>
    <dc:date>2005-09-14T12:53:42Z</dc:date>
    <item>
      <title>Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961390#M67456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got stuck with the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented a workitem user exit and managed to determine the actual agent of a workitem at the "after_execution" event from the workitem container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I read the users that are assigned in the workflow definition (e.g. via orgunit, position, multiline container element) to a workitem (or more correctly step)? This should of course be done after or just before creation of the workitem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea is highly appreciated!&lt;/P&gt;&lt;P&gt;Cheers, Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 07:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961390#M67456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T07:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961391#M67457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to the ABAP forum!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your intention is to get all the selected agents of the Workitem, you can use the SAP_WAPI_WORKITEM_RECIPIENTS function module if it is available in your release. This FM does not work for completed WIs. Since WI id is the required parameter, you should call it after WI creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ramki Maley.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;For info on awarding points click on this link: &lt;A href="https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm" target="test_blank"&gt;https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 10:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961391#M67457</guid>
      <dc:creator>ramki_maley</dc:creator>
      <dc:date>2005-09-14T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961392#M67458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the welcome, yes it was indeed my first post...don't know why I never posted workflow stuff here yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM works well, but only if the workitem is stored after creation. When processing the state "after_creation" in the exit, there is already a workitem ID for the step/ task, but you can't read anything from the database - so the result of the FM is always empty. The next state in the exit is processed when the/one user executes the wi for the first time. At that time its too late to retrieve the assigned agents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thank you very much anyhow!&lt;/P&gt;&lt;P&gt;Cheers, Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 11:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961392#M67458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T11:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961393#M67459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry the FM does not work for you. Can you let me know  the enhancement (SMOD) id for the exit you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested, Method SWF_RUN_WIM_CRT_INTERNAL~GET_AGENTS_FOR_WORKITEM in class CL_SWF_RUN_WIM_LOCAL is where the agents are determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ramki Maley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 12:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961393#M67459</guid>
      <dc:creator>ramki_maley</dc:creator>
      <dc:date>2005-09-14T12:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961394#M67460</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;No worries, the FM DOES help, even if not in exactly that context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no entry in SMOD for this exit. You'll find it on a tab at every workflow step (called "program exit"). BUT: You'll need a WAS, means Basis System of 6.20 minimum!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the method, but it seems to have no return parameter----how can I get the result???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 13:37:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961394#M67460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-14T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workitem User Exit: User determination</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961395#M67461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if the method can be used in a custom program context. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ramki Maley.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2005 14:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workitem-user-exit-user-determination/m-p/961395#M67461</guid>
      <dc:creator>ramki_maley</dc:creator>
      <dc:date>2005-09-14T14:51:00Z</dc:date>
    </item>
  </channel>
</rss>

