on 06-22-2010 8:26 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try table DPR_DOCUMENT or the DOCUMT_REMOVE bapis
Search for BAPI_BUS217*DOCUMT_REMOVE in se37.
Regards,
Michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.