Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP APIs for creating classes, methods, ddic elements etc.,

0 Likes
1,386

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

3 REPLIES 3
Read only

former_member219762
Contributor
0 Likes
887

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.

Read only

Former Member
0 Likes
887

Project SAPlink is able to create all objects. You can take a look at its source code.

SAPlink_install-0.1.4.zip…

Read only

Former Member
0 Likes
887

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