<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<P><FONT size=2><FONT face=Arial color=#0000ff>Mike,<BR><BR>Thanks for the 
reply.&nbsp; I assume that you are talking about setting an initial value in the 
class and not in the workflow container, if that is the case I am already doing 
this.&nbsp; I have created a constant with "direct type entry" like 
below:<BR><BR>BEGIN OF C_BOR_USR01,<BR>&nbsp; INSTID TYPE SIBFBORIID VALUE IS 
INITIAL,<BR>&nbsp; TYPEID TYPE SIBFTYPEID VALUE 'USR01',<BR>&nbsp; CATID&nbsp; 
TYPE SIBFCATID VALUE 'BO',<BR>END OF C_BOR_USR01.<BR><BR>I then created an 
attribute called TRADER_BOR_USR01 of type SIBFLPORB and placed the below code in 
the constructor.<BR><BR>ME-&gt;TRADER_BOR_USR01-INSTID = 
'MYUSERID'.<BR>ME-&gt;TRADER_BOR_USR01-TYPEID = 
'USR01'.<BR>ME-&gt;TRADER_BOR_USR01-CATID = 'BO'.</FONT></FONT></P>
<P><FONT face=Arial color=#0000ff size=2>The binding editor in the workflow 
builder shows all the correct attributes and structure of the USR01 business 
object so I assume the editor is reading the correct BO type; however, if I 
select one of the attributes and try to use it I get the error.&nbsp; If you see 
anything I'm missing please let me know.</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>As far as creating a user class, this 
is something I would like to do.&nbsp;&nbsp;My only issue&nbsp;is this is our 
only class based workflow thus far and we have tons of BOR based 
workflows.&nbsp; I don't want to have to maintain all the custom code associated 
with the user object in two places.&nbsp; I guess I could create a wrapper class 
for the BO then maintain the code in the BOR until when/if we convert our old 
workflows to use the class.&nbsp; Regardless, I'd still like to figure this 
problem out for use elsewhere.</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>Thanks in advance.</FONT></P>
<P><FONT face=Arial color=#0000ff size=2>--Seth<BR></FONT><FONT 
size=2><BR>________________________________<BR><BR>From: sap-wug-bounces@mit.edu 
[<A href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf Of Mike Pokraka<BR>Sent: Saturday, April 18, 2009 4:35 PM<BR>To: 'SAP 
Workflow Users' Group'<BR>Subject: RE: Using BOR Object as Attribute In ABAP 
Class<BR><BR><BR><BR>Hmmm, reading my own post I notice a bit of confusion. 
Let&#8217;s try that second sentence again:<BR><BR>The attribute needs to be populated 
with an initial value that contains at least the object class and 
type.<BR><BR><BR><BR><BR><BR>From: sap-wug-bounces@mit.edu [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf Of Mike Pokraka<BR>Sent: 18 April 2009 20:12<BR>To: 'SAP Workflow Users' 
Group'<BR>Subject: RE: Using BOR Object as Attribute In ABAP 
Class<BR><BR><BR><BR>Hi Seth,<BR><BR><BR><BR>The problem is that the binding 
editor does not know the object type of your attribute. It needs to have an 
initial value containing the object class and type.<BR><BR><BR><BR>However, an 
SAP user is one of the easiest and most useful objects to implement as a class. 
I would suggest going with a ZCL_USER class instead. Much easier to work 
with.<BR><BR><BR><BR>Cheers,<BR><BR>Mike<BR><BR><BR><BR><BR><BR>From: 
sap-wug-bounces@mit.edu [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf Of Stevens, Seth<BR>Sent: 15 April 2009 21:42<BR>To: SAP Workflow Users' 
Group<BR>Subject: RE: Using BOR Object as Attribute In ABAP 
Class<BR><BR><BR><BR>As a side note, same thing happens if I try to use an 
attribute of the BOR in a binding.&nbsp; Try to bind ZCL_MKT_TRADE . 
TRADER_BOR_OBJ . ZEMAIL to a sendmail 
step.<BR><BR><BR><BR>--Seth<BR><BR><BR><BR>________________________________<BR><BR>From: 
sap-wug-bounces@mit.edu [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf Of Stevens, Seth<BR>Sent: Wednesday, April 15, 2009 3:26 PM<BR>To: SAP 
Workflow Users' Group<BR>Subject: Using BOR Object as Attribute In ABAP 
Class<BR><BR>I am creating a custom workflow for our marketing group using ABAP 
Classes.&nbsp; The main class I am dealing with is called ZCL_MKT_TRADE.&nbsp; 
We do not have HR implemented and subsequently use BOR object USR01 for agent 
assignments in many custom workflows and have a lot of custom methods and 
attributes of use to this workflow.<BR><BR>I need to use the trader (user) for 
several things in the workflow so I created an attribute on ZCL_MKT_TRADE called 
TRADER_BOR_OBJ that is of type BOR Object USR01 as outlined in Jocelyn's SDN 
BLOG.&nbsp; I want to use the trader for the agent assignment on a given 
workitem.&nbsp; I use "Expression" and then select 
&amp;ZCL_MKT_TRADE.TRADER_BOR_OBJ.NAMEWITHLEADINGUS&amp; as the 
expression.&nbsp; This is available in the dropdown but when I choose it I get 
an error saying "NAMEWITHLEADINGUS is not a component of data object 
TRADER_BOR_OBJ".<BR><BR>Is it not possible to accomplish what I am trying to do 
here?&nbsp; I can always have the trader attribute on my class simply store the 
userid of the trader and then instantiate a separate USR01 BOR Object in my 
workflow container to host all the trader details; however, my first idea seems 
like better 
design.<BR><BR>Thanks,<BR>Seth<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;&lt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ATT1922862.txt&nbsp; 
(0.2KB)<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(0.2KB)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&gt;&gt;<BR><BR></P></FONT></BODY></HTML>