Search and display BTE documentation in BERE (Publish&Subscribe) and BERP (Process) you will see a sample FM that you have to copy. Then in FIBF create a product, and attach your copied FM to BTE and project. If project is active, FM will be called.
But here better use BAdI.
Regards,
Raymond