Skip to Content
author's profile photo Former Member
Former Member

Regarding cProject - Document - Retrive

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 09:31 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.