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

Error while using Free Object Application

Former Member
0 Likes
708

I have created object application using Create Object Application 'Excel.Application'.

 

But when I tried to free it I am getting sy-subrc = 2.

And when I try to reopen the same excel file it gives me error : 'file already open'

Please help me how I can handle such situation.

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
512

First close application (e.g. call method of application 'QUIT'.) then free any depending objects, in reverse order of creation : cell, range, worksheet, workbook, application...

Regards,

Raymond

Read only

Former Member
0 Likes
512

It worked...

I was using quit method...

but while calling QUIT method i was not using addition[ = rc].

when i use  = RC addition it worked for me...