P_Cfd_Business_Context

DDL: P_CFD_BUSINESS_CONTEXT SQL: P_CFD_BUS_CTX Type: view

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)

SourceAliasJoin Type
cfd_w_bus_ctxt Context from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
AbapCatalog.sqlViewName P_CFD_BUS_CTX view
AccessControl.authorizationCheck #NOT_ALLOWED view
EndUserText.label Business Contexts for Custom Fields view

Fields (15)

KeyFieldSource TableSource FieldDescription
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]
;