Fonction SAP BAPI_DOCUMENT_CREATENEWVERSION - Create new document version

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CAD_MODE CSDATA-XFELD C 1 SPACE X CAD FLag for Document Structure
COPYORIGINALS BAPI_DOC_AUX-FLAG C 1 'X' X Copy Original
DOCFILE1 BAPI_DOC_DRAW-DOCFILE1 C 255 X New File Name if not Checked In
DOCFILE2 BAPI_DOC_DRAW-DOCFILE2 C 255 X New File Name if not Checked In
NEWDOCUMENTVERSION BAPI_DOC_AUX-DOCVERSION C 2 X New Document Version
REFDOCUMENTNUMBER BAPI_DOC_AUX-DOCNUMBER C 25 Document Number (Original Document)
REFDOCUMENTPART BAPI_DOC_AUX-DOCPART C 3 Document Part (Original Document)
REFDOCUMENTTYPE BAPI_DOC_AUX-DOCTYPE C 3 Document Type (Original Document)
REFDOCUMENTVERSION BAPI_DOC_AUX-DOCVERSION C 2 Document Version (Original Document)

Paramètre Reférence Type Long. Description
DOCNUMBER BAPI_DOC_AUX-DOCNUMBER C 25 Document Number
DOCPART BAPI_DOC_AUX-DOCPART C 3 Document Part
DOCTYPE BAPI_DOC_AUX-DOCTYPE C 3 Document Type
DOCVERSION BAPI_DOC_AUX-DOCVERSION C 2 Document Version
RETURN BAPIRET2 u 548 BAPI Return

Paramètre Reférence Long. Facultatif Description
COPYOBJECTLINKS BAPI_DOC_DRAD_SELECT 10 X List of Object Links to be Copied

Functionality
This function module is obsolete. Use:Bapi_Document_CreateNewVersion2.
You can use this method to create a new version for an existingdocument.

Notes

  • When you create the new document, any existing document structure is
  • also copied.
    • You can define whether all, only specific, or no object links at all
    • should be copied.

      Description
      Document number of new document

      Description
      Document part for new document

      Description
      Document type of new document

      Description
      Document version of new document

      Description
      Return structure for messages

      Description
      New original application file name if the appropriate original is notchecked in.
      - The available originals are not copied automatically, contrary to theDMS
      - The new document info record then points to this original

      Description
      New original application file name if the appropriate original is notchecked in.
      - The available originals are not copied automatically, contrary to theDMS
      - The new document info record then points to this original

      Description
      Document version of new document
      When the version number is assigned automatically, you do not need toenter the new version.

      Description
      Document number of the original document

      Description
      Document part of the original document

      Description
      Document type of the original document

      Description
      Document version of the original document

      Description
      For object links that are to be copied, you can define whether none,all, or only specific object links should be copied.
      - OBJECTTYPE = * Copy all object links
      - OBJECTTYPE = "" Do not copy any object links
      - OBJECTTYPE = "xx" Copy links for object "xx"