Skip to Content
avatar image
Former Member

Table where document header stored

Hi,

Please let me know how to delete the documents in template tab of the Cproject structure.

In which table is the document header stored?

Regards,

Maha

Edited by: Ramalakshmi ganeshan on Jun 22, 2010 11:46 AM

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 22, 2010 at 11:03 AM

    Hello,

    Try table DPR_DOCUMENT or the DOCUMT_REMOVE bapis

    Search for BAPI_BUS217*DOCUMT_REMOVE in se37.

    Regards,

    Michal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey,

      I am not sure about what template are you talking about:

      What about these bapis:

      BAPI_BUS2167_DOCUMT_REMOVE - removes documents from phase in project template

      BAPI_BUS2169_DOCUMT_REMOVE - removes documents from task in project template

      BAPI_BUS2170_DOCUMT_REMOVE - removes documents from project template

      M.

  • avatar image
    Former Member
    Jun 23, 2010 at 02:14 PM

    Ramalakshmi,

    cProject template is also a project and its information is also stored in DPR_PROJECT table. If standard BAPI is not deleting the documents stored in cProject template, you may try to use the classes.

    1. Get the instance of CL_DPR_APPL_OBJECT_MANAGER

    2. Load cProject Template using method LOAD_PROJECTS

    3. Get hold the instance of CL_DPR_PROJECT_O from export paramter ET_PROJECTS of method

    4. Read public attribute MR_DOCUMENTS type CL_DPR_DOCUMENTS of CL_DPR_PROJECT_O

    5. Use method GET_ALL to get all the documents stored ( table of CL_DPR_DOCUMENT)for this cProject template.

    6. Use DELETE method to delete one of the documents using CL_DPR_DOCUMENT class.

    7. Save the cProject using IF_DPR_PROVIDER_TRANSACTION~DO_SAVE method of CL_DPR_APPL_OBJECT_MANAGER

    Please let me know if it works for you.

    Add comment
    10|10000 characters needed characters exceeded