Skip to Content
0
Sep 19, 2023 at 01:55 PM

BAPI_TRANSACTION_COMMIT vs. BAPI SDK Commit in SAP iRPA

79 Views

Dear Experts,

Have any of you had the problem below with BAPI function calls?

Step1: the first call to create a document in DMS

Step2: the second call to add attributes to the document in DMS (previously created in step 1).

The issue: The second call "does not see" the created document in DMS.

I assume the problem is that Commit from the BAPI SDK makes an asynchronous call, while BAPI_TRANSACTION_COMMIT allows you to use the WAIT parameter to set synchronous mode. With WAIT set on, the run will be released only after the completion of the operation on the DB side (DMS) is confirmed.

And now a question for SAP iRPA / BPA experts ;-)

Is it possible to replace Commit from BAPI SDK by calling explicit RFC BAPI_TRANSACTION_COMMIT?