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

To avoid Read error during pc upload

Former Member
0 Likes
604

Hi Guys,

I have developed a program to upload attachments from my PC to the General Tasklist(IA06). I am using FM SO_DOCUMENT_REPOSITORY_MANAGER for attaching the documents. I give one input file(excel) to my programs selection screen which has 4 columns group,counter,title and path(for containing the attachment). My program also displays the output but only for erroneous records incase the attachment did not upload for any task list. However , incase the input file has wrong path for attachments it gives error pop up 'Read error during pc upload '. This comes after execution of FM SO_DOCUMENT_REPOSITORY_MANAGER. And the FM's subrc becomes 0. so it doesn't actually behaves as an error and hence my program can not show this record in erroneous records.

My question is how can I avoid this pop up and handle this as an error in my program after this FM SO_DOCUMENT_REPOSITORY_MANAGER is called. Or is there any other FM which could be useful.

Please suggest.

Thanks.

Edited by: MK18774 on Jul 28, 2011 9:06 AM

1 REPLY 1
Read only

Former Member
0 Likes
396

Solved it myself.

I used method METHOD cl_gui_frontend_services=>file_exist

to check in my program if the file/path exists then only proceed else exit.

Thast how it resolved my issue.