BTE (Business Transaction Events ) : BTE is one of the enhancement technique available in SAP that can be used by SAP,third party vendor(partner) and customer.
BTE's are generally found in Financial Accounting module (FI-AP,FI-AR,FI-GL) but also available in APO,CRM,IS.
BTE is called by a SAP program by a call to function OPEN_FI_PERFORM_<number> or OUTBOUND_CALL_<number>.
It has a predefined interface that allows you to attach additional functionality in the form of a service function module.
Two types of interfaces are available for implementing BTE's :
1)Publish and Subscribe interface
2)Process interface
Publish and Subscribe interface:
These interfaces inform external software that certain events have taken place in an SAP standard application and provide them with the data produced. The external software returns no data to the SAP Standard System.They do not influence the standard R/3 program in any way.
Process interface :
These interfaces are used to control a business process differently than the way in which it is handled in the standard R/3 System. They intervene in the standard process, and return data to the SAP application.
Finding and Implementing BTE's :
The corresponding BTE for a transaction can be found using the function module BF_FUNCTIONS_FIND.
Put a break-point in this FM and execute the required transaction
The value of the BTE associated with a particular transaction can be found in variable I_EVENT .
For implementation
1) goto t-code FIBF.
2) In the menu bar Environment-->Infosystem(Processes)-->execute
BTE's are generally found in Financial Accounting module (FI-AP,FI-AR,FI-GL) but also available in APO,CRM,IS.
BTE is called by a SAP program by a call to function OPEN_FI_PERFORM_<number> or OUTBOUND_CALL_<number>.
It has a predefined interface that allows you to attach additional functionality in the form of a service function module.
Two types of interfaces are available for implementing BTE's :
1)Publish and Subscribe interface
2)Process interface
Publish and Subscribe interface:
These interfaces inform external software that certain events have taken place in an SAP standard application and provide them with the data produced. The external software returns no data to the SAP Standard System.They do not influence the standard R/3 program in any way.
Process interface :
These interfaces are used to control a business process differently than the way in which it is handled in the standard R/3 System. They intervene in the standard process, and return data to the SAP application.
Finding and Implementing BTE's :
The corresponding BTE for a transaction can be found using the function module BF_FUNCTIONS_FIND.
Put a break-point in this FM and execute the required transaction
The value of the BTE associated with a particular transaction can be found in variable I_EVENT .
For implementation
1) goto t-code FIBF.
2) In the menu bar Environment-->Infosystem(Processes)-->execute
It will show a list of BTE process numbers . You can read the documentation for a better understanding of the particular BTE
Place the cursor on the identified BTE process number,click on the sample function module and copy it into a Z FM and write your own functionality.
3) In the menu bar
Place the cursor on the identified BTE process number,click on the sample function module and copy it into a Z FM and write your own functionality.
3) In the menu bar
Create a new entry and enter the product name description and RFC destination if applicable.
Check the Activate Custom product (A) indicator check-box.The OPEN_FI function module for a certain customer enhancement cannot find the corresponding customer function module until this indicator is checked.
4) Now link the BTE process number,product created and the Z FM created by creating an entry in the below path.
menu bar Settings->Process Modules -> of a customer ->
Useful Transactions related to BTE's :
BERE Business Event Repository
BERP Business Processes
BF31 Application modules per Event
BF32 Partner Modules per Event
BF34 Customer Modules per Event
BF41 Application Modules per Process
BF42 Partner Modules per Process
BF44 Customer Modules per Process
Check the Activate Custom product (A) indicator check-box.The OPEN_FI function module for a certain customer enhancement cannot find the corresponding customer function module until this indicator is checked.
4) Now link the BTE process number,product created and the Z FM created by creating an entry in the below path.
menu bar Settings->Process Modules -> of a customer ->
Useful Transactions related to BTE's :
BERE Business Event Repository
BERP Business Processes
BF31 Application modules per Event
BF32 Partner Modules per Event
BF34 Customer Modules per Event
BF41 Application Modules per Process
BF42 Partner Modules per Process
BF44 Customer Modules per Process