<br><font size=2 face="sans-serif">Josie</font>
<br>
<br><font size=2 face="sans-serif">If it is the list of employees attached to the object then user a call to function module </font><font size=1 face="Arial Monospaced for SAP">HRCM_WORKQUEUE_READ</font><font size=2 face="sans-serif"> to retrieve them.</font>
<br>
<br><font size=2 face="sans-serif">Sample code here :-</font>
<br>
<br><font size=1 face="Arial Monospaced for SAP">DATA: L_EMPLOYEES &nbsp;TYPE TABLE OF HRPERNR, &nbsp;</font>
<br><font size=1 face="Arial Monospaced for SAP">&nbsp; &nbsp; &nbsp; L_Workitem_Id like SWWWIHEAD-WI_ID.</font>
<br>
<br><font size=1 face="Arial Monospaced for SAP">L_Workitem_Id = OBJKEY.</font>
<br>
<br><font size=1 color=blue face="Arial Monospaced for SAP">* Get the Employees involved in this object.</font>
<br><font size=1 face="Arial Monospaced for SAP">CALL FUNCTION 'HRCM_WORKQUEUE_READ'</font>
<br><font size=1 face="Arial Monospaced for SAP">&nbsp; EXPORTING</font>
<br><font size=1 face="Arial Monospaced for SAP">&nbsp; &nbsp; WORKQUEUE_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = L_Workitem_Id</font>
<br><font size=1 color=blue face="Arial Monospaced for SAP">* IMPORTING</font>
<br><font size=1 color=blue face="Arial Monospaced for SAP">* &nbsp; ADJUSTMENTREASON &nbsp; &nbsp; &nbsp; =</font>
<br><font size=1 color=blue face="Arial Monospaced for SAP">* &nbsp; ADJUSTMENTTYPE &nbsp; &nbsp; &nbsp; &nbsp; =</font>
<br><font size=1 color=blue face="Arial Monospaced for SAP">* &nbsp; PLANPERIOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =</font>
<br><font size=1 face="Arial Monospaced for SAP">&nbsp; TABLES</font>
<br><font size=1 face="Arial Monospaced for SAP">&nbsp; &nbsp; PERNRS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = L_EMPLOYEES.</font>
<br>
<br><font size=2 face="sans-serif">I am working in this area and am having problems myself . . . . it's driving me nuts !</font>
<br>
<br><font size=2 face="sans-serif">I don't understand why the usual SWC_* macros do not seem to be working with this object !</font>
<br>
<br><font size=2 face="sans-serif">Mike</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Josie Henriques&quot; &lt;jhenriques_procwork@timbrasil.com.br&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">14/12/2005 13:15</font>
<br><font size=1 face="sans-serif">Please respond to &quot;SAP Workflow Users' Group&quot;</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;RE: Once again fill/create object 2</font></table>
<br>
<br>
<br><font size=2 color=#000080 face="Arial">  </font>
<br><font size=2 color=#000080 face="Arial"> I've tested it and it was just showing to me the FLOWITEM object filled e not the object that I was creating Workqueue.</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">  Authorizations issues? Hmm, I don't think so because they gave me authorization to execute some HR transactions and WF-BATCH is an system user right?</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">  Now I'm trying some totally different and more simple.</font>
<br><font size=2 color=#000080 face="Arial">   </font>
<br><font size=2 color=#000080 face="Arial">   I'm trying to use the object BUS7022 to trigger the event. It's triggering but the objects BUS7020 and BUS7022 are not filled.</font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=2 color=#000080 face="Arial">   I think I'll try another simpler thing, When the user plan an adjustment, I'll send a workitem to the approver, so he/she can see and approve or not (in this case it's called Submit).  The Standard WF is working when a user submits an adjustment. The major problem is to show the adjustment to a user. I can't attach any object to my work item (I don't know why), I also tried to use a method with call transaction+ set parameter id, but it don't work with this transaction (HRCMP0001C). I don't know what else to do just say that it canīt be done!</font>
<br><font size=2 color=#000080 face="Arial">   </font>
<br><font size=2 color=#000080 face="Arial">&nbsp;</font>
<br><font size=3 color=#800080 face="Monotype Corsiva"><b>Josie de Assis Francisco Henriques</b></font>
<br><font size=2 color=#0000a0>Consultora ABAP</font>
<br><font size=2 color=#0000a0>Aspen / Procwork</font>
<br><font size=2 color=#0000a0>Tel.: 21 82087663</font>
<div align=center>
<br>
<hr></div>
<br><font size=2 face="Tahoma"><b>From:</b> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Mark Pyc<b><br>
Sent:</b> quarta-feira, 14 de dezembro de 2005 10:40<b><br>
To:</b> SAP Workflow Users' Group<b><br>
Subject:</b> Re: Once again fill/create object 2</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">Have you tested the object directly in SWO1?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">Have you confirmed that you're not having any authorizations issues??<br>
<br>
 </font>
