‎2009 Aug 11 5:24 PM
Hi,
Can I create global ABAP classes and Function groups dynamically?
Regards
‎2009 Aug 11 5:51 PM
‎2009 Aug 11 5:51 PM
‎2009 Aug 11 5:59 PM
Hi max,
I have the metadata of an object (name, attributes, methods) or a function group(function modules, includes) even some of them include some ABAP code which I generate dynamically (e.g. the code of one method or any include in the FG). I just need to store the object or FG in ABAP using that metadata
Regards
‎2009 Aug 11 6:05 PM
Hi
I don't know if it's possible to do it, probably yes, but it means to know all internal comand to do it.
I know it's possible to create a report using statament INSERT REPORT, but class and function group are complex object so it can be very hard.
Try to see the SAP HELP for Dynamic Program Development
Good luck
Max
‎2009 Aug 11 10:52 PM
You could try researching the way SAPLink works to import that kind of objects, it creates those (and other) kinds of objects based on data in XML files (nuggets and slinkees). You could adapt it to create them based on your kind of input instead.
A word of caution though, I'm not sure it uses only SAP approved methods / APIs to achieve that. For instance, I know (from Thomas Jung's comments in other threads) that the APIs used in SAPLink to import Web Dynpro components are SAP internal and not intended to be used by customer developers; however to date there was no public API to do that.
SAPLink's site: http://saplink.org/
Regards
Edited by: Alejandro Bindi on Aug 11, 2009 6:54 PM
‎2009 Aug 12 1:29 AM
‎2009 Aug 11 6:01 PM
CREATING GLOBAL CLASSES
<< Cut and paste without attribution removed. >>
Edited by: Rob Burbank on Aug 11, 2009 1:28 PM
Edited by: Rob Burbank on Aug 11, 2009 1:29 PM