P_PurchDocAttributes
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)
| Source | Alias | Join Type |
|---|---|---|
| I_PurgDocScheduleLineEnhanced | ScheduleLineEnhanced | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | budat | |
| P_EndDate | budat |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA