C_LglCntntMCategory

DDL: C_LGLCNTNTMCATEGORY SQL: CLCMCATEG Type: view CONSUMPTION Package: ODATA_LCM_CAT

Manage Categories

C_LglCntntMCategory is a Consumption CDS View that provides data about "Manage Categories" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMCategoryTP) and exposes 46 fields with key field LegalCategory. It has 14 associations to related views. Part of development package ODATA_LCM_CAT.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMCategoryTP I_LglCntntMCategoryTP from

Associations (14)

CardinalityTargetAliasCondition
[1..*] C_LglCntntMCategoryItem _LglCntntMCategoryItem $projection.LegalCategory = _LglCntntMCategoryItem.LglCntntMParentCategory
[0..1] C_LglCntntMCatModValueHelp _LglCntntMCatModValueHelp $projection.LglCntntMCatModel = _LglCntntMCatModValueHelp.LglCntntMCatModel
[0..1] C_LglCntntMCatTypeValueHelp _LglCntntMCatTypeValueHelp $projection.LglCntntMCatType = _LglCntntMCatTypeValueHelp.LglCntntMCatType
[1..1] I_LglCntntMCategoryTP _LglCntntMParentCategory $projection.LglCntntMParentCategory = _LglCntntMParentCategory.LglCntntMCategory
[0..1] I_LCMUserContactCard _CreatedByContactCard _CreatedByContactCard.ContactCardType = 'User' and _CreatedByContactCard.ContactCardID = $projection.LglCntntMCreatedByUser and _CreatedByContactCard.ContactCardRole = 'Creator'
[0..1] I_LCMUserContactCard _ChangedByContactCard _ChangedByContactCard.ContactCardType = 'User' and _ChangedByContactCard.ContactCardID = $projection.LglCntntMChangedByUser and _ChangedByContactCard.ContactCardRole = 'Creator'
[0..1] C_LCMUserValueHelp _CreatedBy $projection.LglCntntMCreatedByUser = _CreatedBy.UserID
[0..1] C_LCMUserValueHelp _ChangedBy $projection.LglCntntMChangedByUser = _ChangedBy.UserID
[0..1] C_LCMBooleanValueHelp _CatIsSelect $projection.LglCntntMCatIsSelectFilter = _CatIsSelect.LglCntntMIsChecked
[0..1] C_LCMBooleanValueHelp _CatIsObsolete $projection.LglCntntMCatIsObsoleteFilter = _CatIsObsolete.LglCntntMIsChecked
[0..1] C_LglCntntMCatValueHelp _LglCntntMCatValueHelp $projection.LegalCategory = _LglCntntMCatValueHelp.LglCntntMCategory
[0..*] C_LglCntntMChangeLog _LglCntntMChangeLog $projection.ChangeDocObject = _LglCntntMChangeLog.ChangeDocObject
[1..1] C_LglCntntMExportCategory _LglCntntMExportCategory $projection.LegalCategory = _LglCntntMExportCategory.LegalCategory
[1..1] C_LglCntntMCategoryPurposeVH _LglCntntMCategoryPurposeVH $projection.LglCntntMCatPurpose = _LglCntntMCategoryPurposeVH.LglCntntMCatPurpose

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName CLCMCATEG view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.semanticKey LegalCategory view
ObjectModel.representativeKey LegalCategory view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled false view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
EndUserText.label Manage Categories view
UI.headerInfo.typeName Category view
UI.headerInfo.typeNamePlural Categories view
UI.headerInfo.title.value LglCntntMCategoryName view
UI.headerInfo.description.value LegalCategory view
Search.searchable true view

Fields (46)

