<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><DIV></DIV>
<DIV>Hi Sherie,</DIV>
<DIV> </DIV>
<DIV>Please keep AC_CONTAINER type table of <!--StartFragment -->
<STYLE type=text/css> SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } </STYLE>
<SPAN>SWCONT</SPAN> </DIV>
<DIV> </DIV>
<DIV>The reason you get all possible agent is that you fill AC_CONTAINER incorrectly.</DIV>
<DIV>I assume you just filled ELEMENT and VALUE. This would work part of the times, depends on you data types. Instead, use macro SWC_SET_ELEMENT to fill AC_CONTAINER. In addition, make sure the ELEMENT name is same as you element in rule container and better be in capital letters.</DIV>
<DIV> </DIV>
<DIV>If it still does work please send the relevant part of your source.</DIV>
<DIV> </DIV>
<DIV>Good luck,</DIV>
<DIV><BR> </DIV>
<P><FONT face="verdana, helvetica, sans-serif" color=#00007f size=2><STRONG>Regards,<BR>Shai Eyal</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG>SAP Logistics senior consultant<BR>SAP Workflow & BPM specialist</STRONG></FONT></P>
<P><FONT face=Verdana color=#000080 size=2><STRONG><A href="http://www.linkedin.com/in/shaieyal" target=_blank rel=nofollow>http://www.linkedin.com/in/shaieyal</A><BR>Mobile: 972-52-5816633</STRONG></FONT></P>
<DIV><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Fri, 09 Oct 2009 18:28:33 -0400<BR>From: Ramki Maley <<A href="mailto:rmaley@erpworkflow.com" ymailto="mailto:rmaley@erpworkflow.com">rmaley@erpworkflow.com</A>><BR>Subject: Re: Problem with RH_GET_ACTORS as method<BR>To: "SAP Workflow Users' Group" <<A href="mailto:sap-wug@mit.edu" ymailto="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A>><BR>Message-ID: <<A href="mailto:4ACFB911.7070404@erpworkflow.com" ymailto="mailto:4ACFB911.7070404@erpworkflow.com">4ACFB911.7070404@erpworkflow.com</A>><BR>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<BR><BR>Sherie,<BR><BR>You first need define the required parameters as import parameters in <BR>the method - use the same exact names as defined for the rule container. <BR>Then you need to pass the required values to the task in your step <BR>binding in WF definition. Pass the
Container to the function module <BR>directly in the tables parameter as follows:<BR><BR>AC_CONTAINER = CONTAINER<BR><BR>HTH.<BR><BR>Cheers,<BR>Ramki.<BR><BR><BR><BR>Munday,Sherie J. wrote:<BR>> Hello experts,<BR>> <BR>> I am finally working on the project that I previously discussed where I<BR>> need to dynamically find the responsible agents for a task. I created a<BR>> method on my object (see code attached) with the function RH_GET_ACTORS.<BR>> And I named the WA_CONTAINER as an import parameter. When I run the<BR>> function in SE37, putting the three values into ACTOR_CONTAINER I get<BR>> the proper 2 agents. However when I run the method and I put the same<BR>> three values into WA_ACTORCONTAINER I get 5 agents (all the possible<BR>> agents for that rule). I have tried to debug, even asked some abap<BR>> programmer co-workers for help... but can't seem to find the error of my<BR>>
ways. <BR>> <BR>> Any help would be greatly appreciated.<BR>> Thanks,<BR>> Sherie<BR>> <BR>> Sherie Munday<BR>> SAP Workflow Developer/ Analyst<BR>> Air Products & Chemicals, Inc.<BR>> <BR>> <BR>> ------------------------------------------------------------------------<BR></DIV></div><br>
<hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> New Email names for you! </a> <br>
Get the Email name you've always wanted on the new @ymail and @rocketmail.<br>
Hurry before someone else does!</body></html>