P_EquipMatlSerialNumStatusAggr

DDL: P_EQUIPMATLSERIALNUMSTATUSAGGR SQL: PMATSRSTATAGGR Type: view COMPOSITE

P_EquipMatlSerialNumStatusAggr is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_EquipMatlSerialNumberStatus) and exposes 25 fields with key fields Material, SerialNumber.

Data Sources (1)

SourceAliasJoin Type
P_EquipMatlSerialNumberStatus EquipMatlSerialNumberStatus from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMATSRSTATAGGR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (25)

KeyFieldSource TableSource FieldDescription
KEY Material P_EquipMatlSerialNumberStatus Material Vehicle Model
KEY SerialNumber P_EquipMatlSerialNumberStatus SerialNumber Serial Number
MaintObjectInternalID P_EquipMatlSerialNumberStatus MaintObjectInternalID Object number
MatlSrlNmbrIsAvailable
MatlSrlNmbrIsDeleted
MatlSrlNmbrIsMrkdForDeltn
MatlSrlNmbrIsInactive
MatlSrlNmbrIsInstalled
MatlSrlNmbrIsAllcToParent
MatlSrlNmbrIsInWarehouse
MatlSrlNmbrIsAssgdToDeliv
MatlSrlNmbrIsAtCustomer
MatlSrlNmbrIsUndrCnstrctn
MatlSrlNmbrIsAssgdToJITCall
MatlSrlNmbrDocIsCreated
MatlSrlNmbrIsLocked
MatlSrlNmbrHndlgUntIsAssgd
MatlSrlNmbrInvtryIsActv
MatlSrlNmbrIsOnHold
MatlSrlNmbrIsIDUndefined
MatlSrlNmbrUUIDIsGnrtd
MatlSrlNmbrUUIDIsAttached
MatlSrlNmbrUUIDIsSent
MatlSrlNmbrUUIDIsConfd
_Material P_EquipMatlSerialNumberStatus _Material

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 P_EquipMatlSerialNumStatusAggr.
-- 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: PMATSRSTATAGGR

CREATE VIEW P_EquipMatlSerialNumStatusAggr AS
SELECT
  EquipMatlSerialNumberStatus.Material AS Material,
  EquipMatlSerialNumberStatus.SerialNumber AS SerialNumber,
  EquipMatlSerialNumberStatus.MaintObjectInternalID AS MaintObjectInternalID,
  max(MatlSrlNmbrIsAvailable) AS MatlSrlNmbrIsAvailable,
  max(MatlSrlNmbrIsDeleted) AS MatlSrlNmbrIsDeleted,
  max(MatlSrlNmbrIsMrkdForDeltn) AS MatlSrlNmbrIsMrkdForDeltn,
  max(MatlSrlNmbrIsInactive) AS MatlSrlNmbrIsInactive,
  max(MatlSrlNmbrIsInstalled) AS MatlSrlNmbrIsInstalled,
  max(MatlSrlNmbrIsAllcToParent) AS MatlSrlNmbrIsAllcToParent,
  max(MatlSrlNmbrIsInWarehouse) AS MatlSrlNmbrIsInWarehouse,
  max(MatlSrlNmbrIsAssgdToDeliv) AS MatlSrlNmbrIsAssgdToDeliv,
  max(MatlSrlNmbrIsAtCustomer) AS MatlSrlNmbrIsAtCustomer,
  max(MatlSrlNmbrIsUndrCnstrctn) AS MatlSrlNmbrIsUndrCnstrctn,
  max(MatlSrlNmbrIsAssgdToJITCall) AS MatlSrlNmbrIsAssgdToJITCall,
  max(MatlSrlNmbrDocIsCreated) AS MatlSrlNmbrDocIsCreated,
  max(MatlSrlNmbrIsLocked) AS MatlSrlNmbrIsLocked,
  max(MatlSrlNmbrHndlgUntIsAssgd) AS MatlSrlNmbrHndlgUntIsAssgd,
  max(MatlSrlNmbrInvtryIsActv) AS MatlSrlNmbrInvtryIsActv,
  max(MatlSrlNmbrIsOnHold) AS MatlSrlNmbrIsOnHold,
  max(MatlSrlNmbrIsIDUndefined) AS MatlSrlNmbrIsIDUndefined,
  max(MatlSrlNmbrUUIDIsGnrtd) AS MatlSrlNmbrUUIDIsGnrtd,
  max(MatlSrlNmbrUUIDIsAttached) AS MatlSrlNmbrUUIDIsAttached,
  max(MatlSrlNmbrUUIDIsSent) AS MatlSrlNmbrUUIDIsSent,
  max(MatlSrlNmbrUUIDIsConfd) AS MatlSrlNmbrUUIDIsConfd,
  EquipMatlSerialNumberStatus._Material AS _Material
FROM P_EquipMatlSerialNumberStatus AS EquipMatlSerialNumberStatus
;