BAPI DOCUMENT LOAD
Function Module:
BAPI_DOCUMENT_LOAD
Functionality
This
function module is for mass data transfer using the data transfer
supported by the Workbench. You can create and change dokument info
records. IDOCs serve as data interfaces. The correct segment type is
'DOCUMENT_LOAD01'. The behavior of the function module for creating and
changing documents is different than its behavior in normal dialog.
The differences are:
- No consistency check of the status network. This makes it possible to create documents directly from the release status.
- No status depenedent checks
- No checks whether a function such as check-in is inactive
- No check whether a field is a required field or ready for entry
- If
a document already exists and you want to overwrite it, all data
including the original data is overwritten without warning.
You
can run these checks before the actual data transfer. ===It is possible
to create a document info record with the following=== data:
- The actual document data
- Language dependent short texts and long texts
- Object links
Valuations and long texts of object links are not supported
- Originals and additional files
Original
application files can be checked in directly to the storage categories.
Original applications files must accessible to the frontend. The
transport of originals occurs automatically from the frontend into the
appropriate storage systems. This means that you must not call the
function module using a batch-job.
- Classification and evaluations
- Status log data
Pattern:CALL FUNCTION 'BAPI_DOCUMENT_LOAD'
EXPORTING
DOCUMENTDATA =
" DOCUMENTDATAX =
" HOSTNAME = ' '
" FORCE_UPDATE = ' '
" CAD_MODE = ' '
" IMPORTING
" DOCUMENTTYPE =
" DOCUMENTNUMBER =
" DOCUMENTPART =
" DOCUMENTVERSION =
" RETURN =
" TABLES
" CHARACTERISTICVALUES =
" CLASSALLOCATIONS =
" DOCUMENTDESCRIPTIONS =
" OBJECTLINKS =
" DOCUMENTFILES =
" LONGTEXTS =
" COMPONENTS =
" STATUSLOG =
.