<?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: Agents determination using function module in Rule in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528141#M3030441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the data passed into your function at runtime then set a breakpoint in your function and in the same session open PFAC and test the rule with the Simulate button. Execution should stop at the breakpoint and you can see the data held in the parameters. If it does not stop at the breakpoint then create an SAP shortcut on your desktop with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type: System Command&lt;/P&gt;&lt;P&gt;Command: /h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you simulate the ruleyou get the popupand enter the test data. Now drag the shortcut over the 'Continue' button and now you are in de mode.Now just set a breakint in your function and it will stop there and you can check the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2012 16:53:49 GMT</pubDate>
    <dc:creator>Eddie_Morris</dc:creator>
    <dc:date>2012-01-23T16:53:49Z</dc:date>
    <item>
      <title>Agents determination using function module in Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaq-p/8528139</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;I need to use SAP standard rule 75700139 in my fucntion module for determininig user id and based on user id for task user details are fetched.&lt;/P&gt;&lt;P&gt;When the rule is executed from  PFAC values are entered and a key is generated wirh fetches required agents.&lt;/P&gt;&lt;P&gt;But i want to use function modulwe in rule directly.&lt;/P&gt;&lt;P&gt;PArameters are - &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;Can anybody guide how function module can be directly used and what and how values are to be filled in these parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaq-p/8528139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Agents determination using function module in Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528140#M3030440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ACTOR_TAB will be the table returned from the Function Module. It will contain the Agents determined from the Rule.&lt;/P&gt;&lt;P&gt;AC_CONTAINER is the Container from your Workflow/task. &lt;/P&gt;&lt;P&gt;It should contain entries for elements CHANGE_REQUEST, APPSTEP, SINGLE_PROC and AGENT_FILTER. &lt;/P&gt;&lt;P&gt;AGENT_FILTER is optional. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can execute the FM in SE37 Test mode and fill the values and test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528140#M3030440</guid>
      <dc:creator>vimalv</dc:creator>
      <dc:date>2012-01-23T16:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Agents determination using function module in Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528141#M3030441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see the data passed into your function at runtime then set a breakpoint in your function and in the same session open PFAC and test the rule with the Simulate button. Execution should stop at the breakpoint and you can see the data held in the parameters. If it does not stop at the breakpoint then create an SAP shortcut on your desktop with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type: System Command&lt;/P&gt;&lt;P&gt;Command: /h&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you simulate the ruleyou get the popupand enter the test data. Now drag the shortcut over the 'Continue' button and now you are in de mode.Now just set a breakint in your function and it will stop there and you can check the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528141#M3030441</guid>
      <dc:creator>Eddie_Morris</dc:creator>
      <dc:date>2012-01-23T16:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Agents determination using function module in Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528142#M3030442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHANGE_REQUEST is not a normal value. Its key generated through F4 help of PFAC while simulation.&lt;/P&gt;&lt;P&gt;Key generated for req 257 is           BUS2250   000000000257000000   .&lt;/P&gt;&lt;P&gt;Kindly guide how this key could be obtained.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2012 16:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528142#M3030442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-23T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Agents determination using function module in Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528143#M3030443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You say that you want to use a standard rule inside your function module. You can simply call function module RH_RESOLVE_RESPONSIBILITIES and pass the rule number along with the needed parameters and it will execute that rule for you. Keep in mind that this function module only works if the rule uses "responsbilities." If the rule itself uses a function module, then you can call the function module directly. The AC_CONTAINER internal table is similar to a name-value pair. Look inside function module USMD5_CREQUEST_ROLE_DET which is called from within the rule you need. Instead of the macro swc_get_element, just use swc_set_element to insert values into the internal table. Make sure you add the statement "INCLUDE &amp;lt;cntain&amp;gt;." at the beginning like that function module does. The other internal table ACTOR_TAB is a simple internal table in which the first field is an object type: O for org unit, US for user, P for personnel number, etc. The second field is the object key; so if the type is US then the key is the user ID you want to assign as an agent and if the type is O then the key is the org unit number you want to assign as an agent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 02:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/agents-determination-using-function-module-in-rule/qaa-p/8528143#M3030443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-24T02:19:09Z</dc:date>
    </item>
  </channel>
</rss>

