Automate

 View Only
  • 1.  Deleting DMS original in CV02N

    Posted 12-02-2025 17:10

    Hi,

    We need to create a script to replace the version of an original document in cv02n. However the script does not take control of the original document attached so deletion does not work when running the script.

    We were advised to select the original using TAB instead of mouse click, but it didn't work either. 

    Does anybody know how to do this?

    Thank you

    Gabriela



    ------------------------------
    beatsong Gabriela
    Systems advisor
    QUEENSLAND ALUMINA LIMITED
    GLADSTONE QLD
    ------------------------------


  • 2.  RE: Deleting DMS original in CV02N

    Posted 12-08-2025 01:46

    Hello Gabriela, we also had this experience, but we solved the problem as follows. We wrote a script that sets the document to invalid and creates a new version of the DIS in SAP. However, when creating a new version, at least in our case, the content of the DIS set to invalid is transferred, which we did not want. 

    However, the DIS can be completely deleted using the BAPI - DOCUMENT_DELETE  which means that the DIS has to be recreated, but it is then empty. . 

    Regards, Matthias

    Translated with DeepL.com (free version)



    ------------------------------
    Matthias Lautenschläger
    PLM Assistant
    GSI Helmholtzzentrum für Schwerionenforschung GmbH
    Darmstadt
    ------------------------------



  • 3.  RE: Deleting DMS original in CV02N

    Posted 9 days ago

    Hi Mathias, 

    We arrived to the same conclusion: a BAPI is needed. Did you have to use Direct to create it?

    Thank you

    Gabriela



    ------------------------------
    beatsong Gabriela
    Systems advisor
    QUEENSLAND ALUMINA LIMITED
    GLADSTONE QLD
    ------------------------------



  • 4.  RE: Deleting DMS original in CV02N

    Posted 4 days ago

    Hello Gabriela, i use the CV01N as a regular Winshuttle Script to create the new DIS in SAP. 

    Greetings Matthias



    ------------------------------
    Matthias Lautenschläger
    PLM Assistant
    GSI Helmholtzzentrum für Schwerionenforschung GmbH
    Darmstadt
    ------------------------------