<?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 Selecting Possible Agents in Workflow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625443#M279485</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;Please solve this problem in workflow. I have a set of possible agents for a Manager to whome he should be able to forward his workflow items. This is maintained in customized table. I want to dynamically fetch these agents for the manager so that he should only be able to forward the work item to certain people (whom he is configured in the Z table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell how to achieve this run time determination of forwarding agents.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nagraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2006 07:03:58 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2006-09-20T07:03:58Z</dc:date>
    <item>
      <title>Selecting Possible Agents in Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625443#M279485</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;Please solve this problem in workflow. I have a set of possible agents for a Manager to whome he should be able to forward his workflow items. This is maintained in customized table. I want to dynamically fetch these agents for the manager so that he should only be able to forward the work item to certain people (whom he is configured in the Z table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell how to achieve this run time determination of forwarding agents.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nagraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625443#M279485</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-20T07:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Possible Agents in Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625444#M279486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this by creating your own rule and linking it to the task container.You can use the SAP FM RH_GET_ACTORS to get all the possibleagents and copy and modify it to suit it as per your conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625444#M279486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T07:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Possible Agents in Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625445#M279487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have a look at this function developed by me for dynamic determination of agents.rules can be created using transaction PFAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_FIND_SUPERIOR.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      ACTOR_TAB STRUCTURE  SWHACTOR&lt;/P&gt;&lt;P&gt;*"      AC_CONTAINER STRUCTURE  SWCONT&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NOBODY_FOUND&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INCLUDE &amp;lt;CNTN01&amp;gt;.&lt;/P&gt;&lt;P&gt;  TYPES : BEGIN OF TY_USERS.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE ZUSERS.&lt;/P&gt;&lt;P&gt;  TYPES : END OF TY_USERS.&lt;/P&gt;&lt;P&gt;  DATA : ORG_AGENT LIKE WFSYST-AGENT,&lt;/P&gt;&lt;P&gt;         LT_HOLDERS TYPE STANDARD TABLE OF SWHACTOR,&lt;/P&gt;&lt;P&gt;         LWA_HOLDERS TYPE SWHACTOR,&lt;/P&gt;&lt;P&gt;         LT_USERS TYPE STANDARD TABLE OF TY_USERS,&lt;/P&gt;&lt;P&gt;         LWA_USERS TYPE TY_USERS,&lt;/P&gt;&lt;P&gt;         V_LEN TYPE I,&lt;/P&gt;&lt;P&gt;         V_BNAME LIKE ZUSERS-BNAME,&lt;/P&gt;&lt;P&gt;         NUM_LINES TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Read values assigned to the rule criteria&lt;/P&gt;&lt;P&gt;  SWC_GET_ELEMENT AC_CONTAINER 'ORG_AGENT' ORG_AGENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Get the length&lt;/P&gt;&lt;P&gt;  CLEAR: V_LEN,V_BNAME.&lt;/P&gt;&lt;P&gt;  V_LEN = STRLEN( ORG_AGENT ).&lt;/P&gt;&lt;P&gt;  V_BNAME = ORG_AGENT+2(V_LEN).&lt;/P&gt;&lt;P&gt;*Get the superior&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM ZUSERS INTO CORRESPONDING FIELDS OF LWA_USERS&lt;/P&gt;&lt;P&gt;  WHERE BNAME = V_BNAME.&lt;/P&gt;&lt;P&gt;  IF NOT LWA_USERS IS INITIAL.&lt;/P&gt;&lt;P&gt;    REFRESH LT_HOLDERS[].&lt;/P&gt;&lt;P&gt;    LWA_HOLDERS-OTYPE = 'US'.&lt;/P&gt;&lt;P&gt;    LWA_HOLDERS-OBJID = LWA_USERS-ZSUPERIOR.&lt;/P&gt;&lt;P&gt;    APPEND LWA_HOLDERS TO LT_HOLDERS.&lt;/P&gt;&lt;P&gt;    APPEND LINES OF LT_HOLDERS TO ACTOR_TAB.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE ACTOR_TAB LINES NUM_LINES.&lt;/P&gt;&lt;P&gt;  IF NUM_LINES IS INITIAL.&lt;/P&gt;&lt;P&gt;    RAISE NOBODY_FOUND.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625445#M279487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-20T07:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Possible Agents in Workflow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625446#M279488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chk thsi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample&lt;/P&gt;&lt;P&gt;***************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :  lt_act_container  type standard table of swcont,&lt;/P&gt;&lt;P&gt;lt_actor_tab      type standard table of swhactor,&lt;/P&gt;&lt;P&gt;l_act_role         type hrobjec_14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READ ACTORS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'RH_GET_ACTORS'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      act_object                      = l_act_role&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ACT_TASK                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ACT_WI_ID                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ACT_PLVAR                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    SEARCH_DATE                     = SY-DATUM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ACTOR_CONTAINER_OO              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      actor_container                 = lt_act_container&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    EXCLUDED_AGENTS                 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      actor_tab                       = lt_actor_tab  "will be cleared&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ERROR_TAB                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      no_active_plvar                 = 1&lt;/P&gt;&lt;P&gt;      no_actor_found                  = 2&lt;/P&gt;&lt;P&gt;      exception_of_role_raised        = 3&lt;/P&gt;&lt;P&gt;      no_valid_agent_determined       = 4&lt;/P&gt;&lt;P&gt;      no_container                    = 5&lt;/P&gt;&lt;P&gt;      others                          = 6.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;  and lt_actor_tab2[] is initial.&lt;/P&gt;&lt;P&gt;    raise nobody_found.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helped amrk points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2006 07:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-possible-agents-in-workflow/m-p/1625446#M279488</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-20T07:20:57Z</dc:date>
    </item>
  </channel>
</rss>

