首先得明白BAPI_TRANSACTION_COMMIT这个BAPI的作用。它功劳很大,在SAP里面很多的BAPI直接调用是不会有结果的,因为需要COMMIT一下才能生效,比如生成资产编号的BAPI:BAPI_FIXEDASSET_CREATE1,如果对他直接在SE37中调用运行或者使用SE38调用它,虽然可以得到一个资产编号,但是在AS03里面查询,系统会很白痴得提示你:该资产编号...
因为在一个bapi成功执行后,需要调用 BAPI_TRANSACTION_COMMIT来提交所做得更改,那么这个提交操作要等待一定的时间,我们 调用的时候,通常 BAPI_TRANSACTION_COMMIT的WAIT参数是空的,那么就会导致commit work and wait不会执行,而是简单的 commit work操作,这样后续的BAPI可能需要上一个bapi所作操作的数据,而恰巧这些数据...
有些bapi后天执行不成功,但是debug 就可以成功,加 WAIT UP TO ** SECONDS. ——— 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。 原文链接:BAPI_TRANSACTION_COMMIT与COMMIT WORK区别_bapi commit-CSDN博客...
BAPI_TRANSACTION_COMMIT有个WAIT参数,它类似于更新数据库语句的COMMIT和COMMIT AND WAIT。当不对WAIT参数赋值或赋为空时COMMIT会异步执行,否则会同步执行。这样当有两个业务需要连续执行的时候,第二个业务依赖与第一个业务,那么第一个业务BAPI在调用之后其BAPI_TRANSACTION_COMMIT的WAIT参数应赋为‘X’,否则便不能...
BAPI_TRANSACTION_COMMIT with WAIT = 'X' inside a BADi nmirandaghn Participant 2014 Oct 21 4:11 PM 0 Kudos 7,192 SAP Managed Tags: ABAP Development Hi experts, what would be the effect of using the 'BAPI_TRANSACTION_COMMIT' with 'WAIT' parameter equals to 'X' inside ...
function1.SetValue("WAIT", "X"); RfcSessionManager.BeginContext(prd); function.Invoke(prd); //提交调用BAPI_FIXEDASSET_CREATE1 生成资产编号 function1.Invoke(prd); //提交调用BAPI_TRANSACTION_COMMIT 进行COMMIT一下 RfcSessionManager.EndContext(prd); ...
Name: BAPICommitWait Value true Pradeep You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in. Comment Comments (0) Ask a Question Type your question here...Recommendations BAPI_PO_CREATE1 2020 Sep 24 BAPI_PO_CRE...
call bapi_transaction_commit with wait = X. *** My queries: 1. Can BAPI_TRANSACTION_COMMIT commit all the successful createdassets simultaneously 2. Is it advisable to perform BAPI_TRANSACTION_COMMIT after each successfull _FIXEDASSET_CREATE or the above logic would work fine? If any record...
You can determine this behavior by using the Use wait parameter before calling BAPI commit parameter on the Configure Objects pane of the Adapter Connection wizard. The adapter relies on the transactionality setting of the message flow to determine whether to issue the commit call. BAPIs with ...
采购申请pr新增行 | pritemx = lt_pritemx extensionin = lt_exts . loop at lt_return into ls_return where type = 'E' or type = 'A'. exit. endloop. if sy-subrc ne 0. call function 'BAPI_TRANSACTION_COMMIT' exporting wait = 'X'. ...