P_AR_DeliveryDocument

DDL: P_AR_DELIVERYDOCUMENT Type: view_entity CONSUMPTION

P_AR_DeliveryDocument is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (I_DeliveryDocument, I_DeliveryDocumentType, I_SalesOrganization) and exposes 6 fields with key fields CompanyCode, AccountingDocument, DocumentReferenceID, AR_OfficialDocumentClass.

Data Sources (3)

SourceAliasJoin Type
I_DeliveryDocument DeliveryDocument from
I_DeliveryDocumentType DeliveryDocumentType inner
I_SalesOrganization SalesOrganization inner

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_SalesOrganization CompanyCode Receiver Company Code
KEY AccountingDocument I_DeliveryDocument DeliveryDocument Outbound Delivery
KEY DocumentReferenceID I_DeliveryDocument ReferenceDocumentNumber Reference
KEY AR_OfficialDocumentClass I_DeliveryDocumentType AR_ElectronicDocDocumentClass Document Class
DocumentType I_DeliveryDocumentType DeliveryDocumentType Delivery Type
CreationDate14endasgjahrasFiscalYear

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_AR_DeliveryDocument.
-- 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_AR_DeliveryDocument AS
SELECT
  SalesOrganization.CompanyCode AS CompanyCode,
  DeliveryDocument.DeliveryDocument AS AccountingDocument,
  DeliveryDocument.ReferenceDocumentNumber AS DocumentReferenceID,
  DeliveryDocumentType.AR_ElectronicDocDocumentClass AS AR_OfficialDocumentClass,
  DeliveryDocumentType.DeliveryDocumentType AS DocumentType,
  cast( case when SalesOrganization.ArgentinaDeliveryDateEvent = '1' then substring(DeliveryDocument.ActualGoodsMovementDate, 1, 4) else substring(DeliveryDocument.CreationDate, 1, 4) end as gjahr ) as FiscalYear AS CreationDate14endasgjahrasFiscalYear
FROM I_DeliveryDocument AS DeliveryDocument
INNER JOIN I_SalesOrganization AS SalesOrganization ON /* join condition not captured in parsed metadata */
INNER JOIN I_DeliveryDocumentType AS DeliveryDocumentType ON /* join condition not captured in parsed metadata */
;