P_GdsIssdTotQtyForPO

DDL: P_GDSISSDTOTQTYFORPO SQL: PGDSISSDTOTQTY Type: view COMPOSITE

P_GdsIssdTotQtyForPO is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_GoodsIssueDataSIT) and exposes 3 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (1)

SourceAliasJoin Type
P_GoodsIssueDataSIT P_GoodsIssueDataSIT from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PGDSISSDTOTQTY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
TotalGoodsIssuedForPOQty

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_GdsIssdTotQtyForPO.
-- 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: PGDSISSDTOTQTY

CREATE VIEW P_GdsIssdTotQtyForPO AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  sum( case when DebitCreditCode = 'H' then GoodsIssueQtyInOrderUnit else (0-GoodsIssueQtyInOrderUnit) end) AS TotalGoodsIssuedForPOQty
FROM P_GoodsIssueDataSIT
;