Skip to Content
0
Dec 04, 2012 at 12:14 PM

How to delete the Document from CV02N via code?

687 Views

Hi All,

I need to delete the document which is stored in CV02N.I used the BAPI 'BAPI_DOCUMENT_CHANGE2'.

In that i passed the below values in export parameters

Document number

Document Type

Document Part

Document version

then i have given the values for deletion incidator, Docfile1 and wsapplication1 in Documentdata structure.

also i have given 'X ' for Delection indicator, document part, document number, document version,document type,docfile1 and wsapplication1 in Documentdatax structure.

while executing the BAPI am getting the error message 'Document 215/4001135/00/00 does not exist'

Is there anything wrong.Kindly suggest me how to pass the proper data to delete the document.

regards

Bharathi