8/18/2015 Hello SAP EhP7 !! | SAP Yard
http://www.sapyard.com/hello­sap­ehp7/ 1/4
Hello SAP EhP7 !!
TOPICS: ABAP 740 NEW Operator
ABAP 740 VALUE Operator EHP7 Features
EHP7 FOR ABAP SAP ABAP EhP7 SAP EHP 7 For ABAP
POSTED BY: SAP YARD JUNE 20, 2015
According to SAP news, SAP Enhancement Package 7
for SAP ERP 6.0 contains more than 750 business
functions. The key new features are SAP Fiori, MRP
runs, and data aging objects. EhP7 is the first
enhancement package to be optimized for both the SAP
HANA database and the traditional certified
databases.
As a hardcore ABAP developer, I was curious to know,
how is an ABAPer affected by this upgrade 7.4. After
exploring the system and going through the sap
release documents, I have tried to jot down the
changes which ABAPers like me would be interested
Enter email
Subscribe
RECENT POSTS
Simple SAP Security Breach
Playing Sherlock Holmes to
detect CONVT_CODEPAGE
runtime error mystery
DELETING rows of the
internal table within the
LOOP. Is it a Taboo? A big
NO NO?
SAP YARD
YOUR BACKYARD FOR SAP TECHNICAL TIPS AND SOLUTIONS
HOME SEE ALL POSTS ASK YOUR QUESTIONS ABOUT ME CONTACT ME
You and 92 other friends like this
SAP Yard
173 likes
Liked
SEARCH …
8/18/2015 Hello SAP EhP7 !! | SAP Yard
http://www.sapyard.com/hello­sap­ehp7/ 2/4
in.
And NEW and VALUE Operators are the first features
in EhP7 which the ABAPer would be using regularly.
NEW – Instance Operator
i)   NEW – Initial Value for All Types
ii)  NEW – Single Value for All Data Types
iii) NEW – Structures
iv) NEW – Internal Tables
v)  NEW – Classes
VALUE – Value Operator
i)   VALUE – Initial Value for All Types
ii)  VALUE – Structures
iii) VALUE – Internal Tables
In this post, I would like to show some usage of NEW
Operators for Initial Value for All Types.
Please note NEW <TYPE>( ) is the syntax to instantiate
any object.
Quick Reference for Vistex
Technical
Offshore Development
Model in 10 Steps
 
* Type declaration
TYPES: BEGIN OF ty_marc,
          matnr TYPE matnr,
          werks TYPE werks_d,
       END OF ty_marc.
* Type Ref To
DATA o_ref  TYPE REF TO ty_marc.
 
* Example 1
* Instantiate the object
o_ref = NEW ty_marc( ).
* Usage demo
SELECT SINGLE matnr werks FROM marc INTO o_ref->*.
IF sy-subrc EQ 0.
* Displaying the fields as we used to do earlier
   WRITE:/ o_ref->*-matnr, o_ref->*-werks.
ENDIF.
 
* Example 2
* Instantiate the object using #
o_ref = NEW #( ).
* Usage demo
SELECT SINGLE matnr werks FROM marc INTO o_ref->*.
IF sy-subrc EQ 0.
8/18/2015 Hello SAP EhP7 !! | SAP Yard
http://www.sapyard.com/hello­sap­ehp7/ 3/4
BE THE FIRST TO COMMENT ON "HELLO SAP EHP7 !!"
Please note NEW # ( ). When “#” succeeds NEW, it
means the object ref in the Left Hand Side determines
the type.
This is a small post to make you aware of the new
syntax. Both above constructor expressions have the
same function. I will post more on NEW and VALUE
operators in subsequent posts.
If you are already in EPH7, you might like to check
some excellent posts by Naimesh on EHP740 with
examples of OOPs.
Oops!! Before I sign off, are you wondering how the
output would look like.. .. Nothing new. Output is
same as before EhP7.. No upgrade in output display..
Please check our next post NEW Operators – Single
Value for all Data Types.
If you want to get notification about the newest posts,
please subscribe. Your email is safe with us.
If you liked it, please share it! Thanks!
Image source: via Free Stock Photos foter.com
Previous post Next post 
* Displaying the fields as we used to do earlier
   WRITE:/ o_ref->*-matnr, o_ref->*-werks.
ENDIF.
8/18/2015 Hello SAP EhP7 !! | SAP Yard
http://www.sapyard.com/hello­sap­ehp7/ 4/4
Leave a comment
Logged in as SAP Yard. Log out?
Comment
Post Comment
COPYRIGHT 2015 | SAPYARD BY WWW.SAPYARD.COM
ALL PRODUCT NAMES ARE TRADEMARKS OF THEIR RESPECTIVE COMPANIES. SAPYARD.COM IS NOT AFFILIATED TO SAP AG.

