2009 Nov 05 6:02 AM
I have a requirement where in at runtime I would know the class name, method name, properties, interface..and coding lines to be put into a method?
Can anyone suggest a way to create the consumable central class object with these details, activate it and without any manual intervention create this object in backend?
2009 Nov 05 6:52 AM
Posting same question three times? Don't!
As for your question, as I understand correctly, you want to actually create classes (which willl then be available globally in SAP via transaction Se24) on the fly, correct? If so, check out all function groups starting with SEO. This should give you a good impression on how to start.
BW: This sounds like a pretty complicated requirement and it could take some time before you are actually ready to start using this. Could also involve some good old debugging in SE24 to find out how these function modules are used and filled. Anyway, good luck.
Posting same question three times? Don't!
As for your question, as I understand correctly, you want to actually create classes (which willl then be available globally in SAP via transaction Se24) on the fly, correct? If so, check out all function groups starting with SEO. This should give you a good impression on how to start.
BW: This sounds like a pretty complicated requirement and it could take some time before you are actually ready to start using this. Could also involve some good old debugging in SE24 to find out how these function modules are used and filled. Anyway, good luck.
2009 Nov 05 6:52 AM
Posting same question three times? Don't!
As for your question, as I understand correctly, you want to actually create classes (which willl then be available globally in SAP via transaction Se24) on the fly, correct? If so, check out all function groups starting with SEO. This should give you a good impression on how to start.
BW: This sounds like a pretty complicated requirement and it could take some time before you are actually ready to start using this. Could also involve some good old debugging in SE24 to find out how these function modules are used and filled. Anyway, good luck.
2009 Nov 05 6:55 AM
HI Micky,
The firefox refresh added the questions 3 times! Sorry for that.
I am in middle of good old debugging in se24...meanwhile thought to get some early pointers to the modules. Will try going through the objects pointed by you.
Thanks,
Jemin
Edited by: Jemin Tanna on Nov 5, 2009 7:58 AM
2009 Nov 07 9:02 PM
Hi,
do you want to create a global or a local class?
For creating a local class GENERATE SUBROUTINE might be an idea?
Regards
Dirk
2009 Nov 08 1:29 PM
Hi Jemin,
1) Use the FM: "OO_CLASS_CREATE" to create class using the metadata.
2) Next use FM "OO_EVENT_CREATE" to create events for a class.
3) FM "OO_METHOD_CREATE" to create methods of a class.
4) FM "OO_PARAMETER_CREATE" to create parameters of a method of class.
5) Finally FM "OO_ATTRIBUTE_CREATE" to create the attribute of the class.
Funtion group "SEOD" has all these plus more Function Modules (FM).
Many regards,
Ravi.
2009 Nov 09 3:14 AM
Thank you everyone. I looked into the package and the classes suggested by you guys and that is exactl;y what I need.
Regards,
Jemin Tanna
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |