Question: what is the difference between bapi and badi?
Answer: BAPI - It is nothing, but a FM which is used to load the data into SAP system. The data may be from the Legacy system. BADI - They are the enhancement which can be applied to the standard SAP program as per the business requirement. BADI are the newer version of user exits which uses ABAP OOPs concept.