Fonction SAP BAPI_DOCUMENT_CREATEFROMSRC2 - Create Document with Template Source

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
NEWDOCUMENTNUMBER BAPI_DOC_AUX-DOCNUMBER C 25 Document Number (New Document)
NEWDOCUMENTPART BAPI_DOC_AUX-DOCPART C 3 Document Part (New Document)
NEWDOCUMENTVERSION BAPI_DOC_AUX-DOCVERSION C 2 Document Version (New Document)
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 for creating new documents using a template.
Optionally you can assign the following data:

  • Status log entry

  • Revision level

  • Change number
  • Notes

    • An existing document structure is copied when you create a new
    • document.
      • You can define how you want to copy the object links:

      • Copye,,Value for OBJECTTYPE
        all,,*
        Only certain,,
        None,,Blank
        Explanation of the
        The internal descriptions from the table TCLO (for example, MARA formaterial) are used for the object type OBJECTTYPE.
        The object key OBJECTKEY is made of key fields of the SAP object thatis also in 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 number of the new document

        Description
        Document type of the new document

        Description
        Document version of the new document

        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 you want to copy
        You can define whether you want no, all, or only some object links tobe copied:
        - OBJECTTYPE = * Copy all links
        - OBJECTTYPE = "" Copy no links
        - OBJECTTYPE = "xx" Copy links from object "xx"

653692Creating a new version w/ a change number w/out reservation