我知道当您在程序中调用 BAPI 来更改 SAP 系统中的数据时,您必须随后调用 BAPI_TRANSACTION_COMMIT 将更改写入数据库。
JCoFunctionTemplate functionTemplate = dest.getRepository().getFunctionTemplate("BAPI_FIXEDASSET_CHANGE");
JCoFunction ChangeFunction = functionTemplate.getFunction();
...//some code
ChangeFunction.execute(destination);
JCoFunctionTemplate functionTemplate = dest.getRepository().getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
JCoFunction commFunct = functionTemplate.getFunction();
commFunct.execute(destination);
我的问题是,BAPI_TRANSACTION_COMMIT 是否提交自上次提交以来的所有更改?还是只提交前一个事务?