I_FldLogsKitMatlDocAggrgdQty

DDL: I_FLDLOGSKITMATLDOCAGGRGDQTY Type: view_entity COMPOSITE

Kit Material Document Item Aggregated Quantity

I_FldLogsKitMatlDocAggrgdQty is a Composite CDS View that provides data about "Kit Material Document Item Aggregated Quantity" in SAP S/4HANA. It reads from 1 data source (I_FldLogsKitMatlDocumentItem) and exposes 3 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
I_FldLogsKitMatlDocumentItem I_FldLogsKitMatlDocumentItem from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Kit Material Document Item Aggregated Quantity view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
dec133endasNumberOfReceivedParts Quantity

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 I_FldLogsKitMatlDocAggrgdQty.
-- 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.

CREATE VIEW I_FldLogsKitMatlDocAggrgdQty AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  sum(case when GoodsMovementType = '102' then (0 - cast(QuantityInBaseUnit as abap.dec( 13, 3 ))) when GoodsMovementType = '104' then (0 - cast(QuantityInBaseUnit as abap.dec( 13, 3 ))) when GoodsMovementType = '108' then (0 - cast(QuantityInBaseUnit as abap.dec( 13, 3 ))) else cast(QuantityInBaseUnit as abap.dec( 13, 3 )) end) as NumberOfReceivedParts AS dec133endasNumberOfReceivedParts
FROM I_FldLogsKitMatlDocumentItem
;