Fonction SAP BAPI_DOCUMENT_CREATENEWVRS2 - Create new document version

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AENNR BAPI_DOC_DRAW2-ECNUMBER C 12 X Change Number
COPYCLASSIFICATION BAPI_DOC_AUX-FLAG C 1 X Copy Classification Data
COPYDOCBOM BAPI_DOC_AUX-FLAG C 1 'X' X Copy Document Structure
COPYORIGINALS BAPI_DOC_AUX-FLAG C 1 'X' X Copy Original
DOCBOMCHANGENUMBERREAD BAPI_DOC_DRAW2-ECNUMBER C 12 X Change Number for Reading the Documetn Structure
DOCBOMCHANGENUMBERWRITE BAPI_DOC_DRAW2-ECNUMBER C 12 X Change Number for Writing to the Document Structure
DOCBOMREVLEVELREAD BAPI_DOC_DRAW2-REVLEVEL C 2 X Revision Level
DOCBOMREVLEVELWRITE BAPI_DOC_DRAW2-REVLEVEL C 2 X Revision Level
DOCBOMVALIDFROMREAD BAPI_DOC_DRAW2-VALIDFROMDATE D 8 X Valid-From Date
DOCBOMVALIDFROMWRITE BAPI_DOC_DRAW2-VALIDFROMDATE D 8 X Valid-From Date
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)
REVLEVEL BAPI_DOC_DRAW2-REVLEVEL C 2 X Revision Level
STATUSEXTERN BAPI_DOC_DRAW-STATUSEXTERN C 2 X External Status
STATUSINTERN BAPI_DOC_DRAW-STATUSINTERN C 2 X Internal Status
STATUSLOG BAPI_DOC_DRAW-STATUSLOG C 20 X Status Log

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 Return Structure

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

Functionality
You use this function module to create new versions of documents.Optionally the following data can be changed:

  • Log entry

  • Revision level

  • Change number
  • Notes

    • You can copy an available document structure when creating a new
    • document.
      • You can also set how you want to copy object links:

      • Copy,,Value for OBJECTTYPE
        all,,*
        Only certain,,
        none,,Blank
        Explanation for
        The internal descriptions from the table TCLO (for example, MARA formaterial) are used for the object type OBJECTTYPE. The object keyOBJECTKEY contains the kex fields of the SAP Object that is also takenfrom the table TCLO.

        Description
        Document number of the new document

        Description
        Document part of the new document

        Description
        Document type of the new document

        Description
        Document version of the new document

        Description
        Return structure for messages

        Description
        Document version of the new document
        Entering a new version is not necessary when using the automaticversion assignment.

        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
        Object Links to be Copied
        You can define for the object link whether no, all, oder only certainlinks are to be copied:
        - OBJECTTYPE = * Copy all linkx
        - OBJECTTYPE = "" Copy no links -
        - OBJECTTYPE = "xx" Copy only links of the object "xx"

653735CDESK: Creating a new document version with ECM