Posts

Showing posts with the label FB02

SAP ABAP: Using BTE in FB02 or FB03 to reflect changes made on FI document to Custom table

Image
Requirements: Need to update custom table field when changes made on FI Document number. We can use the BTE(Business Transaction Events) to capture changes made on a particular FI Doc. Please follow these steps. 1) Execute Tx FIBF. Click on Menu-Evironment. 2). Select "Info system(P/S)".   3). On the Publish & Subscribe Interfaces, just press the execute button. 4). Upon executing, it will list all existing P&S BTE. From the list, we will going to use the 00001110 - CHANGE DOCUMENT. This BTE will be fired up once the SAVE button is clicked. Double click the CHANGE DOCUMENT. 5). On the Interface Detail, click on the Sample function module button. 6). It will proceed to Transaction Function Builder. 7). Copy the function module to custom function. 8). Select function group. 9). On the function module source code, we could see the interface IMPORTING and the TABLES. 10). See sample codes to update custom table sgtext. From the interfa