‎2013 Dec 02 6:14 PM
Hi,
Is there any built-in ABAP report programs or function modules to create classes, methods, ddic elements etc., Could anyone give references regarding the same?
Thanks,
Keshav
‎2013 Dec 02 9:30 PM
Hi
Create classes use function module SEO_CLASS_CREATE_COMPLETE.To how to create class go through report SEO_GENERATE_CLASS_EXAMPLE or SBMIG_CREATE_CLASS_AND_TTYPES.
.For each dictionary object creation corresponding function module is there in function group SDIF . Check it.
Regards,
Sreenivas.
‎2013 Dec 03 4:36 AM
Project SAPlink is able to create all objects. You can take a look at its source code.
‎2013 Dec 03 6:07 AM
Sample program : SBMIG_CREATE_CLASS_AND_TTYPES
FM : SEO_CLASS_CREATE_COMPLETE is a standard SAP function module available within R/3 SAP systems depending on your version and release level.
CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
* EXPORTING
* corrnr = " trkorr Correction Number
* devclass = " devclass Package
* version = SEOC_VERSION_INACTIVE " seoversion Active/Inactive
* genflag = SPACE " genflag Generation Flag
* authority_check = SEOX_TRUE " seox_boolean
* overwrite = SEOX_FALSE " seox_boolean
* method_sources = " seo_method_source_table Table of Methodsources
* locals_def = " rswsourcet Sourcetext klassenlokaler Klassen (Definitionsteil)
* locals_imp = " rswsourcet Sourcetext klassenlokaler Klassen (Implementierungsteil)
* locals_mac = " rswsourcet ABAP-Source
* typesrc = " seoo_typesrc Updated type Source parameter to support more than 9999 characters
* locals_au = " rswsourcet Sourcecode for local testclasses
* suppress_commit = SEOX_FALSE " seox_boolean No DB_COMMIT will be executed
IMPORTING
korrnr = " trkorr Request/Task
* TABLES
* class_descriptions = " seoclasstx Short description class/interface
* component_descriptions = " seocompotx Short description class/interface component
* subcomponent_descriptions = " seosubcotx Class/interface subcomponent short description
* CHANGING
* type_source = " seop_source This parameter is deprecated. Please use typesrc.
* typepusages = " seot_typepusages_r Type group application
. " SEO_CLASS_CREATE_COMPLETE