Updating Virtual attribute

Wiz David yidysap at yahoo.com
Tue Feb 10 10:19:13 EST 2004


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
 


More information about the SAP-WUG mailing list