‎2006 Dec 27 11:09 PM
I would like to be able to automate the creation of global class definitions using source code that is defined in a text file (one example: convert a local class def to a global class def).
Does SAP deliver this functionality? (I'm already aware of the various classes that can be used to create global classes and how those classes can be implemented in a program to generate new classes. I'm hoping to avoid having to create a custom solution.)
Thanks in advance!
‎2006 Dec 28 2:55 AM
All:
Uwe's tip is helpful to me for one of my requirements but I'm still trying to find out if SAP provides a function/class that can import a local class definition (without XML tags) and convert it to a global class definition.
All attempts to help are appreciated!
‎2006 Dec 28 12:20 AM
Hello Larry
Are you aware of <a href="https://forums.sdn.sap.com/click.jspa?searchID=542333&messageID=2859885">ZSAPLINK</a> ?
<b>ZSAPLINK</b> allows you to download and upload various program objects including classes. The sources are downloaded as <b>XML</b>. Thus, you could analyze the XML document using an XML editor and see if this is a way to generate your global classes.
Regards
Uwe
‎2006 Dec 28 2:03 AM
Hi Uwe,
Thanks for the speedy response.
I don't think that ZSAPLINK is exactly what I'm looking for in this instance, but it may have applicability to a different requirement that I have.
Thanks again!
‎2006 Dec 28 2:55 AM
All:
Uwe's tip is helpful to me for one of my requirements but I'm still trying to find out if SAP provides a function/class that can import a local class definition (without XML tags) and convert it to a global class definition.
All attempts to help are appreciated!
‎2006 Dec 28 3:19 AM
‎2006 Dec 28 4:01 AM
We have a winner!
Thanks Rich!
It's not a 100% solution - I was hoping to be able to generate global classes/interfaces using source code alone, without requiring user intervention.
It <i>is</i> however, a 90-95% solution because debugging SE24 reveals that by using a combination of the FM's SCAN_ABAP_OBJECTS_CLASSES & SEO_CLIF_MULTI_IMPORT, I should be able to <u>quickly</u> put together that custom application that I was trying to avoid.
I knew about the existance of SEO_CLIF_MULTI_IMPORT but I did not know about SCAN_ABAP_OBJECTS_CLASSES. I'm very happy to learn that I'm not going to have to write a parser!