Skip to Content
avatar image
Former Member

DESTRUCTOR

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]

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Apr 08, 2008 at 07: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09, 2008 at 04:31 AM

    Can u please tell the details of the note.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 09, 2008 at 07: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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 09, 2008 at 07: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

    Add comment
    10|10000 characters needed characters exceeded