G-YWWN0NYSS1 Hello SAP EhP7 !! - TECHNICAL GYAN GURU Hello SAP EhP7 !! - TECHNICAL GYAN GURU

Hello SAP EhP7 !!

As per SAP news, SAP Upgrade Bundle 7 for SAP ERP 6.0 contains in excess of 750 business capabilities. The key new elements are SAP Fiori, MRP runs, and information maturing objects. SAP EhP7 is the main improvement bundle to be upgraded for both the SAP HANA data set and the conventional affirmed data sets.

As a no-nonsense ABAP engineer, I was interested to be aware, how is an ABAPer impacted by this overhaul 7.4. In the wake of investigating the framework and going through the sap discharge reports, I have attempted to write down the progressions which ABAPers like me would be keen on.

Also, NEW and Worth Administrators are the main elements in SAP EhP7 which the ABAPer would utilize routinely.

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.

* 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.

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

* 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.
* Displaying the fields as we used to do earlier
   WRITE:/ o_ref->*-matnr, o_ref->*-werks.
 ENDIF.

If it’s not too much trouble, note NEW # ( ). When “#” succeeds NEW, it implies the article ref in the Left Hand Side decides the sort.

This is a little post to make you mindful of the new linguistic structure. Both above constructor articulations have a similar capability. I will post more on NEW and Worth administrators in ensuing posts.

Uh oh!! Before I close down, are you considering the way that the result would seem to be.. .. The same old thing. Yield is same as before SAP EhP7.. No redesign in yield show..

If you liked it, please share it! Thanks!

YOU MAY BE INTERESTED IN

SAP PP Jobs: Unlocking Opportunities in PP

What is the demand for the SAP PP module?

SAP ABAP Interview Questions Real time Expectations

  • Related Posts

    A to Z of Custom Change Pointer

    In this record, I have endeavored to give reliably nuances expected to execute custom change pointers for the custom fields in the custom tables for custom message type and custom…

    IDoc Tips – Change Pointers and Reprocessing IDocs

    IDoc : Change Pointers and Reprocessing IDocs – Helpful Exchanges Going back over Fruitful IDocs once moreUtilizing BD87, we can’t re-process effective IDocs once more, yet here and there specific…

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You Missed

    A to Z of Custom Change Pointer

    • By Varad
    • May 31, 2025
    • 14 views
    A to Z of Custom Change Pointer

    IDoc Tips – Change Pointers and Reprocessing IDocs

    • By Varad
    • May 30, 2025
    • 27 views
    IDoc Tips – Change Pointers and Reprocessing IDocs

    Tool for GOS attachment from one SAP system to another SAP system

    • By Varad
    • May 29, 2025
    • 29 views
    Tool for GOS attachment from one SAP system to another SAP system

    Sample program to attach any file from application server to any Business Object

    • By Varad
    • May 28, 2025
    • 32 views
    Sample program to attach any file from application server to any Business Object

    Table to check whether a business object has any GOS attachment or not

    • By Varad
    • May 27, 2025
    • 75 views
    Table to check whether a business object has any GOS attachment or not

    SAP Cloud Platform Integration (CPI) Part 23 – Step-by-Step Guide to Mail Adapter Configuration with Attachments

    • By Varad
    • May 26, 2025
    • 50 views
    SAP Cloud Platform Integration (CPI) Part 23 – Step-by-Step Guide to Mail Adapter Configuration with Attachments