cancel
Showing results for 
Search instead for 
Did you mean: 

File Upload - Delete Documents

Former Member
0 Kudos

Hi all,

how can I delete single files of a Document Info Record. Only found BAPI to delete the entire DIR.

Add. INFO:

The Upload is done in the Document Management System (/cv01-2-3-4n) by a BSP application / BAPI_DOC_CREATE and CHECKIN .

Thanks in advance,

Christoph

Message was edited by: Christoph Aschauer

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

it worked! thanx!

christoph

Former Member
0 Kudos

Hi Christoph,

so please reward points for solution.

Look at this link for instructions.

/people/mark.finnern/blog/2004/08/10/spread-the-love

Best regards

Volker

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi all!

the following problem occured:

I used the BAPIs in the given order: GET_DETAIL2, CHECKOUTSET2, (and CHANGE2) as suggested.

the change2 has the effect that the file is deleted physically in the DIR. the way without change2 does not really work properly. I do not see any effect. For example when processing the GET_DETAIL2 for a second time, the delete_value is not set (as at the beginning,).

the way with CHANGE2 deletes the file, but I need only the delete flag. Sorry for the preterm OK answer.

Former Member
0 Kudos

Hi all!

FYI:

got information of SAP that there is no delete flag without being physically deleted for single files of a DIR.

but nevertheless the deletion of a single file works as described above without the checkoutset2 bapi.

Former Member
0 Kudos

Hi all!

i'll give it a try! Thankx

Former Member
0 Kudos

Hi Christoph,

- read Document Info Record with BAPI BAPI_DOCUMENT_GETDETAIL2. Table documentfiles contains your files.

- check out the file you want to delete using BAPI BAPI_DOCUMENT_CHECKOUTSET2.

- use BAPI BAPI_DOCUMENT_CHANGE2 to change the Document Info Record. Table documentfiles must contain your files including the one you want to delete. Before calling the BAPI, set field 'deletevalue' to 'X' in the record, that represents the file you want to delete.

Dont' forget to COMMIT WORK.

Former Member
0 Kudos

I don't think, BAPI_DOCUMENT_CHECKOUTSET2 is required. All other steps are fine and should solve the problem.