<!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>&nbsp;</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 --&gt; 
_wi_object_id</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</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=&gt;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>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>The rest looks good.</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2>Yours,</FONT></DIV>
<DIV><FONT face="Courier New" size=2>&nbsp;&nbsp; Florin</FONT></DIV>
<DIV>&nbsp;</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.&nbsp; 
  The object does not get instantiated by the workflow.&nbsp; 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.&nbsp; 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.&nbsp;&nbsp;But if I try to 
  use the instant attributes it does not work created by the constructor it does 
  not work.&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009></SPAN></FONT>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>wf 
  container&nbsp;&nbsp; task container</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>docnum&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  -&gt; im_belnr</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>company 
  code&nbsp;&nbsp; -&gt; im_bukrs</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>ex_anek&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;- ex_anek</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=198193014-14012009>z_cl_liv_assets 
  &lt;- wi_object_id</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009></SPAN></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>&nbsp;BELNR&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  InstanPubl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  Type&nbsp;&nbsp;&nbsp; 
  ANEK-GJAHR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>&nbsp;Methods:</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>Parameters:&nbsp;</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=198193014-14012009>LPOR&nbsp;Importing&nbsp;Type&nbsp;SIBFLPOR<BR>RESULT&nbsp;Returning&nbsp;Type 
  Ref To&nbsp;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">&nbsp; 
  <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>&nbsp;bi_persistent~find_by_lpor.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>DATA</SPAN>:&nbsp;lv_liv_doc&nbsp;<SPAN 
  class=L1S52>TYPE</SPAN>&nbsp;anek-belnr,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lv_liv_co&nbsp;&nbsp;<SPAN 
  class=L1S52>TYPE</SPAN>&nbsp;anek-bukrs.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>MOVE</SPAN>&nbsp;lpor-instid(<SPAN 
  class=L1S32>10</SPAN>)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>TO</SPAN>&nbsp;lv_liv_doc.<BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>MOVE</SPAN>&nbsp;lpor-instid+<SPAN class=L1S32>10</SPAN>(<SPAN 
  class=L1S32>4</SPAN>)&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>TO</SPAN>&nbsp;lv_liv_co.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>CREATE</SPAN>&nbsp;OBJECT&nbsp;result<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>TYPE</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;z_cl_liv_assets<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>EXPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_belnr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;lv_liv_doc<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;im_bukrs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><FONT 
  face=Arial>&nbsp; 
  Parameters:RESULT&nbsp;Returning&nbsp;Type&nbsp;SIBFLPOR</FONT></SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=198193014-14012009><!--StartFragment --><FONT size=3><FONT 
  face="Times New Roman">&nbsp;</FONT></FONT></SPAN></FONT><FONT face=Arial 
  size=2><SPAN class=198193014-14012009><SPAN><FONT size=3><FONT 
  face="Times New Roman">&nbsp; 
  <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>&nbsp;bi_persistent~lpor.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>DATA</SPAN>:&nbsp;lpor&nbsp;<SPAN 
  class=L1S52>TYPE</SPAN>&nbsp;sibflpor.<BR><BR>&nbsp;&nbsp;lpor-catid&nbsp;=&nbsp;<SPAN 
  class=L1S33>'CL'</SPAN>.<BR>&nbsp;&nbsp;lpor-typeid&nbsp;=&nbsp;<SPAN 
  class=L1S33>'Z_CL_LIV_ASSETS'</SPAN>.<BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>CONCATENATE</SPAN>&nbsp;me-&gt;belnr&nbsp;me-&gt;bukrs&nbsp;<SPAN 
  class=L1S52>INTO</SPAN>&nbsp;lpor-instid.<BR>&nbsp;&nbsp;result&nbsp;=&nbsp;lpor.<BR><SPAN 
  class=L1S52>ENDMETHOD</SPAN>.</SPAN><FONT face="Times New Roman" 
  size=3>&nbsp;</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&nbsp;Type&nbsp;ANEK-BELNR<BR>IM_BUKRS&nbsp;Type&nbsp;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">&nbsp; 
  <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>&nbsp;constructor.<BR>&nbsp;&nbsp;me-&gt;belnr&nbsp;=&nbsp;im_belnr.<BR>&nbsp;&nbsp;me-&gt;bukrs&nbsp;=&nbsp;im_bukrs.<BR>&nbsp;&nbsp;me-&gt;M_por-catid&nbsp;=&nbsp;<SPAN 
  class=L1S33>'CL'</SPAN>.<BR>&nbsp;&nbsp;me-&gt;M_por-typeid&nbsp;=&nbsp;<SPAN 
  class=L1S33>'z_cl_liv_assets'</SPAN>.<BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>CONCATENATE</SPAN>&nbsp;me-&gt;belnr&nbsp;me-&gt;bukrs&nbsp;<SPAN 
  class=L1S52>INTO</SPAN>&nbsp;me-&gt;M_por-instid.<BR><SPAN 
  class=L1S31>*&nbsp;&nbsp;me-&gt;m_por-instid&nbsp;=&nbsp;me-&gt;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>&nbsp;</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&nbsp;Exporting&nbsp;Type&nbsp;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>&nbsp;retrieve_anek.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>CALL</SPAN>&nbsp;<SPAN class=L1S52>FUNCTION</SPAN>&nbsp;<SPAN 
  class=L1S33>'ANEK_READ_MULITPLE'</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>EXPORTING</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i_belnr&nbsp;=&nbsp;me-&gt;belnr<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i_bukrs&nbsp;=&nbsp;me-&gt;bukrs<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=L1S52>TABLES</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t_anek&nbsp;&nbsp;=&nbsp;ex_anek.<BR><BR>&nbsp;&nbsp;<SPAN 
  class=L1S52>IF</SPAN>&nbsp;sy-subrc&nbsp;=&nbsp;<SPAN 
  class=L1S32>0</SPAN>.<BR>&nbsp;&nbsp;&nbsp;&nbsp;me-&gt;t_anek&nbsp;=&nbsp;ex_anek.<BR>&nbsp;&nbsp;<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>&nbsp;</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>