Programming a user defined method for business objects.

Sangeetha Macharla sangeetha.wf at hotvoice.com
Tue Mar 23 08:10:45 EST 2004


Hi,
 
You can access the attributes of the Business Object instance by calling a macro (defined in include <CNTN01>) SWC_GET_PROPERTY. No need to use the Include explicily.
 
The call should be as mentioned below.
SWC_GET_PROPERTY self  'Attribute'  AttriVAR.
 
Here keyword "self" refers to current instance of Business Object. The value of Attribute is copied into variable AttriVAR.
 
Regards,
Sangeetha.
 
 
-----Original Message-----
From:     ezra <saarell at netvision.net.il>
Sent:     Mon, 22 Mar 2004 12:38:59 +0200
To:       SAP-WUG at MITVMA.MIT.EDU
Subject:  Programming a user defined method for business objects.
 
Hello,
 
I am trying to write a user defined method, bur i have a problem accessing the object's attributes.
To access a key value, I use the expression OBJEC-KEY-KEY_PROPERTY, but I don't know how to access a "regular" attribute (not a key attribute).
Please advise,
 
Thank you.
Elad.
 


More information about the SAP-WUG mailing list