Hi,
I am trying to check out DMS originals through a BSP application. For this purpose, I use the function module 'BAPI_DOCUMENT_CHECKOUTVIEW2'. When this FM is used in a SAP GUI report program, the originals are checked out into the TEMP directory. But when the same FM is used in a BSP application, the FM fails with the exception 'Document Program not started via RFC. No return possible'.
Alternatively, I tried using the method 'checkoutview' (in the class 'cl_incl_doc_files'). The method executes without any error, but it does not check out the originals. The original is not available in the 'TEMP' directory. Will this method check out originals to the 'TEMP' directory?? If so, is there any specific thing that needs to be set? Have anyone tried using this?
My requirement is that the originals need to be downloaded to the local machine.
Any help is highly appreciated.
Regards,
Vidhya.