Bte - Fibf
Bte - Fibf
BTEs are similar to BADIs (Business Add-Ins) and as such, BTE performance is
equally as good. BADIs typically provide windows into existing processes to allow
modifications to be made to enhance SAP processes to fit an organization’s
requirements. The BTEs are positioned strategically in transactional processes to
allow enhancements to core SAP processes which will be supported with future SAP
releases.
Field Bank Account for Vendor (FK02) should not be allowed to be initial.
In tcode FINF (BTE) there is an event with number 00003000 (Bank Details Check)
BTE – When do we use them?
Typically, these are used when standard SAP processes and organizational process
requirements are not consistent.
To find if there are BTEs available for use, there are 2 ways of determining them.
- Check in transaction FIBF or in the SAP menu path: SAP Reference IMG ->
Financial Accounting -> Financial Accounting Global Settings -> Business
Transaction Events
- Open the main program of the transaction you are wanted to enhance and search
for character string “OPEN_FI_PERFORM” in the source code.
Go to transaction FIBF
Additional logic can be coded in the function module. Save and activate the function
module.
The next step is to create a Product that links the event with the function module.
Products are created in the same transaction FIBF.
Click on the “New Entries” button.
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. The path is shown below.
Click new entries and enter the event and the function module.
Testing the BTE. For our case go to transaction FK02, that changes the vendor
data.
Apply a break point in the function module associated with the event to check the
triggering.
>>>>>>>>>>>>>>>>>>>>>>>>>
Process BTEs are called at a fixed, predefined points during the standard SAP
program flow at which the system can process user defined/custom function
modules instead of the standard function module. The pre-conditions/rules for
calling up alternative processes are defined in the customization of BTEs in t-code
FIBF. There would be standard function module OPEN_FI function module assigned
by default by SAP. If there are no custom function modules assigned in FIBF,
standard function module is processed. Data and process flow of standard SAP can
be changed in BTE.
In the next popup, drill down to the process area you are looking for. The paths
displayed here are similar to SPRO path.
Select appropriate node. In this case it is DUNNING.
Path would come as shown below.
You can further restrict the search by entering other selection parameters which are
self-explanatory. Now execute the program.
Output would show the list of available BTEs for the given node. Most of the times,
description of the BTE says functionality.
Select appropriate BTE and use below tool bar options to explore further. We can
see the sample FM delivered by SAP, interface of the BTE, Documentation etc.
Custom FMs can be created with the same interface as of sample FM. One common
error seen while implementing the BTE is, custom FM interface may differ than
standard FM interface.
In this case, the process would go for dump. This is because, SAP determines the FM
name during run time (Dynamic call).
Similarly, search can be done based on other parameters like based on Business
object name, IMG nodes etc.