P_purgdocconf
Private View for Supplier Conf
P_purgdocconf is a Consumption CDS View that provides data about "Private View for Supplier Conf" in SAP S/4HANA. It reads from 1 data source (P_Purgdocument) and exposes 64 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine, SupplierConfirmationCategory. It has 4 associations to related views. Part of development package ODATA_MM_PUR_SUPLRCONF_MNTR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_Purgdocument | P_Purgdocument | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_PurchaseOrderStatus | _PurchaseOrderStatus | _PurchaseOrderStatus.PurchaseOrder = $projection.PurchasingDocument |
| [1..1] | I_Schedgagrmthdr | _SAHeader | $projection.PurchasingDocument = _SAHeader.SchedulingAgreement |
| [1..1] | P_SchedgAgrmtItmGRQty | _SAItemGR | _SAItemGR.SchedulingAgreement = $projection.PurchasingDocument and _SAItemGR.SchedulingAgreementItem = $projection.PurchasingDocumentItem |
| [1..1] | P_PurgDocMissingSuplrConf | _PurgDocMissingSuplrConf | _PurgDocMissingSuplrConf.PurchasingDocument = $projection.PurchasingDocument and _PurgDocMissingSuplrConf.PurchasingDocumentItem = $projection.PurchasingDocumentItem |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPURDOCCON | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| EndUserText.label | Private View for Supplier Conf | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchasingDocument | PurchasingDocument | Purchasing Document | |
| KEY | PurchasingDocumentItem | PurchasingDocumentItem | Purchasing Doc. Item | |
| KEY | ScheduleLine | ScheduleLine | Schedule Line | |
| KEY | SupplierConfirmationCategory | SupplierConfirmationCategory | Confirm. Cat. | |
| ScheduleLineUniqueID | ScheduleLineUniqueID | |||
| MaterialName | MaterialName | Material Description | ||
| AccountAssignmentCategory | AccountAssignmentCategory | Acct Assgmt Cat | ||
| CompanyCodeName | CompanyCodeName | Company Name | ||
| PurchasingGroup | PurchasingGroup | Purchasing Group | ||
| ConfirmationControl | ConfirmationControl | Conf. Control | ||
| PurchasingOrganization | PurchasingOrganization | Purchasing Organization | ||
| Material | Material | Vehicle Model | ||
| MaterialGroup | MaterialGroup | Product Group | ||
| PlantName | PlantName | Plant Name | ||
| PurchasingOrganizationName | PurchasingOrganizationName | Purch. Org. Name | ||
| PurchasingGroupName | PurchasingGroupName | Purchasing Grp. Name | ||
| PurchasingDocumentName | PurchasingDocumentName | Purch. Doc. Name | ||
| PurchasingDocumentType | PurchasingDocumentType | RFQ Type | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| DelivDateCategory | DelivDateCategory | Delivery Date | ||
| Supplier | Supplier | Supplier | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| SupplierName | SupplierName | Supplier Name | ||
| PurchasingDocumentCategory | PurchasingDocumentCategory | Doc. Category | ||
| OrderQuantity | OrderQuantity | Quantity | ||
| NetAmount | NetAmount | Stated Amount | ||
| PurchasingDocumentDeletionCode | PurchasingDocumentDeletionCode | Del. Indicator | ||
| CompanyCode | CompanyCode | Receiver Company Code | ||
| PurchasingDocumentItemCategory | PurchasingDocumentItemCategory | Item Category | ||
| NetPriceAmount | NetPriceAmount | Net Price | ||
| NetPriceQuantity | NetPriceQuantity | Price Unit | ||
| MaterialNumber | MaterialNumber | Material | ||
| ShortText | ShortText | Text | ||
| Plant | Plant | Valuation Area | ||
| OrderUnit | OrderUnit | Commercial | ||
| CummulativeSheduleQuantity | CummulativeSheduleQuantity | |||
| PurchasingCategory | PurchasingCategory | Purchasing Category | ||
| PurgCatName | PurgCatName | Purchasing Cat. Name | ||
| AcctAssignmentCategoryName | AcctAssignmentCategoryName | Description | ||
| ScheduleLineDeliveryDate | ScheduleLineDeliveryDate | Delivery Date | ||
| SupplierConfCategoryName | SupplierConfCategoryName | |||
| OrderedQuantity | OrderedQuantity | Quantity | ||
| BalanceQuantity | BalanceQuantity | Balance Quantity | ||
| KeyDate | KeyDate | Maturity Key Date | ||
| ItemPrice | ItemPrice | |||
| ValidityStartDate | ValidityStartDate | Validity Start Date | ||
| ValidityEndDate | ValidityEndDate | ValidTo | ||
| TargetAmount | TargetAmount | Target Value | ||
| RequirementTracking | RequirementTracking | Tracking Number | ||
| StorageLocation | StorageLocation | StorageLocation | ||
| StorageLocationName | StorageLocationName | Storage Loc. Name | ||
| NetValueAmount | NetValueAmount | |||
| PurchasingProcessingStatus | PurchasingProcessingStatus | Proc. State | ||
| PurgDocExternalItemCategory | PurgDocExternalItemCategory | Item Category | ||
| PurgDocItemCategoryName | PurgDocItemCategoryName | Text for ItCat. | ||
| CommittedQuantity | CommittedQuantity | |||
| ScheduleLineCommittedAmount | ScheduleLineCommittedAmount | |||
| quan133endasScheduleLinePndgQtyInStkUnit | ||||
| CreationDate | CreationDate | Time Stamp | ||
| char10asDurationToNextStatusInDays | ||||
| ReleasedQuantityendasReleasedQuantity | ||||
| GoodsReceiptQtyendasGoodsReceiptQty | ||||
| _MaterialGroup | _MaterialGroup | |||
| _Supplier | _Supplier |
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_purgdocconf.
-- 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: PPURDOCCON
CREATE VIEW P_purgdocconf AS
SELECT
PurchasingDocument,
PurchasingDocumentItem,
ScheduleLine,
SupplierConfirmationCategory,
ScheduleLineUniqueID,
MaterialName,
AccountAssignmentCategory,
CompanyCodeName,
PurchasingGroup,
ConfirmationControl,
PurchasingOrganization,
Material,
MaterialGroup,
PlantName,
PurchasingOrganizationName,
PurchasingGroupName,
PurchasingDocumentName,
PurchasingDocumentType,
DocumentDate,
DelivDateCategory,
Supplier,
DocumentCurrency,
SupplierName,
PurchasingDocumentCategory,
OrderQuantity,
NetAmount,
PurchasingDocumentDeletionCode,
CompanyCode,
PurchasingDocumentItemCategory,
NetPriceAmount,
NetPriceQuantity,
MaterialNumber,
ShortText,
Plant,
OrderUnit,
CummulativeSheduleQuantity,
PurchasingCategory,
PurgCatName,
AcctAssignmentCategoryName,
ScheduleLineDeliveryDate,
SupplierConfCategoryName,
OrderedQuantity,
BalanceQuantity,
KeyDate,
ItemPrice,
ValidityStartDate,
ValidityEndDate,
TargetAmount,
RequirementTracking,
StorageLocation,
StorageLocationName,
NetValueAmount,
PurchasingProcessingStatus,
PurgDocExternalItemCategory,
PurgDocItemCategoryName,
CommittedQuantity,
ScheduleLineCommittedAmount,
case when CommittedQuantity is null then OrderedQuantity else cast( OrderedQuantity - CommittedQuantity as abap.quan(13,3) ) end as ScheduleLinePndgQtyInStkUnit AS quan133endasScheduleLinePndgQtyInStkUnit,
CreationDate,
cast( case when DurationToNextStatusInDays <= weekday1 and DurationToNextStatusInDays >= 0 then '2' when DurationToNextStatusInDays > weekday1 then '3' else '1' end as abap.char( 10 ) ) as DurationToNextStatusInDays AS char10asDurationToNextStatusInDays,
case when (_SAItemGR.ReleasedQuantity is null) then cast (0 as abap.quan(13,3)) else _SAItemGR.ReleasedQuantity end as ReleasedQuantity AS ReleasedQuantityendasReleasedQuantity,
case when (_SAItemGR.GoodsReceiptQty is null or GoodsReceiptIsExpected <> 'X') then cast(0 as abap.quan(13,3)) else _SAItemGR.GoodsReceiptQty end as GoodsReceiptQty AS GoodsReceiptQtyendasGoodsReceiptQty
FROM P_Purgdocument
LEFT OUTER JOIN I_PurchaseOrderStatus AS _PurchaseOrderStatus ON _PurchaseOrderStatus.PurchaseOrder = PurchasingDocument -- association [1..1]
LEFT OUTER JOIN I_Schedgagrmthdr AS _SAHeader ON PurchasingDocument = _SAHeader.SchedulingAgreement -- association [1..1]
LEFT OUTER JOIN P_SchedgAgrmtItmGRQty AS _SAItemGR ON _SAItemGR.SchedulingAgreement = PurchasingDocument AND _SAItemGR.SchedulingAgreementItem = PurchasingDocumentItem -- association [1..1]
LEFT OUTER JOIN P_PurgDocMissingSuplrConf AS _PurgDocMissingSuplrConf ON _PurgDocMissingSuplrConf.PurchasingDocument = PurchasingDocument AND _PurgDocMissingSuplrConf.PurchasingDocumentItem = PurchasingDocumentItem -- association [1..1]
;
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