SAP GRFN_S_DOCUMENT UI structure for document Table data and field list

GRFN_S_DOCUMENT 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 "UI structure for document" 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_GRFN_S_DOCUMENT TYPE GRFN_S_DOCUMENT.

The GRFN_S_DOCUMENT table consists of various fields, each holding specific information or linking keys about UI structure for document data available in SAP. These include DOCUMENT_ID (Object ID), DOCUMENT_DESCR (String), OBJECT_ID (Object ID), SEGMENT (Document Segment)... 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. .

GRFN_S_DOCUMENT structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can Be Enhanced (Deep)


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

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the GRFN_S_DOCUMENT table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
DOCUMENT_IDObject ID GRFN_API_OBJECT_IDCHAR50CHAR50
DOCUMENT_DESCRString GRFN_TEXTSTRG0
OBJECT_IDObject ID GRFN_API_OBJECT_IDCHAR50CHAR50
SEGMENTDocument Segment GRFN_DOCUMENT_SEGMENTCHAR40CHAR40
CREATED_BYDocument Created By GRFN_DOCUMENT_CREATED_BYCHAR80TEXT80
CREATED_USERUser Name UNAMECHAR12UNAME
CREATED_DATECreation Date of the Document GRFN_DOCUMENT_CREATED_DATEDATS8SYDATS
CREATED_TIMECreation Time of the Document GRFN_DOCUMENT_CREATED_TIMETIMS6SYTIME
MODIFIED_BYDocument Last Changed By GRFN_DOCUMENT_MODIFIED_BY_LISTCHAR80TEXT80
MODIFIED_USERUser Name UNAMECHAR12UNAME
MODIFIED_DATEDate When Document Was Last Changed GRFN_DOCUMENT_MODIFIED_DATEDATS8SYDATS
MODIFIED_TIMETime of Last Change GRFN_DOCUMENT_MODIFIED_TIMETIMS6SYTIME
DOWNLOAD_URLDocument URL for Download GRFN_DOCUMENT_URLCHAR4096SADC4096
DOWNLOAD_URL_TXTCallup GRFN_DOCUMENT_URL_TEXTSTRG0
DOC_CLASSDocument class SDOK_CLASSCHAR10Assigned to domainSDOK_CLASS
DOC_CLASS_TXTDocument Class GRFN_DOCUMENT_CLASS_UI_TXTCHAR60DDTEXT
DOC_CATEGORYCategory GRFN_DOCUMENT_CATEGORY_UI_TXTCHAR60DDTEXT
DOC_ACCESSAccess GRFN_DOCUMENT_ACCESS_UI_TXTCHAR60DDTEXT
DOC_ORIGINOrigin GRFN_DOCUMENT_ORIGIN_UI_TXTCHAR60DDTEXT
DOC_OWNER_TEXTObject to which Document Belongs GRFN_DOCUMENT_OWNER_TEXT_UICHAR60CHAR60
CONTENT_MIMETYPEHTML content type W3CONTTYPECHAR128W3_CONTTYP
CONTENT_SIZESize GRFN_DOCUMENT_CONTENT_SIZE_UICHAR12CHAR12
CONTENT_SIZE_DETSize GRFN_DOCUMENT_CONTENT_SIZE_UICHAR12CHAR12
ORIGINAL_LANGUAGEOriginal Language in Repository objects MASTERLANGLANG1Assigned to domainISOLASPRASH_T002
CONTENT_UPL_NAMERelative storage location of physical document SDOK_FILNMCHAR255SDOK_FILNM
VERSION_NRVersion GRFN_DOCUMENT_VERSION_TEXT_UICHAR3
NEW_VERSION_POSSIBLEData element for domain BOOLE: TRUE (='X') and FALSE (=' ') BOOLE_DCHAR1BOOLE
ADDED_ONTimeframe / Frequency Text GRFN_TF_TEXTCHAR100GRFN_TF_TEXT
MODIFY_ONTimeframe / Frequency Text GRFN_TF_TEXTCHAR100GRFN_TF_TEXT
LAN_TEXTName of Language SPTXTCHAR16SPTXT16DSB
ICON_SOURCEComment CHAR50CHAR50TEXT50
CELL_VARIANTChar 20 CHAR20CHAR20CHAR20

Key field Non-key field



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

As GRFN_S_DOCUMENT 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 GRFN_S_DOCUMENT as there is no data to select.

How to access SAP table GRFN_S_DOCUMENT

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

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