Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618...

5
7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - … http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 1/5 9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel… http://wiki.scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 1/5 Getting Started Newsletters Store Search the Community  Welcome, Guest Login Register Products Services & Support About SCN Downloads Industries Training & Education Partnership Developer Center Lines of Business University Alliances Events & Webinars Innovation Wiki will be down on Monday, 28th of September, from 21:00 to 22:00 CEST due to server maintenance  ABAP Development / Enhancements and Modifications - BADI, Enhancement Framework, User Exits, BTE / The new Enhancement Framework and the new kernel-based BAdI Created by Harsh Dave, last modified on Jun 08, 2009 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 -  Academic Qualifications Enhancement Framework  Implicit Enhancement (Source Code Enhancement) Implicit Enhancement Option (Source Code Enhancement or Plug-ins) - Throughout the ABAP system, enhancement options are automatically available at certain pre-defined places. Some of the implicit options are: → At the end of all the programs (Includes, Reports, Function pool, Module pool, etc.), after the last statement → At the beginning and end of all FORM subroutines → At the end of all Function Modules → At the end of all visibility areas (public, protected and private) of local class → How to create an implicit enhancement? → Click on 'Enhance' button in SE38 and follow the link to show the predefined enhancements (Edit - Enhancement Operations - Show implicit enhancements). Now, right click the predefined desired place and cr eate the implementation. → Then create the implementation by processing the available dialog box. → Now add the desired coding or add the desired field to any structure and click on the 'Activate Enhancements'. → Enhancing a standard transaction program using implicit enhancement technique - Consider a scenario in the 'Human Resource' module, where in PA30 transaction for the info type '0618' which is ' Academic Qualifications'. Whenever an user sets the ' Subjects combination' using the radio buttons he/she must get the message of the choice selected in order to confirm his/her selections and default a set of ' Academic disciplines' based on customer combination values as enhancement to the standard process. The normal process would work in a standard manner that is, for the entered combinations of ' Academic Disciplines' - 'Academic discipline 1' and 'Academic discipline 2' and so on. Based on the combination of 'Subjects' that is 'Balanced' and 'Major/Minor ' combinations the records are saved. Observe the original functionality for disciplines ' H3' and 'H4' under 'Balanced' combination

description

Enhancement Framework - Implicit Enhancement

Transcript of Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618...

Page 1: Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - SCN Wiki

7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - …

http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 1/5

9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel…

http://wiki .scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 1/5

Getting Started Newsletters Store

Search the Community 

Welcome, Guest Login  Register 

Products Services & Support About SCN Downloads

Industries Training & Education Partnership Developer Center  

Lines of Business University Alliances Events & Webinars Innovation

Wiki will be down on Monday, 28th of September, from 21:00 to 22:00 CEST due to server maintenance

 ABAP Development   / Enhancements and Modifications - BADI, Enhancement Framework, User Exits, BTE

/ The new Enhancement Framework and the new kernel-based BAdI

Created by Harsh Dave, last modified on Jun 08, 2009

Enhancement Framework - ImplicitEnhancement - Enhancing standard transaction PA30 for infotype 0618 -

 Academic Qualifications

Enhancement Framework →  Implicit Enhancement (Source Code Enhancement)

Implicit Enhancement Option (Source Code Enhancement or Plug-ins) -

Throughout the ABAP system, enhancement options are automatically available at certain pre-defined places. Some of the implicit options are:

→ At the end of all the programs (Includes, Reports, Function pool, Module pool, etc.), after the last statement

→ At the beginning and end of all FORM subroutines

→ At the end of all Function Modules

→ At the end of all visibility areas (public, protected and private) of local class

→ How to create an implicit enhancement?

→ Click on 'Enhance' button in SE38 and follow the link to show the predefined enhancements (Edit - Enhancement Operations - Show implicit enhancements). Now, right click the predefined desired place

and cr eate the implementation.

