Application Development 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: 

DESTRUCTOR

Former Member
0 Kudos

Does anybody know, if and when SAP will allow the implementation of DESTRUCTOR in ABAP-OO? Currently, one is only allowed to call an C-Function (Kernel-Function) within the DESTRUCTOR?

see SAP-Note [168703|https://websmp105.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=168703&_NLANG=E]

5 REPLIES 5

marcelo_ramos
Active Contributor
0 Kudos

Hi Mike,

I think we won't be able to implement DESTRUCTOR in ABAP Objects it because ABAP Objects was designed to be simple than Java and C++, and to omit complex concepts that lack in benefits such destructors !

"Currently ABAP Objects does not include any destructor, in which a regular ABAP processing block can be programmed. This means that the destructor makes it possible to call only a C routine name when an object is deleted. The routine must exist in the kernel in order that no syntax error occurs."

(The C Destructor Help information)

Don't forget to close this Thread when your question be answered !

Regards,

Marcelo Ramos

Former Member
0 Kudos

Can u please tell the details of the note.

0 Kudos

@Radha Yelisetty:

Why do you want me to quote the content of this note? Please have a look at service.sap.com with the link stated!

former_member230674
Contributor
0 Kudos

Mike Schernbeck ,

There is no such concept is available in ABAP. it is explicitly available in JAVA,C++.I don't know exact reason, why they not so?

by

G.V.K.Prasad

matt
Active Contributor
0 Kudos

>

> Does anybody know, if and when SAP will allow the implementation of DESTRUCTOR in ABAP-OO? Currently, one is only allowed to call an C-Function (Kernel-Function) within the DESTRUCTOR?

>

> see SAP-Note [168703|https://websmp105.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=168703&_NLANG=E]

Judging from the note. No and never.

matt