The BAPI Module implements the init(), terminate(), pollForEvents(), and doVerbFor() methods. However, the pollForEvents() method is not used because the BAPI Module supports request operations only.
The init() method opens an RFC connection with the SAP R/3 application through the SAP Gateway. If the connector fails to initialize, it terminates using the terminate() method. The connector terminates by disconnecting the connection to the SAP Gateway.
A single implementation of the doVerbFor() method in the vision connector framework's business object handler initiates all business object requests. The vision business object handler processes all of the business objects passed between the BAPI Module and the integration broker. In the BAPI Module, a BAPI-specific business object handler supports only one BAPI; therefore, for each supported BAPI in the SAP R/3 application, you must have an associated BAPI-specific business object handler.
The vision business object handler uses the verb application-specific information of a business object to invoke the appropriate BAPI-specific business object handler. The BAPI parameter names and formats are hard-coded in the BAPI-specific business object handler so that the business object handler can make an RFC call to the appropriate BAPI.
Figure 24 illustrates business object processing for the BAPI Module.
Figure 24. Business object processing for the BAPI Module
Once invoked by the vision business object handler, the BAPI-specific business object handler executes in the following manner:
The business object generation utility, SAPODA, generates business object definitions that support BAPIs. SAPODA interprets the interface of a BAPI, maps its parameters to the business object attributes, and adds the application-specific information for each attribute.
Also, for each WebSphere business object definition, you must generate an associated BAPI-specific business object handler using SAPODA. For more information on Developing business objects and BAPI-specific business object handlers, see "Developing business objects for the BAPI Module".