Indicator for a successful and failed insert in Order Entry

Hi all,

I am making a macro program to insert OE transactions in bulk by reading a csv file with a lot of Order transaction.

Some of the Order might have error while trying to insert. So, I need an indicator that this specific transaction failed or successfully inserted in Sage 300.

The Insert() is a void function so it did not return anything.

ACCPACErrorHandler only report what the error is about (Example: "Customer C0001 did not exist") but did not specified for which transaction.

I try to debug.print after insert() hoping that if the transaction failed, it will not proceed to the next line but its not. Failed or not it will go to the next line.

Any suggestion on how to solve this?