How To find a BTE (Business Transaction Event) - Technical way

+ -

Hi Techies,

 

As we all know SAP has different ways of ADAPTING, SWITCHING and ENHANCING. I already explained with the document how to find a BADI in the easiest way in the below mentioned document, however it is for ABAPers.

http://scn.sap.com/docs/DOC-33611

 

In this document I am more explaining about how to find a BTE (Business Transaction Event) for the relevant transaction for Technical Consultants in a easy way as well. There are lot of documents and SCN posts on finding BTEs for example in a well explained blog as mentioned below.

 

However by this way you might take longer to reach the right one and this is purely technical way to find one in just one shot.

http://scn.sap.com/community/erp/financials/blog/2014/05/13/how-to-search-bte

 

 

To find a BTE is to use a breakpoint and to execute the business transaction that you're trying to find the BTEs for.

 

Overview

There are two function modules that can be used to find the BTE.

Step 1:

For Process BTE use function module PC_FUNCTION_FIND.


11.png

 

For Publish and Subscribe BTE use function module BF_FUNCTIONS_READ.


10.png

 

Set breakpoints in these two function modules and then execute the transaction where you need to find a BTE. Using the Display Account Transaction code.

 

To explain this a bit easier, I am using a simple transaction BCA_CN_ACCT_03, this transaction is related to Financial Services (SAP Banking Services) module. However you can use the same way which ever the transaction you would like to find the corresponding BTEs available.

 

Step 2: Display the transaction to which you want to find the BTE.

 

9.png

Before you hit enter after inputting in the initial screen, please make sure that your break points are active as explained in the overview.

Now hit enter or display the transaction.

 

Step 3: The debugger kicks off and stops at exactly where the BTE is available as show in the below screen shot.

 

12.png

 

These are some examples of BTEs triggered on account display, in the parameter T_FM_CUS, you can find the BTE Event and the corresponding implementations if there are any as show in the below screen shot.

 

14.png

 

You can also see the corresponding Business Process Interfaces in the parameter I_PROCS (Table level TPS01 and field PROCS) as shown in the below mentioned screen shot.

 

13.png

Now go to SE16 and see the exact process as shown in the screen shot above which is 0BCA1300

 

15.png

Hope this document helps all the technical consultants to find the right BTEs in their process of search.

 

I wrote another document for finding BTEs related to Financial Services - Banking Services. Please do look at that document as well link is attached below.

http://scn.sap.com/docs/DOC-65308

 

Please do comment and rate for your queries and opinions.

 

Best Regards,

Bhargav