R_LegalCategoryTP

DDL: R_LEGALCATEGORYTP Type: view_entity TRANSACTIONAL Package: APPL_LCM_CAT

Legal Category

R_LegalCategoryTP is a Transactional CDS View that provides data about "Legal Category" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMCategory) and exposes 25 fields with key field LglCntntMCategory. It has 5 associations to related views. Part of development package APPL_LCM_CAT.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMCategory I_LglCntntMCategory from

Associations (5)

CardinalityTargetAliasCondition
[0..*] I_LglCntntMCatModelText _LglCntntMCatModelText $projection.LglCntntMCatModel = _LglCntntMCatModelText.LglCntntMCatModel
[0..1] I_LglCntntMCategoryTypeText _LglCntntMCategoryTypeText $projection.LglCntntMCatType = _LglCntntMCategoryTypeText.LglCntntMCatType
[0..*] I_LglCntntMCatPurposeText _LglCntntMCatPurposeText $projection.LglCntntMCatPurpose = _LglCntntMCatPurposeText.LglCntntMCatPurpose
[0..*] I_LglCntntMCategoryCnstntText _LglCntntMCategoryCnstntText $projection.LglCntntMCatConstant = _LglCntntMCategoryCnstntText.LglCntntMCatConstant
[1..*] R_LegalCategoryItemTP _LglCntntMCategoryItemTP

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.representativeKey LglCntntMCategory view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.sapObjectNodeType.name LegalCategory view
EndUserText.label Legal Category view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMCategory LglCntntMCategory Category ID
LglCntntMCategoryName LglCntntMCategoryName Category Name
LglCntntMCatType LglCntntMCatType Category Type
LglCntntMCatIsMultiSelection LglCntntMCatIsMultiSelection Multiple Selection
LglCntntMCatIsSelect LglCntntMCatIsSelect Is Selectable
LglCntntMCatLevel LglCntntMCatLevel Category Level
LglCntntMCatIsObsolete LglCntntMCatIsObsolete Obsolete
LglCntntMCatModel LglCntntMCatModel Model for Dnmc. Ctg.
LglCntntMCategoryValue LglCntntMCategoryValue Category Value
LglCntntMCatIsUpdateFromTable LglCntntMCatIsUpdateFromTable Is Update From Table
LglCntntMChangedByUser LglCntntMChangedByUser Changed By
LglCntntMChangedUTCDateTime LglCntntMChangedUTCDateTime Changed On
LglCntntMCreatedByUser LglCntntMCreatedByUser Created By
LglCntntMCreatedUTCDateTime LglCntntMCreatedUTCDateTime Created On
LglCntntMParentCategory LglCntntMParentCategory Parent Category ID
LglCntntMRootCategory LglCntntMRootCategory Root Category ID
LglCntntMCatPurpose LglCntntMCatPurpose Category Purpose
LglCntntMCatIsSystGenerated LglCntntMCatIsSystGenerated System gen. category
LglCntntMCatConstant LglCntntMCatConstant Category Qualifier
LglCntntMLongTextUUID LglCntntMLongTextUUID Description UUID
_LglCntntMCategoryItemTP _LglCntntMCategoryItemTP
_LglCntntMCatModelText _LglCntntMCatModelText
_LglCntntMCategoryTypeText _LglCntntMCategoryTypeText
_LglCntntMCatPurposeText _LglCntntMCatPurposeText
_LglCntntMCategoryCnstntText _LglCntntMCategoryCnstntText

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 R_LegalCategoryTP.
-- 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.

CREATE VIEW R_LegalCategoryTP AS
SELECT
  LglCntntMCategory,
  LglCntntMCategoryName,
  LglCntntMCatType,
  LglCntntMCatIsMultiSelection,
  LglCntntMCatIsSelect,
  LglCntntMCatLevel,
  LglCntntMCatIsObsolete,
  LglCntntMCatModel,
  LglCntntMCategoryValue,
  LglCntntMCatIsUpdateFromTable,
  LglCntntMChangedByUser,
  LglCntntMChangedUTCDateTime,
  LglCntntMCreatedByUser,
  LglCntntMCreatedUTCDateTime,
  LglCntntMParentCategory,
  LglCntntMRootCategory,
  LglCntntMCatPurpose,
  LglCntntMCatIsSystGenerated,
  LglCntntMCatConstant,
  LglCntntMLongTextUUID
FROM I_LglCntntMCategory
LEFT OUTER JOIN I_LglCntntMCatModelText AS _LglCntntMCatModelText ON LglCntntMCatModel = _LglCntntMCatModelText.LglCntntMCatModel  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMCategoryTypeText AS _LglCntntMCategoryTypeText ON LglCntntMCatType = _LglCntntMCategoryTypeText.LglCntntMCatType  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMCatPurposeText AS _LglCntntMCatPurposeText ON LglCntntMCatPurpose = _LglCntntMCatPurposeText.LglCntntMCatPurpose  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMCategoryCnstntText AS _LglCntntMCategoryCnstntText ON LglCntntMCatConstant = _LglCntntMCategoryCnstntText.LglCntntMCatConstant  -- association [0..*]
LEFT OUTER JOIN R_LegalCategoryItemTP AS _LglCntntMCategoryItemTP ON /* condition not available in parsed metadata */  -- association [1..*]
;