P_SupDmndAllDocMatlDocSDBsc

DDL: P_SUPDMNDALLDOCMATLDOCSDBSC Type: view BASIC

P_SupDmndAllDocMatlDocSDBsc is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (ekpo, matdoc) and exposes 5 fields.

Data Sources (2)

SourceAliasJoin Type
ekpo ekpo inner
matdoc MatDoc from

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.sqlViewName PSUPDMNDADMDSDB view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view

Fields (5)

KeyFieldSource TableSource FieldDescription
SalesOrder kdauf SD Document
SalesOrderItem kdpos Sales Ord. Item
PurchaseRequisition ekpo banfn Requisition
PurchaseRequisitionItem ekpo bnfpo Requisn. item
menge1endasQuantityInBaseUnit

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_SupDmndAllDocMatlDocSDBsc.
-- 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 P_SupDmndAllDocMatlDocSDBsc AS
SELECT
  kdauf AS SalesOrder,
  kdpos AS SalesOrderItem,
  ekpo.banfn AS PurchaseRequisition,
  ekpo.bnfpo AS PurchaseRequisitionItem,
  case shkzg when 'S' then matdoc.menge else matdoc.menge * -1 end as QuantityInBaseUnit AS menge1endasQuantityInBaseUnit
FROM matdoc AS MatDoc
INNER JOIN ekpo ON /* join condition not captured in parsed metadata */
;