Abap OO Workflow
Florin Wach
florin.wach at gmx.net
Wed Jan 21 10:07:46 EST 2009
Hi,
when you look at the object instance from within the container, all attributes have to be filled with calling the method BI_PERSISTENT~REFRESH. Depending from which transaction you came, it may happen that this method isn't call, but only the BI_PERSISTENT~FIND_BY_LPOR that constructs the instance.
For this case, I'm calling the refresh-method from within the constructor.
Your key attributes are filled, because you fill them on the method implementation of the constructor.
Best wishes,
Florin
-------- Original-Nachricht --------
> Datum: Wed, 21 Jan 2009 09:33:38 -0500
> Von: "Simon, Tom" <Simon.Tom at aoins.com>
> An: sap-wug at mit.edu
> Betreff: Abap OO Workflow
> Below is the class decription for a method I am using in a workflow.
> When I test the class in se24 the instance attribute table zanek will be
> updated with ex_anek.
> When I run the workflow the instance variable me->zanek does not
> update. The persistent object reference is passed into the task and the
> other instance attributes are filled(me->belnr, me->bukrs). When I look
> at the workflow log it shows the Persistent Object Reference with the
> key fields filled but not the table zanek.
> The exported table, ex_anek, is filled and is stored in the container.
> Can anyone understand why the table move to the instance attribute does
> not work? This did work at one time. I have used both formats with the
> [] and without and also directly from t_anek.
>
> Instance Attributes of Class
>
> BELNR InstanPubl Type ANEK-BELNR
> Reference Document N
> BUKRS InstanPubl Type ANEK-BUKRS
> Company Code
> ZANEK InstanPubl Type FAA_T_ANEK
> Document Header Asse
> M_POR InstanProt Type SIBFLPOR
> Local Persistent Obj
>
>
>
> Mehtod Parameter ex_anek type faa_t_anek.
> method retrieve_anek.
> CALL FUNCTION 'ANEK_READ_MULITPLE'
> EXPORTING
> i_belnr = me->belnr
> i_bukrs = me->bukrs
> TABLES
> t_anek = ex_anek.
>
> me->zanek = ex_anek.
>
>
> End Method.
More information about the SAP-WUG
mailing list