Hello everyone,
In this blog you will learn about Whats New in SAP Netweaver ABAP 7.4. There are many new features introduced in SAP Netweaver 7.4 and the ABAP stack is optimized for SAP HANA. SAP Netweaver 7.4 is minimum requirement to move to SAP Business Suite on HANA. With these new features introduced from SAP Netweaver 7.4 SAP HANA database in-memory computing can be leveraged at ABAP level. So, let look at these features, learn it and implement them.
Are you working on SAP Netweaver 7.40 ?
To answer this question, log on to your SAP system. In the menu bar navigate to System → Status. In the popup window, under SAP system data section click on display button under “Product Version” field. You can see list of installed software component versions like below
From list of installed software components, look for the Release version of SAP_BASIS and SAP_ABA components to check the SAP Netweaver version.
Below are list of main features among different sections
#Expressions, Functions, Operand Positions
Old Syntax
TYPES: BEGIN OF ty_mara, matnr TYPE matnr, ersda TYPE ersda, ernam TYPE ernam, laeda TYPE laeda, aenam TYPE aenam, END OF ty_mara. DATA: lt_mara TYPE STANDARD TABLE OF ty_mara, lv_name TYPE string. FIELD-SYMBOLS: <fs_mara> TYPE ty_mara. SELECT matnr ersda ernam laeda aenam FROM mara INTO TABLE lt_mara UP TO 10 ROWS. lv_name = 'Old declaration NW < 7.40'. LOOP AT lt_mara ASSIGNING <fs_mara>. WRITE: <fs_mara>-matnr,<fs_mara>-ernam. ENDLOOP.
New Syntax
TYPES: BEGIN OF ty_mara, matnr TYPE matnr, ersda TYPE ersda, ernam TYPE ernam, laeda TYPE laeda, aenam TYPE aenam, END OF ty_mara. DATA: lt_mara TYPE STANDARD TABLE OF ty_mara. SELECT matnr ersda ernam laeda aenam FROM mara INTO TABLE lt_mara UP TO 10 ROWS. DATA(lv_name) = 'New declaration NW >= 7.40'. "Inline declaration LOOP AT lt_mara ASSIGNING FIELD-SYMBOL(<fs_mara>). "Inline declaration WRITE: <fs_mara>-matnr,<fs_mara>-ernam. ENDLOOP.
- NEW creates object
- VALUE creates values
- REF get references
- EXACT perform a lossless assignment or calculation
- CONV convert values
- CAST performs an up cast or down cast
- COND and SWITCH enable conditional expression
Old Syntax
TYPES: BEGIN OF ty_old, f1 TYPE c, f2 TYPE c, f3 TYPE c, END OF ty_old. DATA: ls_old TYPE ty_old. ls_old-f1 = 'A'. ls_old-f2 = 'B'. ls_old-f3 = 'C'. WRITE: ls_old-f1,ls_old-f2,ls_old-f3.
New Syntax
TYPES: BEGIN OF ty_new, f1 TYPE c, f2 TYPE c, f3 TYPE c, END OF ty_new. * creating intial values using constructor expression - VALUE DATA(ls_new) = VALUE ty_new( f1 = 'A' f2 = 'B' f3 = 'C'). WRITE: ls_new-f1,ls_new-f2,ls_new-f3. * changing the initial values using '#' ls_new = VALUE #( f1 = 'X' f2 = 'Y' f3 = 'Z'). WRITE: ls_new-f1,ls_new-f2,ls_new-f3.
The post Whats New in SAP Netweaver ABAP 7.40 appeared first on SAP Fiori,SAP HANA,SAPUI5,SAP Netweaver Gateway Tutorials,Interview Questions|SAP Learners.