‎2008 Jan 23 8:20 AM
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
‎2008 Jan 23 1:10 PM
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
‎2008 Jan 23 1:10 PM
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
‎2008 Jan 23 1:27 PM
Thanks a lot,
that solved the problem :). That was the only Parameter i dont play with :-).
Greetings
Moritz