Menu

SAP Function Module BAPI_DOCUMENT_CREATENEWVERSION

Create new document version

Recommended Now

Fire TV Stick Lite Essentials Bundle

This bundle contains Amazon Fire TV Stick Lite and Mission USB Power Cable. The USB power cable eliminates the need to find an AC outlet near your TV by powering Amazon Fire TV directly from your TV's USB port. Includes special power management circuitry that enhances the peak power capability of the USB port by storing excess energy and then releasing it as needed.

Check it out on amazon.com →

The Function Module BAPI_DOCUMENT_CREATENEWVERSION (Create new document version) is a standard Function Module in SAP ERP and is part of the function group CVBAPI within the package CV.

Technical Information

Function Module BAPI_DOCUMENT_CREATENEWVERSION
Short Text Create new document version
Function Group CVBAPI
Package CV
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
CAD_MODE LIKE CSDATA-XFELD SPACE CAD FLag for Document Structure
COPYORIGINALS LIKE BAPI_DOC_AUX-FLAG 'X' Copy Original
DOCFILE1 LIKE BAPI_DOC_DRAW-DOCFILE1 New File Name if not Checked In
DOCFILE2 LIKE BAPI_DOC_DRAW-DOCFILE2 New File Name if not Checked In
NEWDOCUMENTVERSION LIKE BAPI_DOC_AUX-DOCVERSION New Document Version
REFDOCUMENTNUMBER LIKE BAPI_DOC_AUX-DOCNUMBER Document Number (Original Document)
REFDOCUMENTPART LIKE BAPI_DOC_AUX-DOCPART Document Part (Original Document)
REFDOCUMENTTYPE LIKE BAPI_DOC_AUX-DOCTYPE Document Type (Original Document)
REFDOCUMENTVERSION LIKE BAPI_DOC_AUX-DOCVERSION Document Version (Original Document)

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DOCNUMBER LIKE BAPI_DOC_AUX-DOCNUMBER Document Number
DOCPART LIKE BAPI_DOC_AUX-DOCPART Document Part
DOCTYPE LIKE BAPI_DOC_AUX-DOCTYPE Document Type
DOCVERSION LIKE BAPI_DOC_AUX-DOCVERSION Document Version
RETURN LIKE BAPIRET2 BAPI Return

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
COPYOBJECTLINKS LIKE BAPI_DOC_DRAD_SELECT List of Object Links to be Copied

Exceptions

This function module does not define any Exceptions.