BTE增强

匿名 (未验证) 提交于 2019-12-02 23:34:01

转自https://www.cnblogs.com/Garfield/p/5313962.html

Enhancement(1)--BTEs

最近一个同事碰到一个FI的增强,要用BTEs实现,我也是第一次接触到这种增强,所以跟着他一起做了一下。写一个这方面的小节。

由于采用这种技术架构,SAP就使这些接口,分为Made by SAP, Made by SAP's Partner, Made by SAP's Customer,三方可以个取所需。
  1. T-code: FIBF 进入BTEs的界面
  2. Environment->Infosystem(Processes)->运行->Process 00001120->Sample function module, 然后复制这个function到自己的Z或Y程序中->编辑新复制的程序,加入自己的代码
  3. 回到FIFB界面,Settings->Products->...of customer->New Entries加入自己的product,并激活
  4. 回到FIFB界面,Settings->Process Modules->... of customer->新建主键是 00001120的Process,并将刚才建立的function module和product写到相应栏位。




Enhancement(2)--Dictionary Elements

对于透明表及结构的增强,主要两种。一种是Append Structure,还有一种就是Include形式。

当你做完增强后,如果想所加字段在SM30表维护中也出现,那么需要通过以下路径生成表维护程序:
SE11->进入相应表,并做完增强->Utilities->Table Maintenance Generator
Enhancement(3)--User Exits
User Exits是SAP第一代增强技术,其技术原理就是在程序中预先置放一个Form...EndForm的子程序,并在事物运行时Call这个Form。当 然,如果这个Form是空的,那么不执行任何操作,反之,执行相应的动作。User Exits的写法,和修改标准程序是一致的,要有向SAP申请Access Key才能对这些程序进行修改。与修改标程的区别在于,在SAP做升级的时候,User Exits会自动保留,标程的修改如果不做特殊处理,就会被覆盖。
例如:










下面来讲一下,如何找到此类出口:

例子:

User Exits In Sales Document Processing

使用说明:

Use this user exit to fill user-specific statistics update tables.

The user exit is called up by the FORM routine BELEG-SICHERN before the COMMIT command.

Note

If a standard field is changed, the field r185d-dataloss is set to X. The system queries this indicator at the beginning of the safety routine. This is why this indicator must also be set during the maintenance of user-specific tables that are also to be saved.

方法二

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!