You are on page 1of 11

Business Consulting Services

New Features in ABAP 7.40

© Copyright IBM Corporation 2006


May, 2017 IBM Confidential IBM Corporation 2017
Evolution of ABAP Codelines
SAP User Interfaces: Evolution

Slide No: 2 IBM Corporation 2017


Inline Declarations

-- New declaration operator DATA(….)


-- New declration operator FIELD-SYMBOL(…)

Slide No: 3 IBM Corporation 2017


Constructor Expressions

The general syntax for constructor expressions is


OPERATOR type( … )

Instance Operator NEW


Value Operator VALUE -- VALUE dtype|#( )
Referrence Operator REF -- REF dtype|#( …. )
Conversino & Casting Operator CONV – CONV dtype |#(…) CAST CAST dtype|class|interface|#( … )
Lossless operator EXACT EXACT dtype|#( arith_exp )
Conditional operator COND COND dtype|#( WHEN log_exp1 THEN result1 
                [ WHEN log_exp2 THEN result2 ] 
                … [ ELSE resultn ] 
SWITCH SWITCH dtype|#( operand WHEN const1 THEN result1 
                  [ WHEN const2 THEN result2 ] 
                  … [ ELSE resultn ] )

Slide No: 4 IBM Corporation 2017


ABAP Oops & Table

 Functional method can have ‘Exporting’ & ‘Changing’ parameters.

 Table Expressions
 Index Access
wa = itab[ idx ].
Instead of - READ TABLE itab INDEX idx INTO wa.

 Free Acces
wa = itab[ col1 = … col2 = … ]
Instead of - READ TABLE itab WITH KEY col1 = … col2 = …  INTO wa.

 Key access using a table key


wa = itab[ KEY key col1 = … col2 = … ].
wa = itab[ KEY key COMPONENTS col1 = … col2 = … ].
Exception to catch CX_SY_ITAB_LINE_NOT_FOUND !!!

Slide No: 5 IBM Corporation 2017


Can we Write FIELD-SYMBOL = Itab [ 2 ] ?

What about Binary Search & Secondary Key ?

Slide No: 6 IBM Corporation 2017


How ABAP will coexist ?

 Access of a standalone SAP HANA from AS ABAP

 Using SAP HANA as the Database of an AS ABAP

Slide No: 7 IBM Corporation 2017


AS ABAP and SAP HANA

 Code Pushdown - Suitable parts of application logic can be transferred  from the application
server to SAP HANA.
 HANA Views , AMDP

 Explicit ‘ORDER BY’

Slide No: 8 IBM Corporation 2017


Slide No: 9 IBM Corporation 2017
Thanks!!

Slide No: 10 IBM Corporation 2017


Useful Links

ABAP Language News for Release 7.40:-


http://scn.sap.com/community/abap/blog/2013/07/22/abap-news-forrelease-740

ABAP Demo Programs:


ZMSR_NEW_SQL_01
ZMSR_NEW_SQL_02
ZMSR_NEW_SQL_03
ZMSR_NEW_SQL_04

Slide No: 11 IBM Corporation 2017

You might also like