Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Method to delete the document originals in DMS

Former Member
0 Kudos

Hi Guys,

My requirement is towrite a method to delete the document originals from DMS(data management system) CV03N.

Please suggest the approach.

Regards,

RSK..

1 ACCEPTED SOLUTION

kesavadas_thekkillath
Active Contributor
0 Kudos

There is a standard Bapi available for this. This is a basic question so put some effort and search yourself.

Kesav

3 REPLIES 3

kesavadas_thekkillath
Active Contributor
0 Kudos

There is a standard Bapi available for this. This is a basic question so put some effort and search yourself.

Kesav

0 Kudos

Hi Kesav,

Thanks for the reply.

I got bapi_document_delete and bapi_document_direct_delete.. Function modules .. but these function modules used to delete the whole document.

But i want to delete the originals(attachments) only.

Please let me know what is the function module i have to use or any other approach..

Regards,

RSK..

0 Kudos

Then its change not delete. Refer bapi_document_change2. There is a table parameter documentfiles & refer the field deletevalue for each document number. When its set for deletion then your attachment is removed.

Use bapi_document_getdetail2 and receive the details and pass it to the change bapi with the deletion inidicator set

Kesav