Posts

Showing posts from May, 2023

Get system context information using CL_ABAP_CONTEXT_INFO

 As part of the Useful Libraries  series, I am talking about a new class which allows accessing system runtime information like time, date,user, and language. As an ABAP developer, you often need to determine the user, date or time to fulfil certain business or technical requirements. For which we rely on SY/SYST structures. In its push towards cloud adaptation and decreasing reliance on a run-time-filled global structure( SY/SYST ), sap introduced the CL_ABAP_CONTEXT_INFO class to achieve the same. Here is a ready-to-run console output class showing how to use it, just copy and paste the class and hit F9. As always, Hope it helps you in your day-to-day work.