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

Batch Input to complete despite errors

Former Member
0 Likes
1,884

Hi,

We have a custom function module which calls transaction VB02 using BDC data.

When an error occurs all processing stops. Is it possible to ignore the errors and complete the rest of the batch input processing ignoring the line items that errored?

Will using the CALL TRANSACTION option "RACOMMIT" achieve this effect?

Your help would be much appreciated.

Thanks,

WIill

6 REPLIES 6
Read only

arseni_gallardo
Active Participant
0 Likes
1,233

It is not possible to ignore the errors during a CALL TRANSACTION. You will have to avoid them somehow.

The RACOMMIT option has a different meaning: not to finish the BDC session when a COMMIT statement is found.

Kind regards

Read only

Former Member
0 Likes
1,233

By default CALL TRANSACTION will leave the called transaction logic right after the COMMIT WORK statement is executed in that transaction. You mark RACOMMIT to prevent the command from doing this, so that ALL logic from the called transaction is executed.

And I'm afraid you can't override errors in a CALL TRANSACTION (N mode), only warning messages.

Regards

Mauricio

Read only

Former Member
0 Likes
1,233

You cannot ignore an error in a single transaction, but processing should continue with the next transaction if the first one is in error.

Rob

Read only

Former Member
0 Likes
1,233

Thanks for all your responses.

To give some more detail, during the BDC an error message occurs which appears to stop the rest of the processing as we are using it to create accruals. No accruals are created when an error is encountered.

The error in question is "Value exceeds open accruals 0.00" (VK443), when trying to manually key this in VBO2 and the error occurs you cannot proceed without removing the accrual amount or amending to a suitable amount.

Is it still possible to allow the rest of the BDC to process in this case?

It was mentioned that the error should be avoided in the first place, is there any function module to validate the attempted accrual before the BDC data is processed?

Cheers,

Will

Read only

0 Likes
1,233

If it is one BIG BDC transaction: no.

If you cut it in several BDC transactions: yes.

Read only

0 Likes
1,233

Thanks Maen.

This would appear to be the closest solution, albeit creating a separate BDC session for each line item will result in an invoice per line item which is not ideal.

We will consider it an option to look at.