CA BAPI RFC Used the same way in S/4HANA

BAPI_DOCUMENT_CHECKIN2 Check In Document Originals

Checks original files into an existing document info record, storing them in the content repository or vault defined for the document type. It is used by upload programs that attach files to documents that were created earlier, and to optionally set a new document status at the same time. Pass the full document key and the files in DOCUMENTFILES; when no SAP GUI is available, the file must be reachable from the application server or through the given FTP/HTTP destination.

Function group
CVBAPI
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
DOCUMENTTYPEBAPI_DOC_AUX-DOCTYPEDocument typeYes
DOCUMENTNUMBERBAPI_DOC_AUX-DOCNUMBERDocument numberYes
DOCUMENTPARTBAPI_DOC_AUX-DOCPARTDocument partYes
DOCUMENTVERSIONBAPI_DOC_AUX-DOCVERSIONDocument versionYes
HOSTNAMEBAPI_DOC_AUX-HOSTNAMEFront-end host name—
STATUSINTERNBAPI_DOC_DRAW-STATUSINTERNInternal status—
STATUSEXTERNBAPI_DOC_DRAW-STATUSEXTERNExternal status—
STATUSLOGBAPI_DOC_DRAW-STATUSLOGStatus log entry—
REVLEVELBAPI_DOC_DRAW2-REVLEVELRevision level—
AENNRBAPI_DOC_DRAW2-ECNUMBERChange number—
PF_FTP_DESTRFCDES-RFCDESTFTP destination for file transfer—
PF_HTTP_DESTRFCDES-RFCDESTHTTP destination for file transfer—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRET2Return message

Tables parameters

ParameterTypeDescriptionRequired
DOCUMENTFILESBAPI_DOC_FILES2Originals to check inYes
COMPONENTSBAPI_DOC_COMPAdditional files for originals—
DOCUMENTSTRUCTUREBAPI_DOC_STRUCTUREDocument structure—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2'
  EXPORTING
    documenttype = lv_documenttype
    documentnumber = lv_documentnumber
    documentpart = lv_documentpart
    documentversion = lv_documentversion
  IMPORTING
    return = lv_return
  TABLES
    documentfiles = lt_documentfiles
    components = lt_components
    documentstructure = lt_documentstructure.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report