C_DefectLongText

DDL: C_DEFECTLONGTEXT Type: view_entity CONSUMPTION Package: ODATA_QM_DEFECT

Defect Long Text

C_DefectLongText is a Consumption CDS View that provides data about "Defect Long Text" in SAP S/4HANA. It reads from 1 data source (I_DefectLongTextTP) and exposes 8 fields with key fields DefectInternalID, Language, ItemCounter. It has 1 association to related views. Part of development package ODATA_QM_DEFECT.

Data Sources (1)

SourceAliasJoin Type
I_DefectLongTextTP I_DefectLongTextTP from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_DefectRecord _Defect $projection.DefectInternalID = _Defect.DefectInternalID

Annotations (14)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.dataCategory #TEXT view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.representativeKey DefectInternalID view
Analytics.technicalName CDEFECTLT view
EndUserText.label Defect Long Text view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID DefectInternalID
KEY Language Language
KEY ItemCounter ItemCounter
LongTextID LongTextID
DefectLongText DefectLongText
MasterLanguage
_Defect _Defect
_Language _Language
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@VDM.viewType: #CONSUMPTION

@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #L

/* Draft 2.0*/
@ObjectModel:{
    dataCategory: #TEXT,
    transactionalProcessingDelegated: true,
    createEnabled: false,
    updateEnabled: true,
    deleteEnabled: false,
    
    representativeKey: 'DefectInternalID'
}
@Analytics.technicalName: 'CDEFECTLT' 
@EndUserText.label: 'Defect Long Text'
define view entity C_DefectLongText as select from I_DefectLongTextTP 

    association [1..1] to C_DefectRecord as _Defect on $projection.DefectInternalID = _Defect.DefectInternalID
{
    @ObjectModel.foreignKey.association: '_Defect'
    @UI.hidden: true
    key DefectInternalID,
    
    @Semantics.language: true
    @UI.hidden: true
    key Language,
    
    @UI.hidden: true
    key ItemCounter,
    
    @UI.hidden: true
    LongTextID,
    
    @UI:    { multiLineText: true }
    DefectLongText,
    
    @Consumption.hidden: true
    cast( _Defect.MasterLanguage as vdm_j_masterlanguage ) as MasterLanguage,
           
    /* Associations */
    @ObjectModel.association.type:  [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
    _Defect,
    _Language

} where ItemCounter = 1 and Language = _Defect.MasterLanguage