BAPI DOCUMENT CHANGE2
Function Module:
BAPI_DOCUMENT_CHANGE2
Functionality
You
can change documents with this function module. It can also be used to
check in original application files into the SAP database, vault, or
archive simultaneously. Restrictions:
- Mass check in is not supported.
- Additional files are supported only as interface parameter 'COMPONENTS'
- for future development.
- Using table DocumentStructure, an available document structure can be expanded or a new one created.
Objects
for engineering change management (DOCBOMCHANGENUMBER, DOCBOMVALIDFROM,
or DOCBOMREVISONLEVEL) relate only to the processing of the document
structure. When you specify a change number, the following steps take
place:
- An available BOM is exploded for the corresponding validity date.
- The existing items are compared to those that were specified using DocumentStructure. In this way the actual changes can be
determined.
If no additional information is given for the change object, the items
in table DocumentStructure apply as the new status of the BOM (for the
current date). To delete all items in a BOM, a document structure with
exactly one entry can be transferred (deletion flag is set; document
number contains *). Restrictions: The document key fields are equally
keys for the BOM items, which means that a document may not be used for
several items.
PATTERN CALL FUNCTION 'BAPI_DOCUMENT_CHANGE2'
EXPORTING
DOCUMENTTYPE =
DOCUMENTNUMBER =
DOCUMENTPART =
DOCUMENTVERSION =
DOCUMENTDATA =
DOCUMENTDATAX =
" HOSTNAME =
" DOCBOMCHANGENUMBER =
" DOCBOMVALIDFROM =
" DOCBOMREVISIONLEVEL =
" SENDCOMPLETEBOM = ' '
" PF_FTP_DEST = ' '
" PF_HTTP_DEST = ' '
" CAD_MODE = ' '
" ACCEPT_EMPTY_BOM = ' '
" IMPORTING
" RETURN =
" TABLES
" CHARACTERISTICVALUES =
" CLASSALLOCATIONS =
" DOCUMENTDESCRIPTIONS =
" OBJECTLINKS =
" DOCUMENTSTRUCTURE =
" DOCUMENTFILES =
" LONGTEXTS =
" COMPONENTS =