<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> </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> </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> </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 & 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> <o:p></o:p></p>
<p class=MsoNormal> <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><wug@workflowconnections.com></i></b>
wrote:<o:p></o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
From: Mike Pokraka <wug@workflowconnections.com><br>
Subject: RE: ABAP OO objects as BOR method parameters.<br>
To: "'SAP Workflow Users' Group'" <sap-wug@mit.edu><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 ==> 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->BOR is fine, but BOR->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>
> Datum: Mon, 20 Jul 2009 15:48:58 -0700 (PDT)<br>
> Von: Sharath K <<a href="/mc/compose?to=ksharath77@yahoo.com">ksharath77@yahoo.com</a>><br>
> An: "SAP Workflow Users\' Group" <<a
href="/mc/compose?to=sap-wug@mit.edu">sap-wug@mit.edu</a>><br>
> Betreff: ABAP OO objects as BOR method parameters.<br>
<br>
> Hi all, Here I am repostig the issue(seems my emails are ending in Junk<br>
> folder). <br>
> I am trying to return a class object from business<br>
> object method to workflow container. I am not using this is class object<br>
> in any<br>
> of my tasks, using just as parameter..<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Issue-1: I am unable to class object as BOR method parameter, I cant see<br>
> any options to choose ABAP class<br>
> type..the only two options are (i)ABAP Dictionary, (ii) Object type.. Is<br>
> it a version issue..the client is on R/3 4.7.<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Issue-2: Object reference is not passed to task<br>
> container with SWC_SET_ELEMENT CONTAINER macro from BOT method.<br>
> <br>
> <br>
> <br>
> Issue-3: I have not implemented IF_WORKFLOW methods in the class..Do I<br>
> need to<br>
> implement the interface methods irrespective of its use in task?<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Thanks for all your input. <br>
> <br>
> <br>
> Regards,<br>
> <br>
> Sharath.<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><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> </o:p></span></p>
</div>
</body>
</html>