Enhancement Framework 基本概念

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

 

Enhancement Framework的基本概念:

 

Ehancement Spot: 用来组织Enhancement optionsit'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-POINT Syntax:

ENHANCEMENT-POINT enh_id SPOTS spot1 spot2 ...

                   [STATIC]

                   [INCLUDE BOUND].

 

ENHANCEMENT-SECTION ,用例替换原有的功能代码,ENHANCEMENT-SECTION  END-ENHANCEMENT-SECTION.之间有代码, implementation 之后,替换旧代码,只执行新代码,原来的代码不再执行.

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

 

 

ENHANCEMENT-SECTION Syntax:

ENHANCEMENT-SECTION enh_id SPOTS spot1 spot2 ...

                     [STATIC]

                     [INCLUDE BOUND].

   ...

END-ENHANCEMENT-SECTION.

参考:http://lianxiangpanjin.blog.sohu.com/155815314.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值