<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If that’s all you’re trying to achieve then your best option is
to make your CL object a private attribute of the BOR object. Use a FORM routine
to access it, and in there you can instantiate it if it has no instance – have a
look at the BOR generated code for DB attributes to see what I mean. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers, <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><a name="_MailEndCompose"><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></a></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Sharath K<br>
<b>Sent:</b> 21 July 2009 18:04<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> RE: ABAP OO objects as BOR method parameters.<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0>
 <tr>
  <td valign=top style='padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal>Mike &amp; Florin,<br>
  thanks very much for explanation. Initially I was using CL object in BOR
  method locally. As I am using the same object in different methods (steps),
  thought of passing object reference from first step…I will switch back to my
  previous code. May be I will do more experiments in next phases..<o:p></o:p></p>
  <p class=MsoNormal>&nbsp;<o:p></o:p></p>
  <p class=MsoNormal>&nbsp;<o:p></o:p></p>
  <p class=MsoNormal>Thanks for your time…<o:p></o:p></p>
  <p class=MsoNormal><br>
  <br>
  --- On <b>Tue, 7/21/09, Mike Pokraka <i>&lt;wug@workflowconnections.com&gt;</i></b>
  wrote:<o:p></o:p></p>
  <p class=MsoNormal style='margin-bottom:12.0pt'><br>
  From: Mike Pokraka &lt;wug@workflowconnections.com&gt;<br>
  Subject: RE: ABAP OO objects as BOR method parameters.<br>
  To: &quot;'SAP Workflow Users' Group'&quot; &lt;sap-wug@mit.edu&gt;<br>
  Date: Tuesday, July 21, 2009, 9:27 AM<o:p></o:p></p>
  <div>
  <p class=MsoNormal>Couple of comments: <br>
  <br>
  1) OO works with limitations on 620, but is not officially supported by SAP.<br>
  <br>
  <br>
  3) To be absolutely painfully specific here, the original question didn't<br>
  say the aim was to store the object in the container. It is possible to use<br>
  a class without IF_WORKFLOW in workflow as long as it isn't stored. <br>
  <br>
  Thus a binding of class-based objects OBJ1.OBJ2.ATTR ==&gt; SOME_ELEMENT is<br>
  possible if OBJ2 doesn't have IF_WORKFLOW, because only OBJ1 and<br>
  SOME_ELEMENT live in the containers. This of course all falls apart when<br>
  bringing BOR into the mix. <br>
  <br>
  Generally speaking I agree with Florin and would not recommend mixing BOR<br>
  and classes in this way. Class-&gt;BOR is fine, but BOR-&gt;Class - although<br>
  technically possible - is fraught with problems because the BOR design<br>
  doesn't cater for classes (however it is no problem to use OO ABAP inside<br>
  BOR code). I would either build on the BOR object, or mostly I create a<br>
  class to replace it completely.<br>
  <br>
  Cheers, <br>
  Mike<br>
  <br>
  -----Original Message-----<br>
  From: <a href="/mc/compose?to=sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>
  [mailto:<a href="/mc/compose?to=sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>]
  On Behalf Of<br>
  Florin Wach<br>
  Sent: 21 July 2009 08:42<br>
  To: SAP Workflow Users' Group<br>
  Subject: Re: ABAP OO objects as BOR method parameters.<br>
  <br>
  Hi Sharath,<br>
  <br>
  1) ... hm... didn't realize that OO-Workflow works on 4.7 already (stable).<br>
  Try using ABAP reference type SIBFLPOR<br>
  <br>
  2) If you cannot define the parameter as CL -Object, the macro will try to<br>
  convert the runtime-reference of a BO to a persistent reference of the BO,<br>
  which has to fail for obvious reasons. If using the ABAP-Dic-Reference, then<br>
  it won't be a problem<br>
  <br>
  3) Yes, the workflow cannot store OO-Object in the container, unless you've<br>
  fully implemented the interface<br>
  <br>
  ....<br>
  <br>
  Anyhow, from my perspective it looks like you should keep using a new<br>
  business object implementation and not using the OO-part for the moment.<br>
  Maybe you give some explanation of how and why you like to use this kind of<br>
  container/implementation.<br>
  <br>
  Best wishes,<br>
  Florin<br>
  <br>
  <br>
  -------- Original-Nachricht --------<br>
  &gt; Datum: Mon, 20 Jul 2009 15:48:58 -0700 (PDT)<br>
  &gt; Von: Sharath K &lt;<a href="/mc/compose?to=ksharath77@yahoo.com">ksharath77@yahoo.com</a>&gt;<br>
  &gt; An: &quot;SAP Workflow Users\' Group&quot; &lt;<a
  href="/mc/compose?to=sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
  &gt; Betreff: ABAP OO objects as BOR&nbsp; method parameters.<br>
  <br>
  &gt; Hi all, Here I am repostig the issue(seems my emails are ending in Junk<br>
  &gt; folder). <br>
  &gt; &nbsp;I am trying to return a class object from business<br>
  &gt; object method to workflow container. I am not using this is class object<br>
  &gt; in any<br>
  &gt; of my tasks, using just as parameter..<br>
  &gt; <br>
  &gt;&nbsp; &nbsp; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; Issue-1: I am unable to class object as BOR method parameter, I cant see<br>
  &gt; any options to choose ABAP class<br>
  &gt; type..the only two options are (i)ABAP Dictionary, (ii) Object type.. Is<br>
  &gt; it a version issue..the client is on R/3 4.7.<br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt;&nbsp; &nbsp; <br>
  &gt;&nbsp; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; <br>
  &gt; Issue-2: Object reference is not passed to task<br>
  &gt; container with SWC_SET_ELEMENT CONTAINER macro from BOT method.<br>
  &gt; <br>
  &gt;&nbsp; &nbsp; <br>
  &gt; <br>
  &gt; Issue-3: I have not implemented IF_WORKFLOW methods in the class..Do I<br>
  &gt; need to<br>
  &gt; implement the interface methods irrespective of its use in task?<br>
  &gt; <br>
  &gt;&nbsp; &nbsp; <br>
  &gt; <br>
  &gt;&nbsp; &nbsp; <br>
  &gt; <br>
  &gt; Thanks for all your input. <br>
  &gt;&nbsp; &nbsp; <br>
  &gt; <br>
  &gt; Regards,<br>
  &gt; <br>
  &gt; Sharath.<br>
  &gt; <br>
  &gt; <br>
  &gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>
  _______________________________________________<br>
  SAP-WUG mailing list<br>
  <a href="/mc/compose?to=SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
  <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
  <br>
  <br>
  __________ Information from ESET Smart Security, version of virus signature<br>
  database 4263 (20090721) __________<br>
  <br>
  The message was checked by ESET Smart Security.<br>
  <br>
  <a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
  <br>
  <br>
  <br>
  _______________________________________________<br>
  SAP-WUG mailing list<br>
  <a href="/mc/compose?to=SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
  <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></p>
  </div>
  </td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

</div>

</body>

</html>