P_purgdocconf

DDL: P_PURGDOCCONF SQL: PPURDOCCON Type: view CONSUMPTION

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 63 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine, SupplierConfirmationCategory. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_Purgdocument P_Purgdocument from

Associations (4)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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 (63)

KeyFieldSource TableSource FieldDescription
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.
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,
  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]
;