Skip to Content
author's profile photo Former Member
Former Member

Search Function or BAPI for deleting a original from document

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)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 22, 2008 at 03:05 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.