cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding cProject - Document - Retrive

Former Member
0 Kudos

Hi,

My requirement is to fetch the document attached in cProject based on Project level and Task Level.

Is any function Module or BAPI is available to fetch the documents.

Regards,

Janani.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Janani,

There are various ways to retrieve the documents from cProjects, however I would be able to give you the better approach based on what you wish to do with the documents once you retrieve them. If you just want to retrieve it to show or to save, then you can just build a http URI and this will return the document to you.

To do this, go to the document screen and create a document. There is a toolbar button to get the URL of a document, click on this. You will get a long complicated looking URL in the popup. Copy this into notepad and study this. You will find various details such as GUID of the main project object, GUID of the object where the document is stored, the object type, the document ID etc. By replacing the GUIDs with the details of where you want to retireve the document from, you can get any document from the system. You can write a piece of code to build this kind of a URL with the relevant parameters.

However, it is important to know that the documents are secured for access and a login will be required to access the document. The user should further have the necessary permissions on the cProjects Project to access the document.

On the other hand if you want to retrieve the document in the system, like through a report, then you can try to use the class CL_DPR_BAPI_DOCUMENT_SERVICES. This has some static method which you could use to retrieve and/or make modifications to the document.

Hope this helps.

Answers (0)