<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Using BOR Object as Attribute In ABAP Class</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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 &quot;Expression&quot; 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 &quot;NAMEWITHLEADINGUS is not a component of data object TRADER_BOR_OBJ&quot;.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Seth</FONT>
</P>

</BODY>
</HTML>