This is a test message to test the length of the message box.
Login
ABAP Use new statements
Created by Software-Heroes

ABAP - Use new statements

311

With new ABAP, many new language constructs and expressions were introduced in ABAP. So why switch to this one when the old ones are more familiar?



With each new release since ABAP 7.40, new statements and language constructs are made available in ABAP, which bring the look and feel of the language towards Java. Most calls go in the direction of functional calls and further and further away from single-line commands. In today's article we want to bring the whole topic closer to you.

 

Change

Using and switching to the new commands is very similar to learning a new language, as there are a lot of new variants and statements and they all work a little differently. Here you have to make the first initial effort to use the new commands again and again. But here you have to take a little hurdle and you should have seen all the new commands and know that they exist.

To do this, we searched the Internet once and compared the new things and tried to classify what is replaced by which command or is simply completely new. Our little list was created:

 

There are also many commands that have simply been added without actually replacing anything. You can also find these in our list:

 

Performance

One of the most important aspects for using the new constructs, besides the functional use, is the better performance of the commands. ABAP is a language that has grown over decades and SAP has always ensured a very high level of stability and backward compatibility. This meant that old commands were no longer packaged and optimization within the kernel was more difficult because the risk was too great that old software would no longer work afterwards.

That is why the decision was made to introduce many new commands in ABAP, the performance of which was further optimized. This is one of the most important reasons to switch to the new statements.

 

Obsolete

Furthermore, you have to look with the next releases to see which other statements are slowly no longer supported. Even with a view to the cloud, many things no longer work as they would on an On-Premise system. With future developments it is important to see whether you want to continue to be cloud ready and to adapt the style and objects accordingly. We will go into more detail on the details of cloud development in future series on our blog.

 

Conclusion

You can find our overview of the new statements and what exactly they replace under the following link. The list is as complete as we got with our research. If you can think of something else or is missing from our list, just get in touch via our contact or the comments under the article.


Included topics:
New ABAPNew statementsABAP 7.40
Comments (0)



And further ...

Are you satisfied with the content of the article? We post new content in the ABAP area every Friday and irregularly in all other areas. Take a look at our tools and apps, we provide them free of charge.


ABAP - XCO Strings

Category - ABAP

In this article we look at the XCO class for generating and processing strings for ABAP Cloud and compare it with the classic statements.

11/22/2024

ABAP - XCO Libraries

Category - ABAP

What can you do with the library in ABAP and ABAP Cloud and how do you use the objects the best way? Find out more here.

11/12/2024

ABAP - Type Casting

Category - ABAP

How do you actually get the original type of a class or instance if it is passed in a generic table? In this article we examine the possibilities.

04/16/2024

ABAP - RETURN value

Category - ABAP

After all these years, the “real” return in ABAP has finally arrived. In this article we will show you how it works and what it can do.

02/13/2024

ABAP Deep Dive - FOR (Loops)

Category - ABAP

Let's take a closer look at the FOR loop. How does it work? What do I have to consider and what can I do with it?

04/14/2023