<br><font size=3 face="Times New Roman">On 12/14/05, <b>Josie Henriques</b> &lt;</font><a href=mailto:jhenriques_procwork@timbrasil.com.br><font size=3 color=blue face="Times New Roman"><u>jhenriques_procwork@timbrasil.com.br</u></font></a><font size=3 face="Times New Roman">&gt; wrote: </font>
<p><font size=2 color=#000080 face="Arial">&nbsp; &nbsp;Mike &nbsp;</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 color=#000080 face="Arial">&nbsp; &nbsp;My problem here is, BUS7022 has key WorkitemId, but if I pass the key for it one of its attributes (Employees) is not created, and I need this attribute. </font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=2 color=#000080 face="Arial">&nbsp;</font>
<p><font size=3 color=#800080 face="Monotype Corsiva"><b>Josie de Assis Francisco Henriques</b></font><font size=3 color=#000080 face="Times New Roman"> </font>
<p><font size=2 color=#0000a0>Consultora ABAP</font>
<p><font size=2 color=#0000a0>Aspen / Procwork</font>
<p><font size=2 color=#0000a0>Tel.: 21 82087663</font>
<div align=center>
<br>
<hr></div>
<p><font size=2 face="Tahoma"><b>From:</b> </font><a href="mailto:sap-wug-bounces@mit.edu" target=_blank><font size=2 color=blue face="Tahoma"><u>sap-wug-bounces@mit.edu</u></font></a><font size=2 face="Tahoma"> [mailto:</font><a href="mailto:sap-wug-bounces@mit.edu" target=_blank><font size=2 color=blue face="Tahoma"><u>sap-wug-bounces@mit.edu</u></font></a><font size=2 face="Tahoma">] <b>On Behalf Of </b>Mark Pyc<b><br>
Sent:</b> quarta-feira, 14 de dezembro de 2005 08:12<b><br>
To:</b> SAP Workflow Users' Group<b><br>
Subject:</b> Re: Once again fill/create object</font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=3 face="Times New Roman">G'day Josie,</font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=3 face="Times New Roman">You don't set an Object Instance's attributes when you create it, you create the Instance and it determines the values of it's attributes internally. All you need to create an instance is the object type and the key. The code behind the object must then be able to determine the value of all attributes based on the key. </font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=3 face="Times New Roman">If you're not happy with what attributes BUS7022 has then you'll need to create a subtype, extend the subtype and then delegate to it.</font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=3 face="Times New Roman">I've just had a look and I'm not at all familar with that particular object. The fact that it uses a Workitem ID as a key means that finding the key to pass when instanciating may not be straight forward. Is anyone familiar with BUS7022?? </font>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=3 face="Times New Roman">Good luck,</font>
<p><font size=3 face="Times New Roman">Mark<br>
<br>
 </font>
