Ansicht
Dokumentation

SRM_DOCUMENT_CHECKOUT_VIA_TAB - SRM: Get Document Content by Specifying Tables

SRM_DOCUMENT_CHECKOUT_VIA_TAB - SRM: Get Document Content by Specifying Tables

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module SRM_DOCUMENT_CHECKOUT_VIA_TAB gets the document content from the Records Management back end for the client application.

You can use the binary_flag field of the structure BAPIDOCCOMP to decide whether the content of a component is retrieved from the ASCII table ASCII_CONTENT (binary_flag <> 'X') or from the binary table BIN_CONTENT (binary_flag = 'X'). Using the component size and the row length of BIN_CONTENT or ASCII_CONTENT (calculated in bytes), you can calculate the offset at which a component in the internal table begins and ends. A new component always begins with a new line.

Example

CALL FUNCTION 'SRM_DOCUMENT_CHECKOUT_VIA_TAB'

EXPORTING

objectid = objectid

documentclass = documentclass

* version = version " version = 0 variant = 0 stands for the current version

* variant = variant

IMPORTING

return = return

TABLES

components = components

ascii_content = ascii_content

bin_content = bin_content

.

Notes

Further information





Parameters

ASCII_CONTENT
BIN_CONTENT
COMPONENTS
DOCUMENTCLASS
DOC_CONTEXT
DO_COMMIT
OBJECTID
RETURN
VARIANT
VERSION
X_SET_CHECKED_OUT

Exceptions

DOC_NOT_FOUND
INTERNAL_ERROR
NOT_AUTHORIZED
PARAMETER_ERROR

Function Group

SRM_BAPI_DOCUMENT

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1762 Date: 20240523 Time: 112129     sap01-206 ( 45 ms )