on 04-22-2010 11:18 AM
Hi all,
I ve created one document.
Within the Document I ve attached Some PDF files. Among those files i want to delete some files through code....
How to do that?
can anyone help me to comeout from this issue?
Regards,
Vimal.
Hi Vimal,
Use t-code CV02n i.e. chnage document and delete or add the document and save.
for deletion use the buttons below attachment.Right side first is for deletion and then 4th from right to browse and upload.
I hope this will resolve your query.
Regards,
Ravindra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you please explain the behavior in CV04N a bit more detailed. Because this is only the document search and here normally no original files should be deleted from the document info records.
If you want to delete the whole document info record you can use BAPI Document.DeleteDirect. This BAPI will delete the whole document info record from your database table DRAW and afterwards this document info record won't be found with transaction CV04N anymore.
Best regards,
Christoph
Suggest me the steps, how to delete a particular file (not all) thro code.
Dear Vimal
Follow these steps:
1. Go to CV02N, enter all the details pertaining to your DIR
2. Open the DIR
3. In the next screen, Under Originals tab, you'll see document(s) checked-in.
4. Right click on the document, select delete
OR
Click on the document you want to delete, & click on the delete button.
5. Save the DIR.
That's all. Remember this action would remove original from the DMS server.
~Amaresh Makal
Hi Vimal,
if you want to remove the original in CV02N through ABAP coding, then I think you can only implement BADI DOCUMENT_MAIN01 (method AFTER_READ_DATA) or DOCUMENT_FILES01 (method AFTER_ASSIGN_FILE) where you need to implement your own coding to delete the previous existing original file.
The only further possible solution would be to delete the original manually.
Best regards,
Christoph
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.