Problem with RH_GET_ACTORS as method

Shai Eyal shai.eyal at yahoo.com
Sat Oct 10 03:50:54 EDT 2009


Hi Sherie,

Please keep AC_CONTAINER  type table of  SWCONT 

The reason you get all possible agent is that you fill AC_CONTAINER incorrectly.
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.

If it still does work please send the relevant part of your source.

Good luck,

 
Regards,
Shai Eyal
SAP Logistics senior consultant
SAP Workflow & BPM specialist
http://www.linkedin.com/in/shaieyal
Mobile: 972-52-5816633

----------------------------------------------------------------------

Message: 1
Date: Fri, 09 Oct 2009 18:28:33 -0400
From: Ramki Maley <rmaley at erpworkflow.com>
Subject: Re: Problem with RH_GET_ACTORS as method
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID: <4ACFB911.7070404 at erpworkflow.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Sherie,

You first need define the required parameters as import parameters in 
the method - use the same exact names as defined for the rule container. 
Then you need to pass the required values to the task in your step 
binding in WF definition.  Pass the Container to the function module 
directly in the tables parameter as follows:

AC_CONTAINER = CONTAINER

HTH.

Cheers,
Ramki.



Munday,Sherie J. wrote:
> Hello experts,
> 
> I am finally working on the project that I previously discussed where I
> need to dynamically find the responsible agents for a task.  I created a
> method on my object (see code attached) with the function RH_GET_ACTORS.
> And I named the WA_CONTAINER as an import parameter.  When I run the
> function in SE37, putting the three values into ACTOR_CONTAINER I get
> the proper 2 agents.  However when I run the method and I put the same
> three values into WA_ACTORCONTAINER I get 5 agents (all the possible
> agents for that rule).  I have tried to debug, even asked some abap
> programmer co-workers for help... but can't seem to find the error of my
> ways.  
> 
> Any help would be greatly appreciated.
> Thanks,
> Sherie
> 
> Sherie Munday
> SAP Workflow Developer/ Analyst
> Air Products & Chemicals, Inc.
> 
> 
> ------------------------------------------------------------------------



      New Email addresses available on Yahoo!
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20091010/78de517b/attachment.htm


More information about the SAP-WUG mailing list