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

Ole2_Object - Free Object excel doesn't terminate excel process

Former Member
0 Likes
634

Hi experts,

I have developed a program that creates an excel file in my pc. I'm using de FREE OBJECT for all ole2_object's that i use and the file is being created properly. However, when i check the existing processes in my task manager there is an EXCEL process refering to the file created by my program.

Can anyone help to find a way to terminate this process from my program?

Here's a part of my program were i save my file and clear the created objects:

...

CALL METHOD OF workbook 'SaveAs'

EXPORTING

#1 = v_filepath.

CALL METHOD OF workbook 'Close'.

CALL METHOD OF excel_object 'Quit'.

FREE OBJECT: excel_object, workbook_list, application,

sheet, workbook, border.

Thanks for your help in advanced.

Diana Pinto

2 REPLIES 2
Read only

Former Member
0 Likes
539

Hi,

Try using CL_GUI_CFW=>flush.

Regards,

Vasanth

Read only

Former Member
0 Likes
539

Hi Vasanth,

Thanks for your answer, however it didn't help me.

I tried using the cl_gui_cfw=>flush after the creation of my excel file but the process still stand's pending on my pc and the method doesn't return any error code.

Regards,

Diana Pinto