top of page
blank.png
Search

ABAP tricks #25/100: 😀 NEW instance operator

  • Writer: Smart Logic Academy
    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


ree

 
 
 

Recent Posts

See All

Comments


bottom of page