KeyFieldSource TableSource FieldDescription
KEY LegalCategory LglCntntMCategory Category
LglCntntMCategoryName LglCntntMCategoryName Name
LglCntntMCategoryNameSyst
LglCntntMCategoryNameInEnglish
LglCntntMCatType LglCntntMCatType Type
LglCntntMCatIsSelect LglCntntMCatIsSelect Selectable
LglCntntMCatIsSelectFilter LglCntntMCatIsSelect Selectable
LglCntntMCatIsObsolete LglCntntMCatIsObsolete Obsolete
LglCntntMCatIsObsoleteFilter LglCntntMCatIsObsolete Obsolete
LglCntntMCatPurpose LglCntntMCatPurpose Purpose
LglCntntMCatIsMultiSelection LglCntntMCatIsMultiSelection Multi-Selectable Values
LglCntntMCatLevel LglCntntMCatLevel Category Level
LglCntntMCatModel LglCntntMCatModel Table for Generation of Categories
LglCntntMCatConstant LglCntntMCatConstant Qualifier
LglCntntMCatIsSystGenerated LglCntntMCatIsSystGenerated System gen. category
LglCntntMCatIsUpdateFromTable LglCntntMCatIsUpdateFromTable Automatically Update Table
LglCntntMCreatedUTCDateTime LglCntntMCreatedUTCDateTime Created On
LglCntntMCreatedByUser LglCntntMCreatedByUser Created By
LglCntntMCreatedByFullName
LglCntntMChangedUTCDateTime LglCntntMChangedUTCDateTime Changed On
LglCntntMChangedByUser LglCntntMChangedByUser Changed By
LglCntntMChangedByFullName
LglCntntMParentCategory LglCntntMParentCategory Parent
LglCntntMParentCategoryName _LglCntntMParentCategory LglCntntMCategoryName Category Name
LglCntntMParCatIsObsolete _LglCntntMParentCategory LglCntntMCatIsObsolete Obsolete
ChangeDocObject
LglCntntMLongText LglCntntMLongText Description
LglCntntMLongTextMimeType LglCntntMLongTextMimeType MIMETYPE
LglCntntMSystemType
_LglCntntMCategoryItem _LglCntntMCategoryItem
_LglCntntMCatModValueHelp _LglCntntMCatModValueHelp
_LglCntntMCatTypeValueHelp _LglCntntMCatTypeValueHelp
_LglCntntMCatModelText _LglCntntMCatModelText
_LglCntntMCategoryTypeText _LglCntntMCategoryTypeText
_LglCntntMCatPurposeText _LglCntntMCatPurposeText
_LglCntntMCategoryCnstntText _LglCntntMCategoryCnstntText
_CreatedByContactCard _CreatedByContactCard
_ChangedByContactCard _ChangedByContactCard
_CreatedBy _CreatedBy
_ChangedBy _ChangedBy
_CatIsSelect _CatIsSelect
_CatIsObsolete _CatIsObsolete
_LglCntntMCatValueHelp _LglCntntMCatValueHelp
_LglCntntMChangeLog _LglCntntMChangeLog
_LglCntntMExportCategory _LglCntntMExportCategory
_LglCntntMCategoryPurposeVH _LglCntntMCategoryPurposeVH

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 C_LglCntntMCategory.
-- 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: CLCMCATEG