<p><font size=3 face="Times New Roman">On 12/13/05, <b>Josie Henriques</b> &lt;</font><a href=mailto:jhenriques_procwork@timbrasil.com.br target=_blank><font size=3 color=blue face="Times New Roman"><u> jhenriques_procwork@timbrasil.com.br</u></font></a><font size=3 face="Times New Roman">&gt; wrote: </font>
<p><font size=3 face="Times New Roman">Thank you Flavio<br>
<br>
It has helped me a lot. I could get an object's attribute but I now donīt know how to set these values in the object I'm creating. I'ts a different object from the one I'm using in my WF. <br>
<br>
Josie de Assis Francisco Henriques<br>
Consultora ABAP<br>
Aspen / Procwork<br>
Tel.: 21 82087663<br>
<br>
-----Original Message-----<br>
From: </font><a href="mailto:sap-wug-bounces@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>sap-wug-bounces@mit.edu</u></font></a><font size=3 face="Times New Roman"> [mailto: </font><a href="mailto:sap-wug-bounces@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>sap-wug-bounces@mit.edu</u></font></a><font size=3 face="Times New Roman">] On Behalf Of Flavio Oliveira<br>
Sent: terįa-feira, 13 de dezembro de 2005 17:06 <br>
To: </font><a href="mailto:sap-wug@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>sap-wug@mit.edu</u></font></a><font size=3 face="Times New Roman"><br>
Subject: RE: Once again fill/create object <br>
<br>
Josie:<br>
<br>
Try to take a look at the online help. You will find all information you </font>
<br><font size=3 face="Times New Roman">need:<br>
</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4acd5453d11d189430000e829fbbd/frameset.htm target=_blank><font size=3 color=blue face="Times New Roman"><u>http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4acd5453d11d189430000e829fbbd/frameset.htm </u></font></a><font size=3 face="Times New Roman"><br>
<br>
Flavio.<br>
<br>
<br>
&gt;From: &quot;Josie Henriques&quot; &lt;</font><a href=mailto:jhenriques_procwork@timbrasil.com.br target=_blank><font size=3 color=blue face="Times New Roman"><u>jhenriques_procwork@timbrasil.com.br </u></font></a><font size=3 face="Times New Roman">&gt;<br>
&gt;Reply-To: &quot;SAP Workflow Users' Group&quot; &lt; </font><a href="mailto:sap-wug@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>sap-wug@mit.edu</u></font></a><font size=3 face="Times New Roman">&gt;<br>
&gt;To: &quot;SAP Workflow Users' Group&quot; &lt; </font><a href="mailto:sap-wug@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>sap-wug@mit.edu</u></font></a><font size=3 face="Times New Roman">&gt;<br>
&gt;Subject: Once again fill/create object<br>
&gt;Date: Tue, 13 Dec 2005 16:37:53 -0200 <br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; I need to create an object (BUS7022) but its attributes will be filled<br>
&gt;with data from 3 objects.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; Does anyone has some code sample to send for me? With swc_ate_object, <br>
&gt;swc_set_element and others statements?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;thanks<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;Josie de Assis Francisco Henriques<br>
&gt;<br>
&gt;Consultora ABAP<br>
&gt;<br>
&gt;Aspen / Procwork<br>
&gt; <br>
&gt;Tel.: 21 82087663<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
&gt;_______________________________________________<br>
&gt;SAP-WUG mailing list<br>
&gt;</font><a href="mailto:SAP-WUG@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u> SAP-WUG@mit.edu</u></font></a><font size=3 face="Times New Roman"><br>
&gt;</font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue face="Times New Roman"><u> http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><font size=3 face="Times New Roman"><br>
<br>
<br>
_______________________________________________ <br>
SAP-WUG mailing list</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>SAP-WUG@mit.edu</u></font></a><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue face="Times New Roman"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a>
<br><font size=3 face="Times New Roman"><br>
<br>
_______________________________________________<br>
SAP-WUG mailing list</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu" target=_blank><font size=3 color=blue face="Times New Roman"><u>SAP-WUG@mit.edu</u></font></a><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue face="Times New Roman"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a>
<p><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman"><br>
_______________________________________________<br>
SAP-WUG mailing list</font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="mailto:SAP-WUG@mit.edu"><font size=3 color=blue face="Times New Roman"><u>SAP-WUG@mit.edu</u></font></a><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank><font size=3 color=blue face="Times New Roman"><u>http://mailman.mit.edu/mailman/listinfo/sap-wug</u></font></a><font size=3 face="Times New Roman"><br>
</font>
<br><font size=3 face="Times New Roman">&nbsp;</font><font size=2><tt>_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</tt></font>
<br>
<br>