<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>Hi,</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>1. There's a dataflow missing from
wf_container to task_container</FONT></DIV>
<DIV><FONT face="Courier New" size=2>z_cl_liv_assets -->
_wi_object_id</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>2. You'll need</FONT><FONT
face="Courier New" size=2> an instantiation method that you have a class
instance before executing the task.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Example</FONT></DIV>
<DIV><FONT face="Courier New" size=2>z_cl_liv_assets=>get_instance( importing
im_beln, im_bukrs) exporting class instance as instance independent
method.</FONT></DIV>
<DIV><FONT face="Courier New" size=2>Create a new task step that executes that
method. do not use a simple container operation.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>The rest looks good.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Yours,</FONT></DIV>
<DIV><FONT face="Courier New" size=2> Florin</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Simon.Tom@aoins.com href="mailto:Simon.Tom@aoins.com">Simon, Tom</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu
href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 14, 2009 3:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> ABAP OO - OBJECT NOT
INSTANTIATED</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>I am using a
method in a class(z_cl_liv_assets) that I created for a workflow task.
The object does not get instantiated by the workflow. I have read all
the blogs by Jocelyn Dart and wondered if anyone could look over my structures
and provide insight into why it does not work. When I test the instant
constructor and pass in the doc num and company code it works. If I pass the
import parameters directly to the method it works. But if I try to
use the instant attributes it does not work created by the constructor it does
not work. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>When I test the
task in swus it does not instantiate the object?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>Any help is
apprecitated?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>Thank
you,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>Tom
Simon</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>Bindings in the
task to class z_cl_liv_assets~retrieve_anek:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>wf
container task container</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009>docnum
-> im_belnr</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>company
code -> im_bukrs</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009>ex_anek
<- ex_anek</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>z_cl_liv_assets
<- wi_object_id</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>bindings from task
to method <FONT face=Arial>retrieve_anek.</FONT><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>im_belnr to
im_belnr</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>im_bukrs to
im_bukrs</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>Class:
z_cl_liv_assets;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009>Attributes:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009> BELNR
InstanPubl
Type
ANEK-BELNR
<BR> BUKRS
InstanPubl
Type
ANEK-BUKRS
<BR> T_ANEK
InstanPubl
Type
FAA_T_ANEK
<BR> M_POR
InstanProt
Type
SIBFLPOR
<BR> GJAHR
InstanPubl
Type
ANEK-GJAHR </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009> Methods:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009>Parameters: </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009>LPOR Importing Type SIBFLPOR<BR>RESULT Returning Type
Ref To BI_PERSISTENT<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><!--StartFragment --><FONT size=3><FONT
face="Times New Roman">
<STYLE type=text/css>SPAN {
        FONT-SIZE: 10pt; BACKGROUND: #ffffff; COLOR: #000000; FONT-FAMILY: "Courier New"
}
.L1S32 {
        COLOR: #3399ff
}
.L1S52 {
        COLOR: #0000ff
}
</STYLE>
</FONT></FONT><SPAN><SPAN
class=L1S52>METHOD</SPAN> bi_persistent~find_by_lpor.<BR><BR> <SPAN
class=L1S52>DATA</SPAN>: lv_liv_doc <SPAN
class=L1S52>TYPE</SPAN> anek-belnr,<BR> lv_liv_co <SPAN
class=L1S52>TYPE</SPAN> anek-bukrs.<BR><BR> <SPAN
class=L1S52>MOVE</SPAN> lpor-instid(<SPAN
class=L1S32>10</SPAN>) <SPAN
class=L1S52>TO</SPAN> lv_liv_doc.<BR> <SPAN
class=L1S52>MOVE</SPAN> lpor-instid+<SPAN class=L1S32>10</SPAN>(<SPAN
class=L1S32>4</SPAN>) <SPAN
class=L1S52>TO</SPAN> lv_liv_co.<BR><BR> <SPAN
class=L1S52>CREATE</SPAN> OBJECT result<BR> <SPAN
class=L1S52>TYPE</SPAN><BR> z_cl_liv_assets<BR> <SPAN
class=L1S52>EXPORTING</SPAN><BR> im_belnr = lv_liv_doc<BR> im_bukrs = lv_liv_co.<BR><BR><BR><SPAN
class=L1S52>ENDMETHOD</SPAN>.</SPAN><FONT face="Times New Roman" size=3>
</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT
face=Arial>
Parameters:RESULT Returning Type SIBFLPOR</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><!--StartFragment --><FONT size=3><FONT
face="Times New Roman"> </FONT></FONT></SPAN></FONT><FONT face=Arial
size=2><SPAN class=198193014-14012009><SPAN><FONT size=3><FONT
face="Times New Roman">
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S33 {
color: #4DA619;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
</FONT></FONT><SPAN><SPAN
class=L1S52>METHOD</SPAN> bi_persistent~lpor.<BR><BR> <SPAN
class=L1S52>DATA</SPAN>: lpor <SPAN
class=L1S52>TYPE</SPAN> sibflpor.<BR><BR> lpor-catid = <SPAN
class=L1S33>'CL'</SPAN>.<BR> lpor-typeid = <SPAN
class=L1S33>'Z_CL_LIV_ASSETS'</SPAN>.<BR> <SPAN
class=L1S52>CONCATENATE</SPAN> me->belnr me->bukrs <SPAN
class=L1S52>INTO</SPAN> lpor-instid.<BR> result = lpor.<BR><SPAN
class=L1S52>ENDMETHOD</SPAN>.</SPAN><FONT face="Times New Roman"
size=3> </FONT><BR><FONT face=Arial></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><SPAN><FONT
face=Arial>parameters:</FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT size=3><FONT
face=Arial
size=2>IM_BELNR Type ANEK-BELNR<BR>IM_BUKRS Type ANEK-BUKRS</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT size=3><FONT
face="Times New Roman">
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S31 {
font-style: italic;
color: #808080;
}
.L1S33 {
color: #4DA619;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
</FONT></FONT><SPAN><SPAN
class=L1S52>METHOD</SPAN> constructor.<BR> me->belnr = im_belnr.<BR> me->bukrs = im_bukrs.<BR> me->M_por-catid = <SPAN
class=L1S33>'CL'</SPAN>.<BR> me->M_por-typeid = <SPAN
class=L1S33>'z_cl_liv_assets'</SPAN>.<BR> <SPAN
class=L1S52>CONCATENATE</SPAN> me->belnr me->bukrs <SPAN
class=L1S52>INTO</SPAN> me->M_por-instid.<BR><SPAN
class=L1S31>* me->m_por-instid = me->belnr.</SPAN><BR><BR><SPAN
class=L1S52>ENDMETHOD</SPAN>.</SPAN><FONT face="Times New Roman" size=3>
</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT size=3><FONT
face="Times New Roman"><FONT face=Arial
size=2>Parameters:</FONT> </FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=198193014-14012009></SPAN></FONT><FONT face=Arial size=2><SPAN
class=198193014-14012009><FONT size=3><FONT face=Arial
size=2>EX_ANEK Exporting Type FAA_T_ANEK</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT size=3><FONT
face="Times New Roman">
<STYLE type=text/css>
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L1S32 {
color: #3399FF;
}
.L1S33 {
color: #4DA619;
}
.L1S52 {
color: #0000FF;
}
</STYLE>
</FONT></FONT><SPAN><SPAN
class=L1S52>METHOD</SPAN> retrieve_anek.<BR><BR> <SPAN
class=L1S52>CALL</SPAN> <SPAN class=L1S52>FUNCTION</SPAN> <SPAN
class=L1S33>'ANEK_READ_MULITPLE'</SPAN><BR> <SPAN
class=L1S52>EXPORTING</SPAN><BR> i_belnr = me->belnr<BR> i_bukrs = me->bukrs<BR> <SPAN
class=L1S52>TABLES</SPAN><BR> t_anek = ex_anek.<BR><BR> <SPAN
class=L1S52>IF</SPAN> sy-subrc = <SPAN
class=L1S32>0</SPAN>.<BR> me->t_anek = ex_anek.<BR> <SPAN
class=L1S52>ENDIF</SPAN>.<BR><BR><SPAN
class=L1S52>ENDMETHOD</SPAN>.</SPAN><FONT face="Times New Roman" size=3>
</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT
face=Arial></FONT> </DIV></SPAN></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>SAP-WUG mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE></BODY></HTML>