C_ProbSolvingProcDefectRef

DDL: C_PROBSOLVINGPROCDEFECTREF SQL: CPRSOLPROCDFR Type: view CONSUMPTION

Problem-Solving Process Defect Reference

C_ProbSolvingProcDefectRef is a Consumption CDS View that provides data about "Problem-Solving Process Defect Reference" in SAP S/4HANA. It reads from 1 data source (I_ProbSolvingProcDefectRefTP) and exposes 12 fields with key fields ProbSolvingProc, DefectInternalID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProbSolvingProcDefectRefTP _ProbSolvingProcDefectRefTP from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_ProbSolvingProcExect _ProbSolvingProc $projection.ProbSolvingProc = _ProbSolvingProc.ProbSolvingProc
[0..1] I_DefectLongText _DefectDetailedDescription $projection.DefectInternalID = _DefectDetailedDescription.DefectInternalID and $projection.masterlanguage = _DefectDetailedDescription.Language and _DefectDetailedDescription.LongTextInternalNumber = 1

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName CPRSOLPROCDFR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Problem-Solving Process Defect Reference view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey DefectInternalID view
ObjectModel.compositionRoot false view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled false view
ObjectModel.updateEnabled false view
ObjectModel.deleteEnabled false view
Metadata.allowExtensions true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY ProbSolvingProc I_ProbSolvingProcDefectRefTP ProbSolvingProc
KEY DefectInternalID I_ProbSolvingProcDefectRefTP DefectInternalID
DefectIsBaseOfProbSolvingProc I_ProbSolvingProcDefectRefTP DefectIsBaseOfProbSolvingProc
Defect
DefectText
DefectCategory
Material
MasterLanguage
_ProbSolvingProc _ProbSolvingProc
_DefectCategory
_Product
_DefectDetailedDescription _DefectDetailedDescription
@AbapCatalog.sqlViewName: 'CPRSOLPROCDFR'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Problem-Solving Process Defect Reference'
@VDM: {
    viewType: #CONSUMPTION
}
@ObjectModel: {
    usageType: {
        dataClass: #TRANSACTIONAL,
        sizeCategory: #M, 
        serviceQuality: #B },
    representativeKey: 'DefectInternalID',
    semanticKey:  [ 'ProbSolvingProc', 'DefectInternalID' ],
// Begin Draft 2.0

    compositionRoot: false,
    transactionalProcessingDelegated:true,
    createEnabled: false,
    updateEnabled: false,
    deleteEnabled: false 
}
@Metadata.allowExtensions: true

@UI.presentationVariant: { 
                sortOrder: [{ by: 'DefectIsBaseOfProbSolvingProc', direction: #DESC }],
                visualizations: [{type: #AS_LINEITEM }],
                requestAtLeast: ['DefectIsBaseOfProbSolvingProc']
}

define view C_ProbSolvingProcDefectRef as select from I_ProbSolvingProcDefectRefTP as _ProbSolvingProcDefectRefTP 

//=== parent / root node  

    association [1..1] to C_ProbSolvingProcExect as _ProbSolvingProc on $projection.ProbSolvingProc = _ProbSolvingProc.ProbSolvingProc

//=== defect detailed description

    association [0..1] to I_DefectLongText as _DefectDetailedDescription on $projection.DefectInternalID           = _DefectDetailedDescription.DefectInternalID
                                                                        and $projection.masterlanguage             = _DefectDetailedDescription.Language
                                                                        and _DefectDetailedDescription.LongTextInternalNumber = 1
{
//=== key fields

  @ObjectModel.readOnly: true
  key _ProbSolvingProcDefectRefTP.ProbSolvingProc,
  @ObjectModel.readOnly: true
  key _ProbSolvingProcDefectRefTP.DefectInternalID,
  
//=== common fields

     @ObjectModel.readOnly: true
     @Consumption.filter.hidden: true
     _ProbSolvingProcDefectRefTP.DefectIsBaseOfProbSolvingProc,

//=== Defect specific fields

  @ObjectModel: { 
            readOnly:       true
            //text.element:   ['DefectText']

  }
  @Consumption.semanticObject: 'Defect'
  // UX Inc

  @Consumption.valueHelpDefinition: [ 
  { entity: { name:    'I_DefectVH',
              element: 'Defect' }
  }]
      _ProbSolvingProcDefectRefTP._Defect.Defect,
  @ObjectModel.readOnly: true
      _ProbSolvingProcDefectRefTP._Defect.DefectText,
  @ObjectModel.readOnly: true
      _ProbSolvingProcDefectRefTP._Defect.DefectCategory,
  @ObjectModel.readOnly: true
  @Consumption.filter.hidden: true
      _ProbSolvingProcDefectRefTP._Defect.Material,
  @ObjectModel.readOnly: true
  @Consumption.filter.hidden: true
      _ProbSolvingProcDefectRefTP._Defect.MasterLanguage,
            
 //=== exposed associations

  @ObjectModel.association.type:  [ #TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ]
  _ProbSolvingProc,
  @Consumption.filter.hidden: true
  _ProbSolvingProcDefectRefTP._Defect._DefectCategory,
  @Consumption.filter.hidden: true
  _ProbSolvingProcDefectRefTP._Defect._Product,
  @Consumption.filter.hidden: true
  _DefectDetailedDescription
}