<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16757" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2>Hi Nat, </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2>It seems a convoluted way to call an agent determination
role. Why don't you just call fm RH_GET_ACTORS (or RH_RESOLVE_RESPONSIBILITIES
if it's a responsibility rule</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2>rather than using the macros to call a
method?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=408574505-11122008><FONT face=Arial
color=#0000ff size=2>Jocelyn </FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Nat 4
Govender<BR><B>Sent:</B> Thursday, 11 December 2008 3:39 PM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Cc:</B> SAP Workflow Users' Group;
sap-wug-bounces@mit.edu<BR><B>Subject:</B> [LIKELY JUNK]Workflow
Coding<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hi all,<BR><BR><BR>I am faced with the current issue.<BR><BR>I have given one
of our ABAPers some workflow code to user in his program however it does not
work in his program.<BR><BR>Extracts from program :<BR><BR><BR><FONT
face="Arial Monospaced for SAP" size=2>INCLUDE <cntn01> .</FONT><BR><FONT
face="Arial Monospaced for SAP" size=2>DATA : ls_sen_man LIKE TABLE OF swhactor
WITH HEADER LINE.</FONT><BR><FONT face="Arial Monospaced for SAP" size=2>DATA :
initiator LIKE wfsyst-agent.</FONT><BR><FONT face="Arial Monospaced for SAP"
size=2>DATA : o_role TYPE swc_object.</FONT><BR><FONT
face="Arial Monospaced for SAP" size=2>DATA : rel_obj TYPE
swc_object.</FONT><BR><FONT face="Arial Monospaced for SAP" size=2>data :
REL_CODE type swc_object.</FONT><BR><BR><FONT face="Arial Monospaced for SAP"
size=2>data : rule_AGENTs TYPE WFSYST-AGENT OCCURS 0 with header
line.</FONT><BR><BR><FONT face="Arial Monospaced for SAP" size=2>CONCATENATE
'US' zind_mm01-requested_by INTO initiator.</FONT><BR><BR><FONT
face="Arial Monospaced for SAP" size=2>SWC_CREATE_OBJECT REL_CODE 'Z_REL_CODE'
'R113'.</FONT><BR><BR><FONT face="Arial Monospaced for SAP"
size=2>SWC_GET_property REL_CODE 'ReleaseCode' rel_obj.</FONT><BR><BR><FONT
face="Arial Monospaced for SAP" size=2>swc_container
b_container.</FONT><BR><FONT face="Arial Monospaced for SAP"
size=2>swc_set_element b_container 'ReleaseCode' rel_obj.</FONT><BR><FONT
face="Arial Monospaced for SAP" size=2>swc_set_element b_container 'Org_Agent'
initiator.</FONT><BR><FONT face="Arial Monospaced for SAP"
size=2>swc_create_object o_role 'Z_STD_ROLE' 'AC90000008'.</FONT><BR><FONT
face="Arial Monospaced for SAP" size=2>swc_call_method o_role 'ResolveRole'
b_container.</FONT><BR><FONT face="Arial Monospaced for SAP"
size=2>swc_get_table b_container 'ActorTab' rule_AGENTs.</FONT><BR><BR><FONT
face="Arial Monospaced for SAP" size=2>READ TABLE rule_AGENTs INDEX
1.</FONT><BR><FONT face="Arial Monospaced for SAP" size=2>manager = rule_AGENTs
.</FONT><BR><BR><BR><BR><BR>Extract from code in we have in one of the methods
of our objects<BR><BR>DATA: <BR>AGENT TYPE WFSYST-AGENT OCCURS 0 with header
line, <BR>SUBORDINATE TYPE WFSYST-AGENT OCCURS 0 with header line, <BR>rel_obj
type swc_object, <BR>o_rule type swc_object, <BR>rule_AGENTs TYPE WFSYST-AGENT
OCCURS 0 with header line,<BR>final_agents TYPE WFSYST-AGENT OCCURS 0 with
header line,<BR>final_tmp TYPE WFSYST-AGENT OCCURS 0 with header
line,<BR>V_REL_CODE_REQ(4), <BR>V_BSC_REL_CODE(4), <BR>REL_LEV_REQ type i,
<BR>REL_LEV_BSC type i, <BR>bsc_validate like pa0105-flag1.
<BR><BR>SWC_GET_ELEMENT CONTAINER 'ReleaseCode' rel_obj.<BR>SWC_GET_TABLE
CONTAINER 'Agent' AGENT.<BR><BR><BR>SWC_CREATE_CONTAINER rule_cont.
<BR>SWC_SET_ELEMENT rule_cont 'ReleaseCode' rel_obj. <BR>SWC_SET_ELEMENT
rule_cont 'Org_Agent' agent. <BR>SWC_CREATE_OBJECT O_RULE 'Z_STD_ROLE'
'AC90000008'.<BR>SWC_CALL_METHOD O_RULE 'ResolveRole' rule_cont.
<BR><BR><BR><BR>There seems be a problem when we pass the details for the
object.<BR><BR>Can some one help in identifying what we are doing
wrong.<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><B><FONT color=#483d8b
size=4><BR>Regards</FONT></B><FONT size=4><BR><BR>Nat Govender<BR>Toyota South
Africa<BR>IT - SAP Workflow Specialist<BR>Internal Ext. : 32645<BR>Direct Line :
+27 031 910 2645<BR>Fax : +27 031 910 4964 / 031 902 9633 / 086 607
0414<BR>E-mail : </FONT><A href="mailto:ngovender4@toyota.co.za"><U><FONT
color=#0000ff size=4>ngovender4@toyota.co.za</FONT></U></A><FONT
size=4><BR></FONT><FONT color=#ff00ff size=4><BR>If you tell the truth, you
don't have to remember anything. </FONT></P></BODY></HTML>