2008 Jun 16 6:52 AM
2008 Jun 16 8:46 AM
to change instance attribute
<reference variable>->atribute = <value> .
to change static attribute
<class name>->atribute = <value>.
remember attribute you want to change must be in public section of the class
and not read only and not constant
Hi,
you can use function modules under SEOK function group to add methods to your class.
Eg: SEO_METHOD_CREATE to create methods
Reward points if useful.
Regards,
Siva.
2008 Jun 16 8:46 AM
to change instance attribute
<reference variable>->atribute = <value> .
to change static attribute
<class name>->atribute = <value>.
remember attribute you want to change must be in public section of the class
and not read only and not constant
2008 Jun 16 9:18 AM
hi, Marat,
Sorry , my question is how to add a method by ABAP code, for example ,
I have a new method with the method name 'Add_speed' with return value rv_tmp return 'Hello World'.
Is it possible to add the method by ABAP code?
Best regards,
Blake Le
2008 Jun 16 9:40 AM
in the abap code, as i know, is possible to create local class.
2008 Jun 16 9:47 AM
Hi,
you can use function modules under SEOK function group to add methods to your class.
Eg: SEO_METHOD_CREATE to create methods
Reward points if useful.
Regards,
Siva.
2008 Jun 17 3:32 AM
HI, Siva
Thanks very much. It's what we want .
Best regards,
Blake Le
2008 Jun 16 9:15 AM
Hi,
maybe this is helpful:
[Object Handling|http://help.sap.com/saphelp_nw70/helpdata/EN/c3/225b5f54f411d194a60000e8353423/frameset.htm]
Regards Rudi
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |