2015 Jul 29 7:54 AM
Hello together,
I read an excel-file with OLE-automation. At the end of my method I release all OLE-objects with free object, but if I want to release the excel-application object the method returns a error, sy-subrc = 2.
I found this document FREE OBJECT - Application Development on AS ABAP - SAP Library but I can´t see why I get this error.
Has somebody else this problem? or solved it already?
My Code is in the txt-file.
Sincere regards,
Christian
Hello together,
I read an excel-file with OLE-automation. At the end of my method I release all OLE-objects with free object, but if I want to release the excel-application object the method returns a error, sy-subrc = 2.
I found this document FREE OBJECT - Application Development on AS ABAP - SAP Library but I can´t see why I get this error.
Has somebody else this problem? or solved it already?
My Code is in the txt-file.
Sincere regards,
Christian
2015 Jul 29 8:49 AM
Hello!
I suppose there is a collision because you call method QUIT before FREE OBJECT and the application object is already clear. Try not to call EXCEL.QUIT.
2015 Jul 29 9:12 AM
Hello Vadim,
thank you very much for your reply.
I tried your solution, but I still get the same error.
Sincere regards,
Christian
2015 Jul 29 10:48 AM
This problem has existed for a few weeks , before the code has worked well.
I have no ideas where the error could be.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |