Skip to Content

UN-DATA command for local variables

Hello,

I try to follow the programming paradigm, that the lifespan of variables should be kept as short as possible. I miss an UNDATA-statement to kill a local variable after use. It should make code much better: After you are done, the variable is killed. The variable name hereby becomes available for reuse.

This looks so simple to realize. Why does it not exist? Note, that my focus is not on reducing memory, but to shorten the lifespan.

Any reply from the SAP ABAP-developers? Thank you in advance, / Ulrich

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 28, 2016 at 01:29 PM

    If I remember well, Horst Keller said a few weeks ago that it could soon arrive (7.52?)

    Add comment
    10|10000 characters needed characters exceeded