Application Development 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: 

Update was terminated after BAPI_TRANSACTION_COMMIT

Former Member
0 Kudos

Hi

I'm doing MIRO blanket order upload. I used BAPI_INCOMINGINVOICE_CREATE to create the invoice and post it. And I check for any returned errors before calling BAPI_TRANSACTION_COMMIT. I got an error of Express document "Update was terminated" received from author. This happens when there are 2 or more blanket order items assign to the PO item. If there is only 1 blanket order item, it's working fine. I checked the error log and dump analysis, the error occurs in MRM_INVOICE_DOCUMENT_POST, and the error(no entry). I tried to set a breakpoint in the function module, but it's not triggering it.

The data was working fine when I tested the other day, but not today.

I appreciate if anyone can provide any feedback on this.

Thank you in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Update was terminated usually appears while trying to post some finance documents with missing details at the document header (MKPF).

All fields must get the value "\" before starting in order to avoid problems such as those.

Regards,

Rebeka

7 REPLIES 7

former_member212653
Active Contributor
0 Kudos

This happens when the FM is called in the update task. You have to give a break-point in the FM MRM_INVOICE_DOCUMENT_POST and switch on Update debugger. Then only it will stop you there. The FM is actually getting called after COMMIT WORK statement and giving you an error.

0 Kudos

How do I switch on Update debugger? I set the breakpoint in the FM and run my program, but it's not leading me to the FM.

0 Kudos

To Switch on Update debugging:

Enter the Debugging sceen.

Navigate to SETTINGS--> Display/Change Debugger settings.

Check the Update debugging checkbox.

After you do this your execution should stop at your breakpoint to investigate the issue.

Former Member
0 Kudos

Update was terminated usually appears while trying to post some finance documents with missing details at the document header (MKPF).

All fields must get the value "\" before starting in order to avoid problems such as those.

Regards,

Rebeka

0 Kudos

Hi

I've checked in the program before calling BAPI_TRNASACTION_COMMIT if it returns any erros after BAPI_INCOMINGINVOICE_CREATE. It will check any missing data. The error happends only if I tried to post a blanket order with multiple items. With single item, it's working fine. The data are correct. I'm wondering what causes this error.

0 Kudos

Thanks.

I found the problem in my program. Fixed it.

0 Kudos

Hi Lily,

I am facing the same issue. Could you please recall what was the solution.

I know the post is very old and you might not recall, but it will help me a lot.