cancel
Showing results for 
Search instead for 
Did you mean: 

Table where document header stored

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello,

Try table DPR_DOCUMENT or the DOCUMT_REMOVE bapis

Search for BAPI_BUS217*DOCUMT_REMOVE in se37.

Regards,

Michal

Former Member
0 Kudos

Hi,

I tried in the table DPR_DOCUMENT as well as the BAPI - BAPI_BUS2172_DOCUMT_REMOVE.

But in both the project GUID is required.

Actually I want to delete the documents from the template not specific to project.

Regards,

Maha

Former Member
0 Kudos

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.