ABAP tricks #25/100: đ NEWÂ instance operator
- Smart Logic Academy
- Sep 1, 2024
- 1 min read
â˘Â Using the NEW instance operator, you can create a data object or instance of a class. As a result, you get a reference variable that points to the created object. Â
â˘Â The NEW operator replaces CREATE DATA and CREATE OBJECT.
â˘Â If an instance of a class is created successfully, the instance operator NEW sets sy-subrc to 0.Â
⢠The return code sy-subrc is not set when data objects are created.
Please share with your ABAP friends and follow us.
If you want to dive deeper, visit our course https://lnkd.in/d42HfjDh
Comments