BTE增强记录会计凭证更改

BTE增强记录会计凭证更改

Requirements: Need to update custom table field when changes made on FI Document number.

We can use the BTE(Business Transaction Events) to capture changes made on a particular FI Doc. Please follow these steps.

1) Execute Tx FIBF. Click on Menu-Evironment.

BTE增强记录会计凭证更改

2). Select “Info system(P/S)”.

BTE增强记录会计凭证更改

3). On the Publish & Subscribe Interfaces, just press the execute button.

BTE增强记录会计凭证更改

4). Upon executing, it will list all existing P&S BTE. From the list, we will going to use the 00001110 – CHANGE DOCUMENT. This BTE will be fired up once the SAVE button is clicked. Double click the CHANGE DOCUMENT.

BTE增强记录会计凭证更改

5). On the Interface Detail, click on the Sample function module button.

BTE增强记录会计凭证更改

6). It will proceed to Transaction Function Builder.

BTE增强记录会计凭证更改

7). Copy the function module to custom function.

BTE增强记录会计凭证更改

8). Select function group.

BTE增强记录会计凭证更改

9). On the function module source code, we could see the interface IMPORTING and the TABLES.

BTE增强记录会计凭证更改

10). See sample codes to update custom table sgtext. From the interface parameters, you can do any logic or whatever requirements.

BTE增强记录会计凭证更改

11). After implementing your logic, save and activate the custom function module then return to FIBF main screen. Click on Settings->Products->…of a customer.

BTE增强记录会计凭证更改

12).  On the Change View, here we have to add the newly created function module. Click New Entries button.

BTE增强记录会计凭证更改

13). On the New Entries, type in “ZBTE_T01” as our sampe Product under Product column and our custom function module which is “ztest_interface_00001110”.

BTE增强记录会计凭证更改

14). Click the Active checkbox column and then save.

BTE增强记录会计凭证更改

15). Once saved, click the BACK button to return to FIBF main screen. Again, select Settings -> P/S Function Modules -> …of a customer.

BTE增强记录会计凭证更改

16). On the “Publish&Subscribe BTE: Customer Enhancement”. We need to add new entries. Click on the New Entries button.

BTE增强记录会计凭证更改

17).  On the Event column, type in the interface event which is “00001110”.

BTE增强记录会计凭证更改

18). On the Product column type in our newly created products which is ZBTE_T01 or you can select it from the list box.

BTE增强记录会计凭证更改

19). Type in the function module “ZTEST_INTERFACE_00001110”. Click SAVE.

BTE增强记录会计凭证更改

20). Now that the BTE already created, we have to test it if it works perfectly. Execute Tx FB02 OR FB03.

BTE增强记录会计凭证更改

21). On the Document Overview, we are going to change the LONG TEXT/SGTEXT of line item # 5.

BTE增强记录会计凭证更改

22). Double click line item # 5 and type anything on the text field and then click SAVE button.

BTE增强记录会计凭证更改

23). After clicking SAVE button, our sample BTE will be triggered and a Popup message informing custom table has been updated.

BTE增强记录会计凭证更改

24). Additional example informing user that the field Long text of the custome table has been updated.

BTE增强记录会计凭证更改

That’s all folks. Thank you.

From <https://www.linkedin.com/pulse/sapabapusing-bte-fb02fb03-reflect-changes-made-fi-table-buenavista>

本文作者: GavinDong

版权属于: GavinDong博客

文章链接: https://www.gavindong.com/3055.html

如果使用过程中遇到问题,可 **点击此处** 交流沟通。

版权所有,转载时必须以链接形式注明作者和原始出处及本声明。

(0)

相关文章

  • VF01 and VF11 enhancements V60A0001 RV60AFZC

    通过调整SAP预制的标准增强点(V60A0001)实现禁止跨月发票冲销需求,V60A0001的触发点是用户敲下VF01或者VF11那一刻、但是还未填充Billing值前的操作。 通…

    2018.02.12
    4.2K20
  • SAP销售订单行项目利润中心确定

    在SAP中录入销售订单时,行项目中的利润中心按照先找替代、找不到再取物料主数据的优先级获得值。替代可通过SAP销售订单利润中心替代实现或者在MV45AFZZ增强的USEREXIT_…

    2021.12.01
    1.6K00
  • [转]SAP User Exit查找工具

     

    2017.05.16
    2.0K00
  • FBL3N和FAGLL03添加额外字段

    往会计凭证行项目fbl3n、fagll03添加BKPF或者BSEG表里有的科目,直接在后台配置之后,前台查询结果的布局中放出字段即可。 如果是BKPF和BSEG没有的字段,需要BT…

    2022.06.30
    31300
  • SAP VL02N 交货单增强

    SAP VL02N交货单修改、发货增强可以在User-Exit出口MV50AFZ1或BADI增强点LE_SHP_DELIVERY_PROC中实现,本案例在MV50AFZ1中做增强实…

    2021.11.11
    1.6K00
  • [转载]SAP 增强

    SAP 中如何寻找增强 方法一、利用TCODE寻找增强(第二代的增强) 执行一个程序(源代码后附),在选择屏幕处输入你所需要增强的程序TCODE,执行後,就会出现一个列表,那里就有…

    2017.05.08
    2.1K00
  • BAPI_ACC_DOCUMENT_POST生成预制凭证增强

    1、找该BAPI增强出口ACC_DOCUMENT(SE24跟踪); 2、SE19对BADI实例化

    3、自定义程序调…

    2017.05.01
    3.9K00
  • VF04待开发票清单字段增强

    VF04待开发票清单字段增强,可以通过事务代码SMOD对V60P0001的函数EXIT_SAPLV60P_008做增强,要增强的自定义字段APPEND到结构VKDFIF,并在EXI…

    2021.11.02
    1.1K00
  • SAP发票拆分增强

    首先,定义销售凭证抬头。里面选择对应的销售订单是与开票相关还是交货相关;然后,事务代码VOFM中定义Billing拆分的Routine。一般可以拷贝一个标准的并以9开头(菜单-数据…

    2017.05.15
    4.1K20
  • BTE的两种接口类型(检查、更改数据)

    BTE接口类型及应用范围 事物代码:FIBF ●   Publish and Subscribe Interface(P/S接口) 用于告诉外部软件在SAP标准应用中触发了某些事件…

    2019.04.30
    1.7K20

发表评论

登录后才能评论
email