Show TOC

Component documentationSAP JCo Interface Locate this document in the navigation structure

 

You can use the actions below to call a Business Application Programming Interface (BAPI) using the SAP Java Connector (SAP JCo) and control a session between SAP Manufacturing Integration and Intelligence (SAP MII) and SAP ERP Central Component (SAP ECC).

Note Note

You can use the SAP JCo Interface action for one function call. You can use the other SAP JCo Interface actions for multiple function calls during one session.

End of the note.

Integration

You can use BAPIs to integrate SAP MII with SAP ECC. BAPIs do not write directly to the database; they use a posting engine in the SAP system.

To call a BAPI to write data using the SAP J Co Interfaceactions, complete the following steps:

  1. To set up an exclusive connection to the SAP application, call the lockSession service.

  2. Execute the BAPI calls.

  3. Call the bapi:commit or pub.sap.bapi: rollbackservice.

To end the connection to the SAP application and clean up used resources, call the pub.sap.client: releaseSessionservice.