You are on page 1of 12

BTE in SAP

(Business Transaction Events)

Heena Verma
Page 1 of 11
BTE in SAP
CONTENTS

Business Transaction Events (BTE) in SAP ......................................................................................... 2


Types of BTE ......................................................................................................................................... 2
Publish and Subscribe Interface ............................................................................................................ 2
Process Interface ................................................................................................................................... 2
Ways to Find Process and Subscribe Interface .................................................................................... 2
Ways to Find Process Interface............................................................................................................. 3
Steps to Implement a BTE ..................................................................................................................... 3
Identify the BTE. .................................................................................................................................... 4
Copy the Sample FM into a Z or Y function module. ............................................................................ 8
Write the code in the Z or Y function module.. ...................................................................................... 8
Create a product and activate the product. ........................................................................................... 9
Mapping the interface with the product and the function module. ...................................................... 10
Page 2 of 11
BTE in SAP

BUSINESS TRANSACTION EVENTS (BTE) IN SAP

Business Transaction Events (BTEs) in SAP ABAP provide a way to enhance standard SAP
functionality by providing additional custom functionality.

These events are typically found in the Financial Accounting (FI) module, including areas like
Accounts Payable (FI-AP), Accounts Receivable (FI-AR), and General Ledger (FI-GL).

TYPES OF BTE

1. Publish and Subscribe Interface


2. Process Interface

PUBLISH AND SUBSCRIBE INTERFACE

1. They are also known as Informing interfaces.


2. This interface does not update any application data.
3. It is used to add additional functions to the application. Example - E-Mail functionality,
sending data to external system etc.
4. They do not influence the standard procedure.
5. The custom function module which is attached to BTE does not have changing
parameters.

PROCESS INTERFACE

1. This interface is used to update the application data. For Example: -Using the default value
to a field while creating a Fl document.
2. They intervene in the standard process.
3. The custom function module which is attached to BTE has changing/exporting parameters.
Page 3 of 11
BTE in SAP

WAYS TO FIND PROCESS AND SUBSCRIBE INTERFACE

1. Search for the statement - OPEN_FI_PERFORM in the source code.


2. For Publish Subscribe interface the naming convention of the function module will be
OPEN_FI_PERFORM_<BTE NUMBER>_E.
3. Set the breakpoint in the function module: BF_FUNCTIONS_FIND
4. Go to transaction code FIBF.
5. Path Environment - Info System(P/S)

WAYS TO FIND PROCESS INTERFACE

1. Search for the statement - OPEN_FI_PERFORM in the source code. For process the
naming convention of the function module will be
OPEN_FI_PERFORM_<BTE_NUMBER>_P.
2. Set the breakpoint in the function module: PC_FUNCTION_FIND
3. Go to transaction code FIBF.
4. Path Environment - Infosystem (Processes)

STEPS TO IMPLEMENT A BTE

1. Identify the BTE.


2. Copy the sample interface function module into a Z or Y function module.
3. Write the code in the Z or Y function module.
4. Save and activate the function module.
5. Create a product and activate the product.
6. Map the publish and subscribe interface or process interface with the product and the function
module.
Page 4 of 11
BTE in SAP

IDENTIFY THE BTE.

1. Create a Breakpoint at FM: PC_FUNCTION_FIND to identify the BTE.


Page 5 of 11
BTE in SAP

Here we have found BTE: OPEN_FI_PERFORM_00001420_P.

Run T-code: FICF


Page 6 of 11
BTE in SAP
Page 7 of 11
BTE in SAP

Check for BTE Number here.

Select required BTE and Click on Pattern FM.


Page 8 of 11
BTE in SAP

COPY THE SAMPLE FM INTO A Z OR Y FUNCTION MODULE.

Copy the sample FM to Z or Y FM. (Create custom Function group first)

WRITE THE CODE IN THE Z OR Y FUNCTION MODULE.


Page 9 of 11
BTE in SAP

CREATE A PRODUCT AND ACTIVATE THE PRODUCT.

Go to FIBF T-Code and follow below step s.


Page 10 of 11
BTE in SAP

MAPPING THE INTERFACE WITH THE PRODUCT AND THE FUNCTION MODULE.

Go to FIBF T-code and follow below steps.


Page 11 of 11
BTE in SAP

You might also like