Oh, many thanks for your fast answer, i thought i was following the topic but i didn't receive any notification about your answer. I'm still trying to understand how the error handler works anyways.... it works! I also found that sap udf has it's own error handler (_SAPErrorHandlerRegister()), unfortunately in my script I was launching it before the include of sap.au3 Look what I got after moving it in the proper place: err.number is: -2147352567 err.windescription: err.description