The BAPI Gateway Component (BC-FES-AIT) 
Purpose
The BAPI Gateway component allows you to call BAPIs (which are methods of SAP business objects) and RFC function modules dynamically. This means that at design time you do not have to know which BAPIs or function modules you are going to call at run time.
Integration
Using the Repository Services to Obtain Metadata
Since you do not know which BAPIs or function modules you are going to call at run time, you also do not know the metadata of those BAPIs or function modules. For example, you do not know which BAPIs exist for a business object you wish to use, and for each of the BAPIs you may call in that business object you do not know what their parameters are, and what is the data type of each of the parameters. You can use the Repository Services component in conjunction with the BAPI Gateway to get this metadata at run time.
Architecture
Internally, the BAPI Gateway component uses the following related products:

Implementation Considerations
The BAPI Gateway can be used by DCOM-compliant programs, such as those written in Visual Basic, Java, C++, and so on.