BAPI DOCUMENT CREATE2
Function Module:
BAPI_DOCUMENT_CREATE2
Functionality
You
can use this function module to create documents and all data that
belongs to it. You can create a document info record with the following
data:
- Langauge dependent short and long texts
- Any number of originals
- Object links
You can also check in the original application files into the SAP database, vault, or archive.
- Classification characteristics
- Document structures; can be created using table DocumentStructure.
The
objects of engineering change management (DOC_BOM_CHANGE_NUMBER
DOC_BOM_VALID_FROM oder DOC_BOM_REVISON_LEVEL) relate only to the
processing of the document structure. If no additional information for
the change object is given, the items in the table document structure
apply as the new status of the structure for the current
date........... Restrictions: The document key fields are equally keys
for the BOM items, which means that a document may not be used for
several items. Restrictions:
- Additional files supported only as interface parameters COMPONENTS for future development.
- Valuations of object links are not supported.
Pattern:CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
DOCUMENTDATA =
" HOSTNAME =
" DOCBOMCHANGENUMBER =
" DOCBOMVALIDFROM =
" DOCBOMREVISIONLEVEL =
" CAD_MODE = ' '
" PF_FTP_DEST = ' '
" PF_HTTP_DEST = ' '
" IMPORTING
" DOCUMENTTYPE =
" DOCUMENTNUMBER =
" DOCUMENTPART =
" DOCUMENTVERSION =
" RETURN =
" TABLES
" CHARACTERISTICVALUES =
" CLASSALLOCATIONS =
" DOCUMENTDESCRIPTIONS =
" OBJECTLINKS =
" DOCUMENTSTRUCTURE =
" DOCUMENTFILES =
" LONGTEXTS =
" COMPONENTS =
.