Hello SAP Ehp7 !!

  • 1.
    8/18/2015 Hello SAP EhP7 !! | SAP Yard http://www.sapyard.com/hello­sap­ehp7/ 1/4 HelloSAP EhP7 !! TOPICS: ABAP 740 NEW Operator ABAP 740 VALUE Operator EHP7 Features EHP7 FOR ABAP SAP ABAP EhP7 SAP EHP 7 For ABAP POSTED BY: SAP YARD JUNE 20, 2015 According to SAP news, SAP Enhancement Package 7 for SAP ERP 6.0 contains more than 750 business functions. The key new features are SAP Fiori, MRP runs, and data aging objects. EhP7 is the first enhancement package to be optimized for both the SAP HANA database and the traditional certified databases. As a hardcore ABAP developer, I was curious to know, how is an ABAPer affected by this upgrade 7.4. After exploring the system and going through the sap release documents, I have tried to jot down the changes which ABAPers like me would be interested Enter email Subscribe RECENT POSTS Simple SAP Security Breach Playing Sherlock Holmes to detect CONVT_CODEPAGE runtime error mystery DELETING rows of the internal table within the LOOP. Is it a Taboo? A big NO NO? SAP YARD YOUR BACKYARD FOR SAP TECHNICAL TIPS AND SOLUTIONS HOME SEE ALL POSTS ASK YOUR QUESTIONS ABOUT ME CONTACT ME You and 92 other friends like this SAP Yard 173 likes Liked SEARCH …
  • 2.
    8/18/2015 Hello SAP EhP7 !! | SAP Yard http://www.sapyard.com/hello­sap­ehp7/ 2/4 in. AndNEW and VALUE Operators are the first features in EhP7 which the ABAPer would be using regularly. NEW – Instance Operator i)   NEW – Initial Value for All Types ii)  NEW – Single Value for All Data Types iii) NEW – Structures iv) NEW – Internal Tables v)  NEW – Classes VALUE – Value Operator i)   VALUE – Initial Value for All Types ii)  VALUE – Structures iii) VALUE – Internal Tables In this post, I would like to show some usage of NEW Operators for Initial Value for All Types. Please note NEW <TYPE>( ) is the syntax to instantiate any object. Quick Reference for Vistex Technical Offshore Development Model in 10 Steps   * Type declaration TYPES: BEGIN OF ty_marc,           matnr TYPE matnr,           werks TYPE werks_d,        END OF ty_marc. * Type Ref To DATA o_ref  TYPE REF TO ty_marc.   * Example 1 * Instantiate the object o_ref = NEW ty_marc( ). * Usage demo SELECT SINGLE matnr werks FROM marc INTO o_ref->*. IF sy-subrc EQ 0. * Displaying the fields as we used to do earlier    WRITE:/ o_ref->*-matnr, o_ref->*-werks. ENDIF.   * Example 2 * Instantiate the object using # o_ref = NEW #( ). * Usage demo SELECT SINGLE matnr werks FROM marc INTO o_ref->*. IF sy-subrc EQ 0.
  • 3.
    8/18/2015 Hello SAP EhP7 !! | SAP Yard http://www.sapyard.com/hello­sap­ehp7/ 3/4 BETHE FIRST TO COMMENT ON "HELLO SAP EHP7 !!" Please note NEW # ( ). When “#” succeeds NEW, it means the object ref in the Left Hand Side determines the type. This is a small post to make you aware of the new syntax. Both above constructor expressions have the same function. I will post more on NEW and VALUE operators in subsequent posts. If you are already in EPH7, you might like to check some excellent posts by Naimesh on EHP740 with examples of OOPs. Oops!! Before I sign off, are you wondering how the output would look like.. .. Nothing new. Output is same as before EhP7.. No upgrade in output display.. Please check our next post NEW Operators – Single Value for all Data Types. If you want to get notification about the newest posts, please subscribe. Your email is safe with us. If you liked it, please share it! Thanks! Image source: via Free Stock Photos foter.com Previous post Next post  * Displaying the fields as we used to do earlier    WRITE:/ o_ref->*-matnr, o_ref->*-werks. ENDIF.
  • 4.
    8/18/2015 Hello SAP EhP7 !! | SAP Yard http://www.sapyard.com/hello­sap­ehp7/ 4/4 Leavea comment Logged in as SAP Yard. Log out? Comment Post Comment COPYRIGHT 2015 | SAPYARD BY WWW.SAPYARD.COM ALL PRODUCT NAMES ARE TRADEMARKS OF THEIR RESPECTIVE COMPANIES. SAPYARD.COM IS NOT AFFILIATED TO SAP AG.