Dear All,
is there a way to get notified before the current internal session ends? The use case:
There is a CLASS-DATA instance of a logging class, e.g. /scwm/cl_log. Now I would like to know that the internal session is about to end, so that the log data accumulated until now can be saved to the DB.
Within the internal session, there can be multiple COMMIT WORK inbetween, and I don't wand to create a separate log on every commit.
What I am looking for is more like addShutdownHook() in java, if you see an ABAP internal session as an equivalent to a java runtime. Something you can execute before everything is destroyed.