ABAP OO Workflow

Simon, Tom Simon.Tom at aoins.com
Wed Jan 21 14:22:20 EST 2009


Florin:
      So this is what I understand: When I tested my task I entered the
key attributes into the variable that represents my class.  This object
reference is bound to the wi_Object_ID.  The persistent object reference
is passed to find_by_lpor and the constructor is executed to create the
instance of the class.  My instance method then executes.  As part of
this execution I fill the me->zanek table with the results from the
function module.  I then use  me->zanek in another method.
When the task is complete and I look at the workflow log,  the
wi_object_ID, containing the instant object of the class has the key
attribute filled but not the table zanek.  In the method I changed the
value of the key attribute belnr and it showed up in the container
reference to the class instance.  So as the task completed and executed
my method it must of called bi_persistent-lpor and updated the result
parameter with my new value for me->belnr.  It then ran find_by_lpor and
created a new instance with a different value in the key parameter and
passed it back to the wi_Object_ID reference in the container.     
 
Thank you,
 
Tom Simon
 
  METHOD retrieve_anek.

  CALL FUNCTION 'ANEK_READ_MULITPLE'
    EXPORTING
      i_belnr = me->belnr
      i_bukrs = me->bukrs
    TABLES
      t_anek  = me->zanek.

   IF me->zanek is not initial.

    me->updatelink(
    im_archiveid = im_archiveid
    im_archdocid = im_archdocid
    im_object_id = im_object_id
    im_anek      = ex_anek ).

   ENDIF. 
 
    me->belnr = '4545454545454'.
 
endmethod.
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090121/aae9ebee/attachment.htm


More information about the SAP-WUG mailing list