‎2008 Apr 08 6:42 PM
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]
‎2008 Apr 08 8:42 PM
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
‎2008 Apr 09 5:31 AM
‎2008 Apr 09 6:41 AM
@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!
‎2008 Apr 09 8:12 AM
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
‎2008 Apr 09 8:24 AM
>
> 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