Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_TRANSACTION_COMMIT asynchronous

Former Member
0 Likes
749

In a Z program i am using BAPI_ACC_DOCUMENT_POST, followed by BAPI_TRANSACTION_COMMIT asynchronously (without WAIT) to insert new documents. I would not use the parameter WAIT for performance problems.

The my questions are:

How can i see the name of the update process triggered by BAPI_TRANSACTION_COMMIT?

How can i follow to determine if the process is still active or has ended, if done well or with an error (that error?) And so on?

I would appreciate any suggestions that explains the control of the state of execution and "return code" of the "process update".

Thanks in advance,

Serena

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
678

How can i see the name of the update process triggered by BAPI_TRANSACTION_COMMIT?

How can i follow to determine if the process is still active or has ended, if done well or with an error (that error?) And so on?

You can maintain the Update Work Processes via [SM13|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de870535cd11d3acb00000e83539c3/content.htm].

There is a RETURN param in 'BAPI_TRANSACTION_COMMIT ' which you can use to determine the status of the update.

BR,

Suhas

5 REPLIES 5
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
679

How can i see the name of the update process triggered by BAPI_TRANSACTION_COMMIT?

How can i follow to determine if the process is still active or has ended, if done well or with an error (that error?) And so on?

You can maintain the Update Work Processes via [SM13|http://help.sap.com/saphelp_nw04/helpdata/en/e5/de870535cd11d3acb00000e83539c3/content.htm].

There is a RETURN param in 'BAPI_TRANSACTION_COMMIT ' which you can use to determine the status of the update.

BR,

Suhas

Read only

Former Member
0 Likes
678

I tried it with SM13, but always responds "0 Update records found." I tried to run my Z with debuger, and i stop before and even after BAPI_TRANSACTION_COMMIT, but the list of SM13 is always empty. How works SM13?

Even RETURN BAPI_TRANSACTION_COMMIT is empty, without parameter WAIT = 'X' in the call. This is just because BAPI_TRANSACTION_COMMIT he does not wait for the update and therefore does not know if it went wrong or right.

Serena

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
678

Hello Serena,

Did you read the documentation on the "Most Important Update Statuses" provided in the link i had previously mentioned?

I tried it with SM13, but always responds "0 Update records found."

1. The updates have been successfully processed & hence deleted. Read the SAP documentation thoroughly to know about the profile param which governs this behaviour

2. The BAPI call doesn't invoke any update processes & hence none exist. You can check if any update work processes are invoked when the BAPIs are called via [SM50|http://help.sap.com/saphelp_nw04/helpdata/en/69/c24e104ba111d189750000e8322d00/frameset.htm].

BR,

Suhas

Read only

Former Member
0 Likes
678

Hello Suhas,

Excuse me for the shallowness. Now read carefully. But from your answer, I already understood a poccino.

I would like to discover this: from my Z program, after the

'BAPI_TRANSACTION_COMMIT', I can see if "The updates have been successfully processed & hence deleted", ie have the list of processes displayed in SM13? How can I do? Where AM13 retrieves the active processes? From a table?

Serena

Read only

Former Member
0 Likes
678

Thanks Suhas.