Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_TRANSACTION_COMMIT using JCO

Hi,

We are trying to connect to an SAP system and execute the BAPI. The BAPI_SALESORDER_CREATEFROMDAT2 does not return any error and is executed successfully. Immediately we are executing the COMMIT BAPI. Somehow it does not get committed to the database.

Here is the part of the code....

**************

JCO.Client system;

....

....

JCO.Function function = new JCO.Function(resp.getFunctionTemplate("BAPI_SALESORDER_CREATEFROMDAT2"));

....

system.execute(function);

JCO.Function BAPI_TRANSACTION_COMMIT = new JCO.Function(resp.getFunctionTemplate("BAPI_TRANSACTION_COMMIT"));//

system.execute(BAPI_TRANSACTION_COMMIT);

***************

Appreciate any help.

Regards

Pal

Not what you were looking for? View more on this topic or Ask a question