6 Columns with Active Background
6 Columns with Active Background
Active List Item Background

24ENHANCEMENT1810 – Introduction Enhancement Spot and Types

An Enhancement Spot in SAP is a framework element that acts as a container for various enhancement options (such as BAdIs, explicit and implicit enhancements) without modifying the original SAP source code. It serves as a hook where additional custom functionality can be added in the form of enhancements. Enhancement spots ensure flexibility in adapting SAP standard applications to meet specific business requirements while maintaining upgrade safety.

Types of Enhancement Spots

Enhancement spots are mainly categorized into two types:

1. Implicit Enhancement Spots

  • Pre-defined by SAP: These spots are already present in the standard SAP code. SAP defines them at strategic locations where it expects customers might need to insert custom logic.
  • No coding required to declare: Since they are pre-defined by SAP, customers only need to insert custom code into these points.
  • Locations: Implicit enhancement spots are usually found at the start or end of a program, subroutine, method, function module, or between specific sections in a program.
  • Use Case: For minor customizations like adding extra logic to an existing report, modifying data before it is displayed, or performing checks before saving an entry in a standard transaction.

Example:

  • Adding extra validations before the creation of a purchase order without changing the standard transaction logic.

Common Places to Find Implicit Enhancement Spots:

  • End of forms, function modules, and methods.
  • Before and after standard SAP code sections.

2. Explicit Enhancement Spots

  • Defined explicitly by SAP or customers: These are manually created in the code by SAP or the customer where a custom enhancement may be required. Explicit enhancement spots are marked as such in the code, and customers can attach their own logic using these enhancement points.
  • Custom enhancements: You can create custom explicit enhancement spots in your own Z-programs or in SAP standard programs using the enhancement framework.
  • Locations: They are strategically defined within the standard SAP program, and developers must link an enhancement implementation to these points.
  • Use Case: For adding major changes or complex logic into existing processes, or when you need to perform significant customizations.

Example:

  • Implementing an explicit enhancement to add a completely new functionality to the material creation process (e.g., sending data to an external system during material creation).

Types of Explicit Enhancements:

  • Enhancement Points: These allow you to insert additional code without altering the surrounding logic. Code written within enhancement points executes at runtime along with the SAP code.
  • Enhancement Sections: These replace a predefined block of code in the standard system with custom logic. The standard code is skipped when an enhancement section is implemented.
  1. Business Add-In (BAdI) Enhancement Spots
  • BAdIs: Business Add-Ins are a type of enhancement that is based on object-oriented programming. They allow customers to implement their own logic through methods defined in interfaces.
  • Multiple implementations possible: BAdIs can have single or multiple implementations depending on their configuration (single-use or multiple-use).
  • Filter options: Some BAdIs come with filter options, where different implementations are selected based on filter criteria.

Example:

  • Adding custom pricing logic in sales orders using a BAdI that allows for dynamic price calculation based on custom rules.

Author : Aniket Pawar, 9373518385  

24ENHANCEMENT1810 – Introduction Enhancement Spot and Types

An Enhancement Spot in SAP is a framework element that acts as a container for various enhancement options (such as BAdIs, explicit and implicit enhancements) without modifying the original SAP source code. It serves as a hook where additional custom functionality can be added in the form of enhancements. Enhancement spots ensure flexibility in adapting SAP standard applications to meet specific business requirements while maintaining upgrade safety.

Types of Enhancement Spots

Enhancement spots are mainly categorized into two types:

1. Implicit Enhancement Spots

  • Pre-defined by SAP: These spots are already present in the standard SAP code. SAP defines them at strategic locations where it expects customers might need to insert custom logic.
  • No coding required to declare: Since they are pre-defined by SAP, customers only need to insert custom code into these points.
  • Locations: Implicit enhancement spots are usually found at the start or end of a program, subroutine, method, function module, or between specific sections in a program.
  • Use Case: For minor customizations like adding extra logic to an existing report, modifying data before it is displayed, or performing checks before saving an entry in a standard transaction.

Example:

  • Adding extra validations before the creation of a purchase order without changing the standard transaction logic.

Common Places to Find Implicit Enhancement Spots:

  • End of forms, function modules, and methods.
  • Before and after standard SAP code sections.

2. Explicit Enhancement Spots

  • Defined explicitly by SAP or customers: These are manually created in the code by SAP or the customer where a custom enhancement may be required. Explicit enhancement spots are marked as such in the code, and customers can attach their own logic using these enhancement points.
  • Custom enhancements: You can create custom explicit enhancement spots in your own Z-programs or in SAP standard programs using the enhancement framework.
  • Locations: They are strategically defined within the standard SAP program, and developers must link an enhancement implementation to these points.
  • Use Case: For adding major changes or complex logic into existing processes, or when you need to perform significant customizations.

Example:

  • Implementing an explicit enhancement to add a completely new functionality to the material creation process (e.g., sending data to an external system during material creation).

Types of Explicit Enhancements:

  • Enhancement Points: These allow you to insert additional code without altering the surrounding logic. Code written within enhancement points executes at runtime along with the SAP code.
  • Enhancement Sections: These replace a predefined block of code in the standard system with custom logic. The standard code is skipped when an enhancement section is implemented.
  1. Business Add-In (BAdI) Enhancement Spots
  • BAdIs: Business Add-Ins are a type of enhancement that is based on object-oriented programming. They allow customers to implement their own logic through methods defined in interfaces.
  • Multiple implementations possible: BAdIs can have single or multiple implementations depending on their configuration (single-use or multiple-use).
  • Filter options: Some BAdIs come with filter options, where different implementations are selected based on filter criteria.

Example:

  • Adding custom pricing logic in sales orders using a BAdI that allows for dynamic price calculation based on custom rules.

Author : Aniket Pawar, 9373518385