P_DEFECTAFFCDOBJLASTACTNCHG

CDS View

P_DEFECTAFFCDOBJLASTACTNCHG is a CDS View in S/4HANA. It contains 2 fields. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
I_DefectAffectedObjLastTask view from COMPOSITE Data of Latest Follow-up Action for Affected Object

Fields (2)

KeyField CDS FieldsUsed in Views
KEY DefectAffectedObject DefectAffectedObject 1
KEY DefectInternalID DefectInternalID 1
@AbapCatalog.sqlViewName: 'PDEFAOLASTACTCHG'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter:true

@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
    viewType: #COMPOSITE,
    private: true
}
@AccessControl.authorizationCheck: #NOT_REQUIRED

@ObjectModel: {
    usageType: {
        dataClass: #TRANSACTIONAL,
        sizeCategory: #M,
        serviceQuality: #A },
    representativeKey: 'DefectAffectedObject'
}

define view P_DefectAffcdObjLastActnChg 
  as select from P_DefectAffcdObjActnParam 
{
  key P_DefectAffcdObjActnParam.DefectInternalID,
  key P_DefectAffcdObjActnParam.DefectAffectedObject,

      max(P_DefectAffcdObjActnParam.ChangedDateTime) as LastChangedDateTime
}
  where    P_DefectAffcdObjActnParam.QltyTaskFllwUpActionSts = '10' 
        or P_DefectAffcdObjActnParam.QltyTaskFllwUpActionSts = '20'
        or P_DefectAffcdObjActnParam.QltyTaskFllwUpActionSts = '21'
  group by
        P_DefectAffcdObjActnParam.DefectInternalID,
        P_DefectAffcdObjActnParam.DefectAffectedObject