Skip to Content
Author's profile photo Santosh Vijayan

SAP TechEd BLR – CD263 – New ABAP Language Features

SAP TechEd Bangalore 2010 started today with the keynote by Vishal Sikka. One of the sessions on my Agenda was “New ABAP Language Features” which was a hands-on session. The crowd outside the session hall clearly indicated that this was one of the most sought after topics and the hall was full in no time.

 

The topics which were covered in the 4 hour session were

  1. Extended Expressions
  2. Internal Tables
  3. Exceptions
  4. Decimals Floating Point
  5. Streams and Locators
  6. Boxed Components

 

In this blog, I will just focus on the first three topics.

1. Extended Expressions

ABAP now can handle expressions like most of the other programming languages. You can use expressions now in decision statements (like the “IF” statement) and also in Control statements. Even though this is a cool feature, it also has its disadvantages as mentioned in the session. The programmer has to be very careful so as to not overuse this feature. For example, the same expression repeated multiple times does not make sense if the output is the same and could be stored in a variable and used. So we need to introduce sufficient programming guidelines to handle these cases.

Another interesting part is the way String handling has changed. Concatenating a string just got easier (‘&’) and also a whole lot of string manipulation can be done very easily with expressions like string_after, string_before, find and replace just to name a few. Again it is upto the programmer to use these powerful features responsibly.

This being a hands-on session, the example given for the participants to try out did not bring out the complete nature of extended expressions and the things you can do with them. Maybe a couple of more exercises would have added value here.

 

2. Internal Tables

This is one of the interesting topics which was discussed in the session (atleast according to me). Internal tables can have secondary keys now and this has a huge impact on the performance especially if you are working with internal tables which have a huge number of rows.

The secondary key can be added by using the syntax as follows –

DATA: it_table_name TYPE SORTED TABLE of table_name WITH UNIQUE KEY pri_key WITH NON-UNIQUE SORTED KEY sec_key COMPONENTS column_name.

 

For this topic, the exercises were pretty good (with focus on performance) and the debugging session by the presenter was of immense use.

 

3. Exceptions

This is another topic which I found very interesting. It is now possible to mark an Exception as resumable and processing can continue even after the exception is caught. The slide which was presented explaining the features were pretty descriptive of the features. The important ABAP statements related to the feature are –

RETRY

RAISE RESUMABLE EXCEPTION

CATCH BEFORE UNWIND

The statement CATCH BEFORE UNWIND especially adds a new twist to the whole flow of exception handling which I haven’t seen in most programming languages. I found this topic very interesting and it also has a lot of scope for use by developers.

 In general, the session was of use to me but I found this as a lecture session and not exactly a hads-on session because the amount of time spent on the laptop was considerably less. Maybe it would make sense to reduce the topics from six to three and focus more time on these three. Otherwise, it was a good session and a good start to TechEd Bangalore this year.

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member
      Good to know this
      Author's profile photo Sandra Rossi
      Sandra Rossi
      From which release or from which EHP is it about? (7.0 EHP ?, 7.1 ?, ...)
      Author's profile photo Former Member
      Former Member
      The language enhancement for internal table handling in ABAP is very usefull information.   Thank for your feedback.
      Author's profile photo Former Member
      Former Member
      Hi,

      Many thanks for sharing the great information.

      Please let us know the links where we can get the more information about all these topics.

      Praneeth

      Author's profile photo Former Member
      Former Member
      Hi,
      Very valuable information but the topic which you have just indicated is already shown in the Previous TechED i.e 2009. Just check the link in SDN
      http://www.sdn.sap.com/irj/scn/shop?rid=/media/uuid/50887a44-497f-2c10-79af-dbc76939b9b0

      Regards,
      Kapil

      Author's profile photo Former Member
      Former Member
      HI THANKS FOR POSTING.
      I WANT TO LEARN WEBDYNPRO CAN ANY ONE ASSIST ME.
      THANKS & REGARDS
      SHIVA
      Author's profile photo Clemens Li
      Clemens Li
      Thanks a lot for this abstract. It is quite interesting to compare Horst Keller's 2006 outlook to what has been achieved. At least the new features look exactly as planned.

      Don't know how to embed a link here, try...
      CD200 An Overview of the New Features in ABAP

      Thank you for the memory re-fresh.

      Clemens Li