• 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