<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Using BOR Object as Attribute In ABAP Class</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=598514020-15042009><FONT face=Arial
color=#0000ff size=2>As a side note, same thing happens if I try to use an
attribute of the BOR in a binding. Try to bind ZCL_MKT_TRADE .
TRADER_BOR_OBJ . ZEMAIL to a sendmail step.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=598514020-15042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=598514020-15042009><FONT face=Arial
color=#0000ff size=2>--Seth</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>Stevens,
Seth<BR><B>Sent:</B> Wednesday, April 15, 2009 3:26 PM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> Using BOR Object as Attribute In ABAP
Class<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>I am creating a custom workflow for our marketing
group using ABAP Classes. The main class I am dealing with is called
ZCL_MKT_TRADE. 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.</FONT></P>
<P><FONT face=Arial size=2>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. I want
to use the trader for the agent assignment on a given workitem. I use
"Expression" and then select
&ZCL_MKT_TRADE.TRADER_BOR_OBJ.NAMEWITHLEADINGUS& as the
expression. 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".</FONT></P>
<P><FONT face=Arial size=2>Is it not possible to accomplish what I am trying to
do here? 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.</FONT></P>
<P><FONT face=Arial size=2>Thanks,</FONT> <BR><FONT face=Arial
size=2>Seth</FONT> </P></BODY></HTML>