Accessing object attributes in a method

Dart, Jocelyn jocelyn.dart at sap.com
Tue Apr 23 05:00:04 EDT 2002


Hi Jose,
It's not clear whether you want parameters of your method
or attributes of your object.  Self refers to the current object
instance so of course that will only work for attributes not =
parameters.=20
 
 
If you want to access PARAMETERS of the method use
 
SWC_GET_ELEMENT CONTAINER 'Location' location.
 
If you want to access ATTRIBUTES of your object use=20
 
SWC_GET_PROPERTY self 'Location' location.=20
 
Regards,
        Jocelyn Dart=20
Consultant (EBP, BBP, Ecommerce, Internet Transaction Server, Workflow) =
 
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>=20
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
 
-----Original Message-----
From: Jose Burgman [mailto:Jose.Burgman at palabora.co.za]
Sent: Monday, 22 April 2002 11:57 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Accessing object attributes in a method
 
 
Hi every-one
 
Sorry again for this very basic question - in defense I did the academy =
8
months ago and I've been chucked into workflow for the first time since
then. I'm creating a method and in it I want to access the attributes =
of a
method. I use the macro swc_get_element. I tried to use SELF, but the =
object
complains that it is not defined (???). I then use container, and I get =
a
sy-subrc of 8. The business object is 2038 - the coding I use is for eg
swc_get_element container 'Location' location [location is defined in a =
data
statement]. Any assistence would be appreciated.
 
Thanks for the trouble....
 
Jos=E9
 


More information about the SAP-WUG mailing list