‎2006 Jun 26 7:14 AM
Hi all,
I have created an Interface in SE24. I used the following
code to activate the interface.
DATA: IFS TYPE SEOC_INTERFACE_KEYS.
APPEND 'ZUA_IF_OOFW_TEMPLATE' TO IFS.
CALL FUNCTION 'SEO_INTERFACE_ACTIVATE'
EXPORTING
INTKEYS = IFS
EXCEPTIONS
NOT_SPECIFIED = 1
NOT_EXISTING = 2
INCONSISTENT = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
WRITE: / 'ERROR CODE: ', SY-SUBRC.
ENDIF.
But when i go and check back in SE24 the interface is not
active. It shows 'Active' only when I activate from
the Class Builder.
What could be the problem?
Thanks in advance.
‎2006 Jun 27 12:11 PM
Hi!
Wrong module? In SEO_INTERFACE_ACTIVATE only some versions are deleted / updated, but not a 'real' activation is triggered.
Have a look at INTF_OBJECT_ACTIVATE, maybe this will do more of the job. Also a look at the methods of the coding behind SE24 might help, but try to find something as high-level as possible.
Regards,
Christian
‎2006 Jun 27 12:15 PM
Hi ravi Try the highlighted changes:
DATA: IFS TYPE SEOC_INTERFACE_KEYS.
<b>DATA: WA_IFS TYPE seoc_interface_key.
WA_IFS-CLSNAME = 'ZUA_IF_OOFW_TEMPLATE'.
APPEND WA_IFS TO IFS.
CLEAR WA_IFS.</b>
CALL FUNCTION 'SEO_INTERFACE_ACTIVATE'
EXPORTING
INTKEYS = IFS
EXCEPTIONS
NOT_SPECIFIED = 1
NOT_EXISTING = 2
INCONSISTENT = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
WRITE: / 'ERROR CODE: ', SY-SUBRC.
ENDIF.