Monday, April 14, 2008

Master Business Function

A Master Business Function (MBF) processes data into/from Database through a series of events.Each MBF template contains one or all of the below functions.The main advantage of an MBF over a conventional BSFN is the readabilty and a standard in processing the data.MBF are of two types:
1]Transaction File Master Business Function.
2]Master File Master Business Function.
A Transaction File MBF usually maintains cache for Header and detail information in an application.This cache is used to store the intermediate before commiting to the database.Transaction File MBF is the widely used type of MBF.
Components of a Transaction MBF and their actions
Begin doc : This will be called when all header information has been entered.It loads the Header cache.
Edit Line : Called when a line information has been entered.Loads the Detail Cache,and accordingly to the operation updates it.
Edit Doc : Called when ready to commit the transaction.Validates the data inside the cache.
End Doc :Traverses through the Header and Detail cache and reflects the same into the database.
clear cache: called to delete all cache records.

No comments: