BTEs – Business Transaction Events

Business Transaction Events (BTEs) have been available as of Release 4.0 and are another technique for implementing program exits, and only program exits.

BTEs are generally found in the general ledger accounting (FI-GL), account receivable and payable (FI-AR and FI-AP) and sales and distribution components.

A BTE has a predefined interface and allows you to attach additional functionality in the form of a service funtion module.You must create funtion module with the parameters you have previously dictated. The BTE is called by the SAP standard program by a call to function OPEN_FI_PERFORM_ or OUTBOUND_CALL_. This function checks if there are any active BTEs according to customizing.

articulobte1.JPG

According to its Interface there are 2 types of BTEs:

Publish & Subscribe interfaces. Can not update data. Possible to have multiple implementations

Process interfaces. Can update date. Only one active implementation

How to find a BTE (2 ways)

  • Search the source code for for “OPEN_FI_PERFORM” og ” OUTBOUND_CALL_”
  • Use transaction FIBF menu Environment->Info System (P/S ). Use the Documentation button to see the documentation for the BTE.

ArticuloBte2.JPG

Implementing the BTE

  • Goto transaction FIBF menu Environment->Info System (P/S )
  • Select the BTE you want to implement. (as below)

  • Double click on Sample function module 

  • Then we copy the sample function module to a Z-function module (First create a new function group for the function module) .

        Note: The name of the Z-function module is not important

  • Edit the code in the new function module:

  • Go back to transaction FIBF – Menu Settings->Products -> Of a customer and create a new product which identifies the new product .

        Remember to mark the Active field.

  • We enter the product name description and RFC destination if applicable. The check box A is to activate the product.
  • The next step is to link the function module and the event using the product created. Go back to FIBF menu Settings->P/S function modules->of a customer – Create an entry that links the BTE and Product with the new function module (as below)

articulobte1.JPG

  • And that´s all, we only need to save and activate. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ChampaignWolf

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值