摘要:
转贴地址:http://jgtang82.iteye.com/blog/114737在SAP系统中 BAdI 相关类的 类图 如下:下面能过代码分析 BAdI 机制背后的一些设计问题:1. 定义指向BAdI interface的Reference DATA: exit_ref TYPE REF TO ZIF_EX_BADI.2. 获得继承BAdI interface的子类实例 CALL METHOD cl_exithandler=>get_instance CHANGING instance = exit_ref.这里的cl_exithandler=>get_instance方法是 阅读全文
摘要:
Filter DependentOverview如果实施一个特定功能的增强时,有时想想基于一些参数有不同的版本(e.g. 根据国家或者公司代码), 这时相同的一个BADI就需要生成多个不同版本的Implementation.在系统运行的时候,满足参数的特定Implementation会被执行这就需要filter dependent BADI那么怎样选择filter?Filter type必须是data element或者ABAP dictionary structure。Data element使用的domain的value table包含了implementation所需要的valid va 阅读全文