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

automaticly activate a generated Class

Former Member
0 Likes
559

Hey there,

i playing around with abap at the moment. And i get it working to create a empty class with this code:


DATA:
  cls TYPE vseoclass.

  cls-clsname = 'ZAEB_TEST_MLU'.
  cls-CLSDEFINT = 'ZAEB_TEST_MLU'.
  cls-version = 1. "Active Class
  cls-langu = sy-langu.
  cls-descript = 'Ich bin ein Test'.
  cls-category = 00.
  cls-exposure = 2. "0 = Private 1 = Protected 2 = Private
  cls-state = 1.
  cls-release = 1.
  cls-CLSABSTRCT = 'X'.
  cls-clsfinal = 'X'.

  CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'
    CHANGING
      class = cls
    EXCEPTIONS
      existing = 1
      is_interface = 2
      not_created = 3
      db_error = 4.

The Class is created but its not activated. Is there a Function module to get it activated?

Or is the only way to get this working activate it in the se80 in the normal way?

greetings

Moritz

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
413

Hi,

Just add VERSION parameter:

CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'

EXPORTING

version = '1'

CHANGING

class = cls

EXCEPTIONS

existing = 1

is_interface = 2

not_created = 3

db_error = 4.

It will activate automatically

2 REPLIES 2
Read only

former_member182670
Contributor
0 Likes
414

Hi,

Just add VERSION parameter:

CALL FUNCTION 'SEO_CLASS_CREATE_COMPLETE'

EXPORTING

version = '1'

CHANGING

class = cls

EXCEPTIONS

existing = 1

is_interface = 2

not_created = 3

db_error = 4.

It will activate automatically

Read only

0 Likes
413

Thanks a lot,

that solved the problem :). That was the only Parameter i dont play with :-).

Greetings

Moritz