Problem with RH_GET_ACTORS as method

Munday,Sherie J. MUNDAYSJ at airproducts.com
Wed Oct 14 14:38:32 EDT 2009


Thank You Shai,

 

Using SWC_SET_ELEMENT to fill my wa_actorcontainer was just what I
needed.  I then changed my import parameter from wa_actorcontainer to
the three individual elements.  It is working great!!

 

Regards,

Sherie

 

 

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Shai Eyal
Sent: Saturday, October 10, 2009 3:51 AM
To: sap-wug at mit.edu
Subject: Re: Problem with RH_GET_ACTORS as method

 

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 names for you!
<http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http:/mail.
promotions.yahoo.com/newdomains/aa/> 
Get the Email name you've always wanted on the new @ymail and
@rocketmail.
Hurry before someone else does!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20091014/295c3598/attachment.htm


More information about the SAP-WUG mailing list