cancel
Showing results for 
Search instead for 
Did you mean: 

Search Function or BAPI for deleting a original from document

Former Member
0 Kudos

Hello!

I would like a deleting from 1 of 2 Original of Document (cv02n). I have old function for Archivlink, but this don't worked now.

Is a function you know?

Thanks for help!

Jens Meyer

(Germany)

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Jens,

I think the best BAPI would be BAPI_DOCUMENT_CHANGE2 to achieve the desired behavior.

For deleting an original from a document info record I would recommend you to use the following sample sequence:

1. BAPI_DOCUMENT_GETDETAIL2

This BAPI will return all the current data of the document info record. This also includes the original data with PHIO and LOIO IDs too.

2. BAPI_DOCUMENT_CHANGE2

This BAPI will do the necessary changes. For the originals you can set the 'Deletion' flag in table DOCUMENTFILES

3. BAPI_TRANSACTION_COMMIT

This is necessary to write the changes to the database tables.

For further information on this BAPIs you can also see the documentation in transaction BAPI.

Best regards,

Christoph

Former Member
0 Kudos

Hi Christoph,

I am using KPRO server.

How can i check the original file is deleted from KPRO server ?

Regards,

Sunny

Edited by: Sunny on Sep 23, 2008 1:18 PM

christoph_hopf
Advisor
Advisor
0 Kudos

Dear Sunny,

the report DMS_KPRO_READ could be useful here. Further function modules SDOK_PHIOS_EXISTENCE_CHECK and SDOK_PHIOS_CHECK_CONT_SERVER.

In table OBJECT_LIST you fill in the class DMS_PCD1 and the relevant object ID.

Best regards,

Christoph