P_PurchDocAttributes

DDL: P_PURCHDOCATTRIBUTES SQL: PPURCHDOCATTRIB Type: view CONSUMPTION

Scheduled Purchase Orders

P_PurchDocAttributes is a Consumption CDS View that provides data about "Scheduled Purchase Orders" in SAP S/4HANA. It reads from 1 data source (I_PurgDocScheduleLineEnhanced) and exposes 31 fields with key fields PurchasingDocument, PurchasingDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_PurgDocScheduleLineEnhanced ScheduleLineEnhanced from

Parameters (2)

NameTypeDefault
P_StartDate budat
P_EndDate budat

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PPURCHDOCATTRIB view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Scheduled Purchase Orders view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #NOT_REQUIRED view
AbapCatalog.preserveKey true view

Fields (31)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
CompanyCode CompanyCode Receiver Company Code
Supplier Supplier Supplier
Plant Plant Valuation Area
Material Material Vehicle Model
MaterialGroup MaterialGroup Product Group
DocumentCurrency DocumentCurrency Document Currency
PurchasingDocumentOrderDate PurchasingDocumentOrderDate PO Date
NetPriceInReportingCurrency NetPriceInReportingCurrency Net Price: Re. Cu. 1
NetPriceInReportingCurrency2 NetPriceInReportingCurrency2 Net Price: Re. Cu. 2
NetPriceAmount NetPriceAmount Net Price
NetAmount NetAmount Stated Amount
NetPriceQuantity NetPriceQuantity Price Unit
AnalyticalReportingCurrency AnalyticalReportingCurrency Reporting Currency 1
AnalyticalReportingCurrency2 AnalyticalReportingCurrency2 Reporting Currency 2
OrderQuantityUnit OrderQuantityUnit Sales Unit
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentType PurchasingDocumentType RFQ Type
IsReturnsItem IsReturnsItem Returns Item
IsCompletelyDelivered IsCompletelyDelivered Is completely delivered
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_CompanyCode _CompanyCode
_Supplier _Supplier
_Plant _Plant
_Material _Material
_MaterialGroup _MaterialGroup
_DocumentCurrency _DocumentCurrency

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_PurchDocAttributes.
-- 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: PPURCHDOCATTRIB
-- Parameters: P_StartDate : budat, P_EndDate : budat

CREATE VIEW P_PurchDocAttributes AS
SELECT
  PurchasingDocument,
  PurchasingDocumentItem,
  PurchasingOrganization,
  PurchasingGroup,
  CompanyCode,
  Supplier,
  Plant,
  Material,
  MaterialGroup,
  DocumentCurrency,
  PurchasingDocumentOrderDate,
  NetPriceInReportingCurrency,
  NetPriceInReportingCurrency2,
  NetPriceAmount,
  NetAmount,
  NetPriceQuantity,
  AnalyticalReportingCurrency,
  AnalyticalReportingCurrency2,
  OrderQuantityUnit,
  PurchasingDocumentCategory,
  PurchasingDocumentType,
  IsReturnsItem,
  IsCompletelyDelivered
FROM I_PurgDocScheduleLineEnhanced AS ScheduleLineEnhanced
;