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

File cannot be opened error

srivijay_dinnimath
Active Participant
0 Likes
3,871

Hi ,

     Here is the scenario to upload a document of type CCD, initially I was able to upload this file successfully without change number but, when I had added/passed the change number in the file I am getting status error as 'File cannot be opened'. So any one kindly suggest me the solution.

Regards,

Srivijay

6 REPLIES 6
Read only

former_member156446
Active Contributor
0 Likes
2,109

can you make sure if the file is not open any where.

are you using GUI upload or background file ?

Read only

0 Likes
2,109

Hi Jay,

Yeah, I am using GUI upload. And I already mentioned that initially that file was uploading fine without change number.

Read only

Former Member
0 Likes
2,109

Hi Srivijay

Please check if the  parameter contains Changed number or not instead of only adding the changed number field to the input file.

Read only

srivijay_dinnimath
Active Participant
0 Likes
2,109

Hi,

I have done slight modification in my code like " IF data_tab-value_009 is not initial " means, here I am checking for the file path  and now I am getting status error as "Error while checking In and storing : demoCCD.zip" . I am not getting whether is der any relation between file name/path/desc.

So kindly any one suggest me for solution.

Regards,

Srivijay

Read only

0 Likes
2,109

if the file is not on your PC/Desktop and you are reading it from your network.. you need to check with your network admin.

if the file is on your pc paste the code snippet of the gui_upload and the data that's getting into the parameters.

Read only

srivijay_dinnimath
Active Participant
0 Likes
2,109

Actually I fotgot to pass file path for the structure  BAPI_DOC_FILES2, now its working fine with Change number as well 🙂

Now let me know if any check/authentication methods for file while input/uploading, bcoz if I send author, owner and Site Document Controlle(STC) same user/name, its taking fine. But while creating manually in CV01n it wont take no. I am damn sure, this functionality might be added/asked in future.

So let me know for any solutions.

Regards,

Srivijay