‎2011 Jul 28 7:46 AM
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
‎2011 Jul 28 10:59 AM
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.