Updating Virtual attribute

Dart, Jocelyn jocelyn.dart at sap.com
Wed Feb 11 19:19:33 EST 2004


Hi Wiz,
You can't use SWC_GET_ELEMENT inside a GET_PROPERTY block - only in a method.
Instead of SWC_GET_ELEMENT use:
 
SWC_GET_PROPERTY self 'Material' L_MATERIAL.
 
i.e. get the Material attribute of the current object (self-object).
Regards,
Jocelyn
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of Wiz David
Sent: Thursday,12 February 2004 2:16 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Updating Virtual attribute
 
 
Yas, Mike
 
 
Michael Pokraka <workflow at quirky.me.uk> wrote: Hi,
Is the attribute set to implemented?
Cheers
Mike
 
Wiz David wrote:
> Hi,
>
>
> I work on business object bus2045 that contain bus2045.Material .
>
> I created a customer object ybus2045 and new virtual attribute
> ybus2045.Vmatnr
>
> This virtual attribute store the first two characters of the bus2045.Material
>
> The code is:
>
> ****
>
> GET_PROPERTY PREMATNR CHANGING CONTAINER.
>
> DATA: L_MATERIAL LIKE QALS-MATNR.
>
>
>
> SWC_GET_ELEMENT CONTAINER 'Material' L_MATERIAL.
>
> OBJECT-PREMATNR = L_MATERIAL (2(.
>
> SWC_SET_ELEMENT CONTAINER 'PreMatnr' OBJECT-PREMATNR.
>
> END_PROPERTY.
>
> ****
>
> My question is while I tested the workflow the Material container is full but
> the parameter L_MATERIAL is empty and PreMatnr also empty, What isn t ok in
> this code?
>
>
>
> TIA
>
>
>
> Wiz
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online
>
>
 
 
---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
 


More information about the SAP-WUG mailing list