SAP CFX_CONTEXTS Contexts for Alias Names Table data and field list

CFX_CONTEXTS is a standard SAP Table which is used to store Contexts for Alias Names data in SAP systems, such as SAP R/3, S/4HANA, depending on the version and release level.

The CFX_CONTEXTS table consists of various fields, each holding specific information or linking keys about Contexts for Alias Names data available in SAP. These include ID (UUID in X form (binary)), CONTEXT_ID (Unique ID for Contexts), SORT_KEY ()... 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. .

CFX_CONTEXTS table Technical Details:

Delivery Class: A - Application table (master and transaction data)
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP CFX_CONTEXTS table 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 CFX_CONTEXTS 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
CLIENTClient MANDTCLNT3Assigned to domainMANDT
IDUUID in X form (binary) SYSUUID_XRAW16SYSUUID
CONTEXT_IDUnique ID for Contexts CFX_ALIAS_T_CONTEXT_IDRAW16SYSUUID
SORT_KEY 0

Key field Non-key field



How do I retrieve data from SAP table CFX_CONTEXTS using ABAP code

The following ABAP code Example will allow you to do a basic selection on CFX_CONTEXTS to SELECT all data from the table
DATA: WA_CFX_CONTEXTS TYPE CFX_CONTEXTS.

SELECT SINGLE *
FROM CFX_CONTEXTS
INTO CORRESPONDING FIELDS OF WA_CFX_CONTEXTS
WHERE...

How to access SAP table CFX_CONTEXTS

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

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