By Shaik Sajid, Selligence Technologies Example Scenario: When we run FBL5N, we need to have additional columns (Custom Fields) Billing Plant and Description.
Now for the above requirement, we need to do following in FIBF tcode (BTE).
Select the appropriate event which gets triggered during the execution of the tcode FBL5N.
Against the Event assign the Product name which was created above and assign a function module name (the procedure to create the correct function module can be found at this linkhttp://www.saptechnical.com/Tutorials/Others/BTE/Page1.htm )
In FBL5N, we need to have two additional columns, Billing plant and Description. For this we need to append a structure with two fields in RFPOS structure and RFPOSX structure.
Select YES
TEST:
Click on execute. Look for the appropriate event that fulfills our requirement.
Double click on the corresponding BTE. Click on the Sample Function module.
Copy the interface into the custom function module (z*). The desired logic is coded in the custom function module. The interface of the function module should never be changed.
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.
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.
Upon save, the BTE associated with the event will be triggered.
Apply a break point in the function module associated with the event to check the triggering.