→ Then create the implementation by processing the available dialog box.

→ Now add the desired coding or add the desired field to any structure and click on the 'Activate Enhancements'.

→ Enhancing a standard transaction program using implicit enhancement technique -

Consider a scenario in the 'Human Resource' module, where in PA30 transaction for the info type '0618' which is 'Academic Qualifications'.

Whenever an user sets the 'Subjects combination' using the radio buttons he/she must get the message of the choice selected in order to confirm his/her selections and default a set of ' Academic

disciplines' based on customer combination values as enhancement to the standard process.

The normal process would work in a standard manner that is, for the entered combinations of ' Academic Disciplines' - 'Academic discipline 1' and 'Academic discipline 2' and so on.

Based on the combination of 'Subjects' that is 'Balanced' and 'Major/Minor ' combinations the records are saved.

Observe the original functionality for disciplines 'H3' and 'H4' under 'Balanced' combination

Page 2: Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - SCN Wiki

7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - …

http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 2/5

9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel…

http://wiki .scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 2/5

If in future the any area of academic discipline can be changed as well as the combination of subjects like (say) ' Balanced' to 'Major/Minor '. Accordingly the records will be saved.

To enhance the standard functionality we go with some important steps,

Find the program name where we need to do the source code enhancement,

(Say) 'MP061800'.

Enter the program through 'SE38',

Locate the desired module which contains the main program code,

Page 3: Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - SCN Wiki

7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - …

http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 3/5

9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel…

http://wiki .scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 3/5

Now after locating the include drill into it and locate the place where these radio button actions are performed by maybe 'Debugging'.

 Activate the 'Enhancement Mode' (Spiral button) on the application toolbar.

 After locating the write place to place the enhancement, as us ual enable the 'Enhancement mode' and then 'Enhancement operations' → 'Show implicit enhancements'.

Then decide the best suitable place for an implicit enhancement for creating the enhancement,

Create an implementation at the predefined points or places and fill the dialog details

 Add the cus tom code r equired to enhance the standard business func tionality,

Page 4: Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - SCN Wiki

7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - …

http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 4/5

9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel…

http://wiki .scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 4/5

 Activate the enhancements

Now, the time has come to test the enhanced functionality of the PA30 transaction for any operation (maybe create new record, display data or change data) the enhanced functionality will trigger always,

→ Test case I - For subject combination already selected for 'Major/Minor ' combination and 'Academic disciplines' as 'H2' and 'H5' respectively.

Observe the message,

→ Test Case II - For subject combination changed to 'Balanced' combination and leaving the 'Academic disciplines' as it is.

Page 5: Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - SCN Wiki

7/17/2019 Enhancement Framework - Implicit Enhancement - Enhancing Standard Transaction PA30 for Infotype 0618 - Academic Qualifications - ABAP Development - …

http://slidepdf.com/reader/full/enhancement-framework-implicit-enhancement-enhancing-standard-transaction 5/5

9/28/2015 Enhancement Framework - Implicit Enhancement - Enhancing standard transaction PA30 for infotype 0618 - Academic Qualifications - ABAP Devel…

http://wiki .scn.sap.com/wiki/display/ABAP/Enhancement+Framework+- +Implici t+Enhancement+- +Enhancing+standard+transaction+PA30+for+ infotype… 5/5

Observe that the enhancement logic has once again triggered and the desired changes have come into effect.

The 'Academic disciplines' have changed to the 'H3' and 'H4' values respectively.

Observe the message,

 

enhancement framework implicit source code option plug-in plugin include report function pool module form subroutine

public protected private class academic qualification discipline subject combination balanced major minor h2 h3 h4 h5

standard mode predefined operation activate technique human resource pa30 0618

1 Comment

Guest

Thanks for such a useful post... was really helpful !

  Follow SCN

Contact Us   SAP Help Portal

Privacy   Terms of Use   Legal Disclosure   Copyright