Implicit Enhancement in Custom Programs

 

  • SAP standard programs are very critical and a little mistake can cause the loss of very critical data to the company.
  • So, It is always advisable not to perform any enhancement in SAP programs for the practice, purpose.
  • So, IF you want to practice implicit enhancement, It will be better if you do it in a custom program for the same purpose.

Steps :-

  • Step 1 :- Create any executable program and treat it as a SAP program.



    • Suppose, we have this simple program above in which I am simply displaying using a write statement.
    • Now, Suppose I want to display one text also,
  • Step 2 :- Since, we are treating this program as a SAP standard program, so we will not make changes directly and we will use enhancement for the same purpose.

  • Step 3 :- Click on edit button → enhancement operations → show implicit enhancement options.



  • Step 4 :- Click on the implicit point and click on enhance button.

  • Step 5 :- Right click on the implicit point → enhancement operations → create implementation.





  • Step 6 :- Write the name of the enhancement and provide the description.




Code :-

*&---------------------------------------------------------------------*
*& Report ZAR_IMPLCT_ENHANCEMENT
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT ZAR_IMPLCT_ENHANCEMENT.

DATA : lv_display type string.
lv_display = 'Welcome to ABAP Programming'.
WRITE :/ lv_display.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\\SE:(1) Include ZAR_IMPLCT_ENHANCEMENT, End                                                                                                               S
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 2  ZAR_IMPLICIT_03.    "active version
*
  lv_display = 'You will learn it easily'.
  WRITE :/ lv_display.

ENDENHANCEMENT.
*$*$-End:   (1)---------------------------------------------------------------------------------$*$*

  • Execute the Code.



Comments

Popular posts from this blog

Understanding Different Types of SAP Function Modules: Normal, RFC, and Update

Unlocking SAP ABAP Secrets: Interactive Classical Reports with GET CURSOR, At User Command, and a Comparison of HIDE Statements

Mastering ABAP: A Step-by-Step Guide to Function Modules and Groups for Modularized Programming