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

DESTRUCTOR

Former Member
0 Likes
1,062

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
Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
797

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

Read only

Former Member
0 Likes
797

Can u please tell the details of the note.

Read only

0 Likes
797

@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!

Read only

Former Member
0 Likes
797

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

Read only

matt
Active Contributor
0 Likes
797

>

> 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