Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Search for a function module for deleting document originals (DMS)


I'm searching for a function module to delete originals in documents (like manually with transaction cv02n). I'm only able to set an delete mark with the module 'BAPI_DOCUMENT_DELETE'.

The module 'BAPI_DOCUMENT_CHANGE2' can only add new originals to an existing document. I need a possibility to delete all originals in an document without deleting the document itself.

Has anyone an idea?


Jan-Christian Treusch


Hi Jan-Christian Treusch,

For deleting the file from DMS, u need to send the file details(which you want to delete) in the DOCUMENTFILES table.Only difference is you need to check the DELETEVALUE flag inside the table.

Thanks and Regards

Senthil Kumar Anantham

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question