理解SAP的Enhancement Framework

Enhancement Framework的目的:在不改变(或尽量少改变)SAP标准程序的情况下满足客户的定制开发需求。Keep less Modification.

Enhancement Framework的基本概念:

Ehancement Spot: 用来组织Enhancement options,it's a container of Enhancement options.

Enhancement Implementation:用来组织Enhancement options的实现代码。

Implicit and Explict Enhancement:隐式和显式增强

隐式增强就是系统内置的Enhancement options,有一点AOP的味道,但只能针对单个对象。Implicit enhancements comprise class enhancements, function group enhancements and predefined enhancement points at particular predefined positions such as the end of a report, a function module, an include or a structure and the beginning and the end of a method.

显式增强就是我们人工加入到程序中的Enhancement options,有两种显式增强:

ENHANCEMENT-POINT ,用来插入新的功能代码

Defines a position in an ABAP program as an enhancement option, at which one or more source code plug-ins can be inserted.

ENHANCEMENT-SECTION ,用例替换原有的功能代码

Defines a section of an ABAP program as an enhancement option, which can can be replaced by one or more source code plug-ins.

增强的类型(按实现技术):

Class Enhancements

Function group Enhancements

Source code Enhancements

BAdI

详细的信息可以查看SDN的wiki:Copy of The new Enhancement Framework and the new kernel-based BAdI

Comments are closed.