BAPI_DOCUMENT_CREATE2 - Copy Attached file issue
I am trying to create a document with attachment in CV01 using the BAPI BAPI_DOCUMENT_CREATE2.
Here my requirement is to copy the attached files from a document to another document (which I will be creating newly).
I mean attachments from document 1 to document 2.
When I try using this bapi BAPI BAPI_DOCUMENT_CREATE2, what should I give in the docpath parameter.
I have storage category to maintain.
Even though if I pass storage category, the parameter is not checked in. So, it is throwing with error as “Error while checking and sorting”.
So, In debugging , I set to checked in again and ran successfully.
But, when I try to open the attached file in newly created document 2. Getting error as could not be accessed.
Adding one more point is that, the fiel might have been uploaded from application server earlier and they might have removed that file from the application server. So, i should not access this file again trough application server.
Please suggest if I am doing anything wrong.
Message was edited by: prabu kailasam