CREATE VIEW C_LglCntntMCategory AS
SELECT
  LglCntntMCategory AS LegalCategory,
  LglCntntMCategoryName,
  _LglCntntMCategoryText[1: Language = $session.system_language].LglCntntMCategoryName AS LglCntntMCategoryNameSyst,
  _LglCntntMCategoryText[1: Language = 'E'].LglCntntMCategoryName AS LglCntntMCategoryNameInEnglish,
  LglCntntMCatType,
  LglCntntMCatIsSelect,
  LglCntntMCatIsSelect AS LglCntntMCatIsSelectFilter,
  LglCntntMCatIsObsolete,
  LglCntntMCatIsObsolete AS LglCntntMCatIsObsoleteFilter,
  LglCntntMCatPurpose,
  LglCntntMCatIsMultiSelection,
  LglCntntMCatLevel,
  LglCntntMCatModel,
  LglCntntMCatConstant,
  LglCntntMCatIsSystGenerated,
  LglCntntMCatIsUpdateFromTable,
  LglCntntMCreatedUTCDateTime,
  LglCntntMCreatedByUser,
  cast('' as ad_namtext) AS LglCntntMCreatedByFullName,
  LglCntntMChangedUTCDateTime,
  LglCntntMChangedByUser,
  cast('' as ad_namtext) AS LglCntntMChangedByFullName,
  LglCntntMParentCategory,
  _LglCntntMParentCategory.LglCntntMCategoryName AS LglCntntMParentCategoryName,
  _LglCntntMParentCategory.LglCntntMCatIsObsolete AS LglCntntMParCatIsObsolete,
  cast ( concat( 'CATEGORY', LglCntntMCategory ) as cdobjectv ) AS ChangeDocObject,
  LglCntntMLongText,
  LglCntntMLongTextMimeType,
  cast('' as lcm_system_classification) AS LglCntntMSystemType
FROM I_LglCntntMCategoryTP
LEFT OUTER JOIN C_LglCntntMCategoryItem AS _LglCntntMCategoryItem ON LegalCategory = _LglCntntMCategoryItem.LglCntntMParentCategory  -- association [1..*]
LEFT OUTER JOIN C_LglCntntMCatModValueHelp AS _LglCntntMCatModValueHelp ON LglCntntMCatModel = _LglCntntMCatModValueHelp.LglCntntMCatModel  -- association [0..1]
LEFT OUTER JOIN C_LglCntntMCatTypeValueHelp AS _LglCntntMCatTypeValueHelp ON LglCntntMCatType = _LglCntntMCatTypeValueHelp.LglCntntMCatType  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMCategoryTP AS _LglCntntMParentCategory ON LglCntntMParentCategory = _LglCntntMParentCategory.LglCntntMCategory  -- association [1..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _CreatedByContactCard ON _CreatedByContactCard.ContactCardType = 'User' AND _CreatedByContactCard.ContactCardID = LglCntntMCreatedByUser AND _CreatedByContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN I_LCMUserContactCard AS _ChangedByContactCard ON _ChangedByContactCard.ContactCardType = 'User' AND _ChangedByContactCard.ContactCardID = LglCntntMChangedByUser AND _ChangedByContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN C_LCMUserValueHelp AS _CreatedBy ON LglCntntMCreatedByUser = _CreatedBy.UserID  -- association [0..1]
LEFT OUTER JOIN C_LCMUserValueHelp AS _ChangedBy ON LglCntntMChangedByUser = _ChangedBy.UserID  -- association [0..1]
LEFT OUTER JOIN C_LCMBooleanValueHelp AS _CatIsSelect ON LglCntntMCatIsSelectFilter = _CatIsSelect.LglCntntMIsChecked  -- association [0..1]
LEFT OUTER JOIN C_LCMBooleanValueHelp AS _CatIsObsolete ON LglCntntMCatIsObsoleteFilter = _CatIsObsolete.LglCntntMIsChecked  -- association [0..1]
LEFT OUTER JOIN C_LglCntntMCatValueHelp AS _LglCntntMCatValueHelp ON LegalCategory = _LglCntntMCatValueHelp.LglCntntMCategory  -- association [0..1]
LEFT OUTER JOIN C_LglCntntMChangeLog AS _LglCntntMChangeLog ON ChangeDocObject = _LglCntntMChangeLog.ChangeDocObject  -- association [0..*]
LEFT OUTER JOIN C_LglCntntMExportCategory AS _LglCntntMExportCategory ON LegalCategory = _LglCntntMExportCategory.LegalCategory  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMCategoryPurposeVH AS _LglCntntMCategoryPurposeVH ON LglCntntMCatPurpose = _LglCntntMCategoryPurposeVH.LglCntntMCatPurpose  -- association [1..1]
;