<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<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-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.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></BODY></HTML>