P_AssldReltdSerialNumberBatch

DDL: P_ASSLDRELTDSERIALNUMBERBATCH SQL: PMPEASSRLTDSRNB Type: view COMPOSITE

P_AssldReltdSerialNumberBatch is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OpActyComponentAssignment, P_MfgOrderCompAssyWthoutInstce) and exposes 22 fields with key fields Reservation, ReservationItem, RecordType, OpActyNtwkInstance, OpActyNtwkElement.

Data Sources (2)

SourceAliasJoin Type
I_OpActyComponentAssignment OpActyComponentAssignment from
P_MfgOrderCompAssyWthoutInstce RelatedCompAssyWthoutInstce inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPEASSRLTDSRNB view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter 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 (22)

KeyFieldSource TableSource FieldDescription
KEY Reservation I_OpActyComponentAssignment Reservation Reservation
KEY ReservationItem I_OpActyComponentAssignment ReservationItem Reservation Item
KEY RecordType I_OpActyComponentAssignment RecordType Reservation Record Type
KEY OpActyNtwkInstance I_OpActyComponentAssignment OpActyNtwkInstance Instance ID
KEY OpActyNtwkElement I_OpActyComponentAssignment OpActyNtwkElement Element Number
KEY AssemblyShopFloorItem P_MfgOrderCompAssyWthoutInstce AssemblyShopFloorItem
KEY ShopFloorItem P_MfgOrderCompAssyWthoutInstce ShopFloorItem Serial.Mat. ID
KEY Batch P_MfgOrderCompAssyWthoutInstce Batch Lot No.
KEY Material P_MfgOrderCompAssyWthoutInstce Material Vehicle Model
KEY Plant P_MfgOrderCompAssyWthoutInstce Plant Valuation Area
AssembledQuantity P_MfgOrderCompAssyWthoutInstce MaterialComponentQuantity
AlreadyDisassembledQuantity
MaterialBaseUnit P_MfgOrderCompAssyWthoutInstce MaterialBaseUnit Valuation Unit
EntryUnit P_MfgOrderCompAssyWthoutInstce EntryUnit Unit of Entry
_OpActyNtwkInstance I_OpActyComponentAssignment _OpActyNtwkInstance
_OperationActivityInstance I_OpActyComponentAssignment _OperationActivityInstance
_ReservationHeader I_OpActyComponentAssignment _ReservationHeader
_ShopFloorItem P_MfgOrderCompAssyWthoutInstce _ShopFloorItem
_ParentShopFloorItem P_MfgOrderCompAssyWthoutInstce _ParentShopFloorItem
_BatchDistinct P_MfgOrderCompAssyWthoutInstce _BatchDistinct
_Material P_MfgOrderCompAssyWthoutInstce _Material
_Plant P_MfgOrderCompAssyWthoutInstce _Plant

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_AssldReltdSerialNumberBatch.
-- 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: PMPEASSRLTDSRNB

CREATE VIEW P_AssldReltdSerialNumberBatch AS
SELECT
  OpActyComponentAssignment.Reservation AS Reservation,
  OpActyComponentAssignment.ReservationItem AS ReservationItem,
  OpActyComponentAssignment.RecordType AS RecordType,
  OpActyComponentAssignment.OpActyNtwkInstance AS OpActyNtwkInstance,
  OpActyComponentAssignment.OpActyNtwkElement AS OpActyNtwkElement,
  RelatedCompAssyWthoutInstce.AssemblyShopFloorItem AS AssemblyShopFloorItem,
  RelatedCompAssyWthoutInstce.ShopFloorItem AS ShopFloorItem,
  RelatedCompAssyWthoutInstce.Batch AS Batch,
  RelatedCompAssyWthoutInstce.Material AS Material,
  RelatedCompAssyWthoutInstce.Plant AS Plant,
  RelatedCompAssyWthoutInstce.MaterialComponentQuantity AS AssembledQuantity,
  cast(coalesce(OwnCompAssyWthoutInstce.MaterialComponentQuantity, 0) as kmpmg preserving type) AS AlreadyDisassembledQuantity,
  RelatedCompAssyWthoutInstce.MaterialBaseUnit AS MaterialBaseUnit,
  RelatedCompAssyWthoutInstce.EntryUnit AS EntryUnit,
  OpActyComponentAssignment._OpActyNtwkInstance AS _OpActyNtwkInstance,
  OpActyComponentAssignment._OperationActivityInstance AS _OperationActivityInstance,
  OpActyComponentAssignment._ReservationHeader AS _ReservationHeader,
  RelatedCompAssyWthoutInstce._ShopFloorItem AS _ShopFloorItem,
  RelatedCompAssyWthoutInstce._ParentShopFloorItem AS _ParentShopFloorItem,
  RelatedCompAssyWthoutInstce._BatchDistinct AS _BatchDistinct,
  RelatedCompAssyWthoutInstce._Material AS _Material,
  RelatedCompAssyWthoutInstce._Plant AS _Plant
FROM I_OpActyComponentAssignment AS OpActyComponentAssignment
INNER JOIN P_MfgOrderCompAssyWthoutInstce AS RelatedCompAssyWthoutInstce ON /* join condition not captured in parsed metadata */
;