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

Interface Activation

Former Member
0 Likes
732

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.

2 REPLIES 2
Read only

christian_wohlfahrt
Active Contributor
0 Likes
524

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

Read only

Former Member
0 Likes
524

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.