MCDOK SAP (Document Management I/O Table) Structure details

Dictionary Type: Structure
Description: Document Management I/O Table




ABAP Code to SELECT data from MCDOK
Related tables to MCDOK
Access table MCDOK




Structure field list including key, data, relationships and ABAP select examples

MCDOK is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Document Management I/O Table" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_MCDOK TYPE MCDOK.

The MCDOK table consists of various fields, each holding specific information or linking keys about Document Management I/O Table data available in SAP. These include REFNR (Document number), REFAR (Document Type), REFVR (Document Version), REFTL (Document Part).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)


SAP MCDOK structure fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
TRATXTransaction text TRATXCHAR36CHAR36
REFNRDocument number DOKNRCHAR25Assigned to domainALPHADOKNRCV1
REFARDocument Type DOKARCHAR3Assigned to domainDOKARCV2
REFVRDocument Version DOKVRCHAR2DOKVRCV3
REFTLDocument Part DOKTL_DCHAR3DOKTLCV4
REFTXField of length 16 CHAR16CHAR16CHAR16
DOKNRDocument number DOKNRCHAR25Assigned to domainALPHADOKNRCV1
DOKARDocument Type DOKARCHAR3Assigned to domainDOKARCV2
DOKVRDocument Version DOKVRCHAR2DOKVRCV3
DOKTLDocument Part DOKTL_DCHAR3DOKTLCV4
MARAFDocument Management Flag CVFLAGCHAR1CHAR1
ACTIONDocument Management Flag CVFLAGCHAR1CHAR1
SELFLDSelection field SELFLDCHAR1SELFLD
DKTXTDocument description DKTXTCHAR40TEXT40
CVHIERDocument is in Hierarchy CVHIERCHAR1XFELD
STSEITFrom date STSEITDATS8DATUM
STTAGENumber of days (for which status has been the same) STTAGEDEC3DEC3
SRTXTDocument description DKTXTCHAR40TEXT40
APPLTXT1Description CVTEXTCHAR40TEXT40
APPLTXT2Description CVTEXTCHAR40TEXT40
KLASSEClass number KLASSE_DCHAR18KLASSEKLA
KLASSENTYPClass Type KLASSENARTCHAR3TCLAKLASSENARTKAR
JAFELDField for safety query YES JAFELDCHAR5TEXT5
NOFELDField for safety query NO NOFELDCHAR5TEXT5
CVKLASIndicator CVKLASCHAR1XFELD
PATNRISH dummy: patient number CV_PATNRCHAR10CHAR10
PZIFFISH dummy: patient check digit CV_PZIFFCHAR1CHAR1
PNAMEISH dummy: patient's last name, first name CV_PNAMECHAR30TEXT30
FALNRISH dummy: case number CV_FALNRCHAR10CHAR10
FZIFFISH dummy: case check digit CV_FZIFFCHAR1CHAR1
ORGFAISH dummy: identification of organizational unit CV_ORGIDCHAR8CHAR8
ORGFA_KBISH dummy: short text for organizational unit CV_ORGKBCHAR12TEXT12
ORGPFISH dummy: identification of organizational unit CV_ORGIDCHAR8CHAR8
ORGPF_KBISH dummy: short text for organizational unit CV_ORGKBCHAR12TEXT12
ORGARISH dummy: identification of organizational unit CV_ORGIDCHAR8CHAR8
ORGAR_KBISH dummy: short text for organizational unit CV_ORGKBCHAR12TEXT12
KDEFPATHDefault short path KDEFPATHCHAR8TEXT8
FILEPOriginal of document FILEPCHAR255TEXT255
DTTRGName of Data Carrier DTTRGCHAR10Assigned to domainDTTRGCV5
CVTEXTDescription CVTEXTCHAR40TEXT40
CVTEXT1Description CVTEXTCHAR40TEXT40
ORIGINAL1Document Management Flag CVFLAGCHAR1CHAR1
ORIGINAL2Document Management Flag CVFLAGCHAR1CHAR1
DKSTLIndicator: document structure exists DKSTLCHAR1XFELD
DREVLVRevision Level REVLVCHAR2NUMCVREVLVRVS
REVLVRevision Level REVLVCHAR2NUMCVREVLVRVS
HIGHTDOCHeight for inserting graphic to print HIGHTDOCNUMC6NUM6
PRTPOSTIndicator: postscript print file uploaded PRTPOSTCHAR1XFELD
FRTXTRelease interval CV_FRTXTCHAR40TEXT40
QMNUMNotification No QMNUMCHAR12Assigned to domainALPHAQMNUMIQM
VDIRDirection of object link VDIRCHAR4CHAR4
FILELENFile length of original ORLNNUMC12NUM12
FILELEN1File length of original ORLNNUMC12NUM12
DLOCK_IGNOREIgnore distribution lock when sending direct via ALE DLOCK_IGNORECHAR1XFELD
STBISTo status STBISDATS8DATUM
STFLAGDocument Management Flag CVFLAGCHAR1CHAR1
STTAGEBNumber of days since status was set STTAGEBDEC3DEC3
FILE_LANG_VERSIONLanguage CV_FILE_LANG_VERSIONLANG1T002ISOLASPRAS
FILE_ACT_VERSIONActive version of the original CV_FILE_ACT_VERSIONCHAR1XFELD
FILE_DESCRIPTIONShort description of the original CV_FILE_DESCRIPTIONCHAR40TEXT40
ICON1DVS: Icon CV_ICONCHAR132CHAR132
ICON2DVS: Icon CV_ICONCHAR132CHAR132
DELETE_TEXTIndicator: Selected for Deletion CV_DELETE_TEXTCHAR132SYCHAR132
BOM_TEXTDocument Structure Exists CV_BOM_TEXTCHAR132SYCHAR132
CAD_TEXTCAD Indicator CV_CAD_TEXTCHAR132SYCHAR132
HIERARCHIE_TEXTDocument is included in hierarchy CV_HIER_TEXTCHAR132SYCHAR132
STORAGE_CATStorage category for original files CV_STORAGE_CATCHAR10CHAR10
FILE_NAMEDMS: file name of the original without path entry DMS_FILE_NAMECHAR255CHAR255
VAULTFLAGIndicator: data carrier is a vault DSERVCHAR1XFELD
ARCHIVEFLAGData carrier is archive system ARCHVCHAR1XFELD
SAPDBFLAGIndicator: data carrier is SAP data base CV_SAPDBCHAR1XFELD
URLURL DMS_URLCHAR4096CHAR4096
ICON_CHECKED_INIndicator: Original is Checked In CV_ICON_CHECKED_INCHAR4CHAR4
ICON_APPLPushbutton for Application DMS_APPL_ICONCHAR4CHAR4
CONTENT_PROVIDEHow is the content of the original transferred DMS_CONTENT_PROVIDECHAR5DMS_CONTENT_PROVIDE
ICON_COPY_STATUSIndicates whether original has been copied CV_ICON_COPY_STATUSCHAR132CHAR132
DMS_TARGET_FILEPOriginal of document DMS_TARGET_FILEPCHAR255TEXT255
DMS_SOURCE_FILEPOriginal of document DMS_SOURCE_FILEPCHAR255TEXT255
IDX_EXPR_OR'Or' link DMS_IDX_EPR_ORCHAR1XFELD
IDX_EXPR_AND'And' link DMS_IDX_EPR_ANDCHAR1XFELD
IDX_SEARCH_TYPEType of Search DMS_IDX_SEARCH_TYPECHAR25SDOK_TRMAC
CM_FIXED_TEXTDocument is fixed in a baseline CV_CM_FIXED_TEXTCHAR50CHAR50
MAXROWSMaximum number of hits per search DMS_MAXROWSINT25INT2
CHECKFLAGDocument Management Flag CVCHECKFLAGCHAR1CHAR1

Key field Non-key field



How do I retrieve data from SAP structure MCDOK using ABAP code?

As MCDOK is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MCDOK as there is no data to select.

How to access SAP table MCDOK

Within an ECC or HANA version of SAP you can also view further information about MCDOK and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!