P_Cfd_Business_Context
Business Contexts for Custom Fields
P_Cfd_Business_Context is a CDS View that provides data about "Business Contexts for Custom Fields" in SAP S/4HANA. It reads from 1 data source (cfd_w_bus_ctxt) and exposes 15 fields with key field BusinessContext. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cfd_w_bus_ctxt | Context | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | P_Cfd_Business_Context_Text | _Text | $projection.BusinessContext = _Text.BusinessContext |
| [0..1] | P_Cfd_Business_Context_Text | _textsessionlanguage | $projection.BusinessContext = _textsessionlanguage.BusinessContext and _textsessionlanguage.Description is not null and not _textsessionlanguage.Description = '' and _textsessionlanguage.Language = $session.system_language |
| [0..1] | P_Cfd_Business_Context_Text | _textfallbacklanguage | $projection.BusinessContext = _textfallbacklanguage.BusinessContext and _textfallbacklanguage.Description is not null and not _textfallbacklanguage.Description = '' and _textfallbacklanguage.Language = 'E' |
| [1] | I_CFD_Release_Status | _ReleaseStatus | $projection.ReleaseStatus = _ReleaseStatus.Code |
Annotations (3)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | P_CFD_BUS_CTX | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| EndUserText.label | Business Contexts for Custom Fields | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BusinessContext | cfd_w_bus_ctxt | business_context | Business Context |
| BusinessContextSuffix | cfd_w_bus_ctxt | persistence_context_suffix | Field Suffix | |
| ReleaseStatus | cfd_w_bus_ctxt | release_status | Status | |
| Availability | cfd_w_bus_ctxt | availability | Pkg. Release Status | |
| SupportsStructuralEnhancements | cfd_w_bus_ctxt | structural_enhancement | Structural Enh. | |
| SupportsLogicEnhancements | cfd_w_bus_ctxt | logic_enhancement | Logic Enhancement | |
| CharacteristicsRelevant | cfd_w_bus_ctxt | characteristics_relevant | Characteristics | |
| UppercaseOnlyCodeLists | cfd_w_bus_ctxt | uppercase_only_code_lists | Uppercase Code Lists | |
| Description | ||||
| DescriptionRegCurrentLanguage | _textsessionlanguage | RegistryText | ||
| DescriptionDdlCurrentLanguage | _textsessionlanguage | DdlText | ||
| DescriptionRegFallbackLanguage | _textfallbacklanguage | RegistryText | ||
| DescriptionDdlFallbackLanguage | _textfallbacklanguage | DdlText | ||
| _Text | _Text | |||
| _ReleaseStatus | _ReleaseStatus |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_Cfd_Business_Context.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: P_CFD_BUS_CTX
CREATE VIEW P_Cfd_Business_Context AS
SELECT
Context.business_context AS BusinessContext,
Context.persistence_context_suffix AS BusinessContextSuffix,
Context.release_status AS ReleaseStatus,
Context.availability AS Availability,
Context.structural_enhancement AS SupportsStructuralEnhancements,
Context.logic_enhancement AS SupportsLogicEnhancements,
Context.characteristics_relevant AS CharacteristicsRelevant,
Context.uppercase_only_code_lists AS UppercaseOnlyCodeLists,
coalesce( coalesce( _textsessionlanguage.Description, _textfallbacklanguage.Description ), Context.business_context ) AS Description,
_textsessionlanguage.RegistryText AS DescriptionRegCurrentLanguage,
_textsessionlanguage.DdlText AS DescriptionDdlCurrentLanguage,
_textfallbacklanguage.RegistryText AS DescriptionRegFallbackLanguage,
_textfallbacklanguage.DdlText AS DescriptionDdlFallbackLanguage
FROM cfd_w_bus_ctxt AS Context
LEFT OUTER JOIN P_Cfd_Business_Context_Text AS _Text ON BusinessContext = _Text.BusinessContext -- association [1..*]
LEFT OUTER JOIN P_Cfd_Business_Context_Text AS _textsessionlanguage ON BusinessContext = _textsessionlanguage.BusinessContext AND _textsessionlanguage.Description is not null AND not _textsessionlanguage.Description = '' AND _textsessionlanguage.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN P_Cfd_Business_Context_Text AS _textfallbacklanguage ON BusinessContext = _textfallbacklanguage.BusinessContext AND _textfallbacklanguage.Description is not null AND not _textfallbacklanguage.Description = '' AND _textfallbacklanguage.Language = 'E' -- association [0..1]
LEFT OUTER JOIN I_CFD_Release_Status AS _ReleaseStatus ON ReleaseStatus = _ReleaseStatus.Code -- association [1]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA