Updating Virtual attribute

Becker, Stephan stephan_becker.ext at siemens.com
Tue Feb 10 10:36:16 EST 2004


Which is it, Vmatnr or PreMatnr? You have created the one, but fill the
other. No wonder you don't get a result..
 
-----Mensaje original-----
De: Wiz David [mailto:yidysap at yahoo.com]
Enviado el: 10 February 2004 16:19
Para: SAP-WUG at MITVMA.MIT.EDU
Asunto: Updating Virtual attribute
 
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