hello sap ehp7 !!

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 …

Upload: sapyard

Post on 14-Apr-2017

328 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Hello SAP Ehp7 !!

8/18/2015 Hello SAP EhP7 !! | SAP Yard

http://www.sapyard.com/hellosapehp7/ 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 7for SAP ERP 6.0 contains more than 750 businessfunctions. The key new features are SAP Fiori, MRPruns, and data aging objects. EhP7 is the firstenhancement package to be optimized for both the SAPHANA database and the traditional certifieddatabases.

As a hardcore ABAP developer, I was curious to know,how is an ABAPer affected by this upgrade 7.4. Afterexploring the system and going through the saprelease documents, I have tried to jot down thechanges which ABAPers like me would be interested

Enter email

Subscribe

RECENT POSTS

Simple SAP Security BreachPlaying Sherlock Holmes todetect CONVT_CODEPAGEruntime error mysteryDELETING rows of theinternal table within theLOOP. Is it a Taboo? A bigNO NO?

SAP YARDYOUR 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 Yard173 likes

Liked

SEARCH …

Page 2: Hello SAP Ehp7 !!

8/18/2015 Hello SAP EhP7 !! | SAP Yard

http://www.sapyard.com/hellosapehp7/ 2/4

in.

And NEW and VALUE Operators are the first featuresin EhP7 which the ABAPer would be using regularly.

NEW – Instance Operatori)   NEW – Initial Value for All Typesii)  NEW – Single Value for All Data Typesiii) NEW – Structuresiv) NEW – Internal Tablesv)  NEW – Classes

VALUE – Value Operatori)   VALUE – Initial Value for All Typesii)  VALUE – Structuresiii) VALUE – Internal Tables

In this post, I would like to show some usage of NEWOperators for Initial Value for All Types.

Please note NEW <TYPE>( ) is the syntax to instantiateany object.

Quick Reference for VistexTechnicalOffshore DevelopmentModel in 10 Steps

 * Type declarationTYPES: BEGIN OF ty_marc,          matnr TYPE matnr,          werks TYPE werks_d,       END OF ty_marc. * Type Ref ToDATA 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.

Page 3: Hello SAP Ehp7 !!

8/18/2015 Hello SAP EhP7 !! | SAP Yard

http://www.sapyard.com/hellosapehp7/ 3/4

BE THE FIRST TO COMMENT ON "HELLO SAP EHP7 !!"

Please note NEW # ( ). When “#” succeeds NEW, itmeans the object ref in the Left Hand Side determinesthe type.

This is a small post to make you aware of the newsyntax. Both above constructor expressions have thesame function. I will post more on NEW and VALUEoperators in subsequent posts.

If you are already in EPH7, you might like to checksome excellent posts by Naimesh on EHP740 withexamples of OOPs.

Oops!! Before I sign off, are you wondering how theoutput would look like.. .. Nothing new. Output issame as before EhP7.. No upgrade in output display..

Please check our next post NEW Operators – SingleValue 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.

Page 4: Hello SAP Ehp7 !!

8/18/2015 Hello SAP EhP7 !! | SAP Yard

http://www.sapyard.com/hellosapehp7/ 4/4

Leave a commentLogged in as SAP Yard. Log out?

Comment

Post Comment

COPYRIGHT 2015 | SAPYARD BY WWW.SAPYARD.COMALL PRODUCT NAMES ARE TRADEMARKS OF THEIR RESPECTIVE COMPANIES. SAPYARD.COM IS NOT AFFILIATED TO SAP AG.