P_SubcontrgOrdItemMntr

DDL: P_SUBCONTRGORDITEMMNTR SQL: PSUBCONTRORDMNTR Type: view CONSUMPTION

P view for Monitor Subcontracting Orders

P_SubcontrgOrdItemMntr is a Consumption CDS View that provides data about "P view for Monitor Subcontracting Orders" in SAP S/4HANA. It reads from 1 data source (P_SubcontrgItemQtyAndValueCalc) and exposes 48 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
P_SubcontrgItemQtyAndValueCalc P_SubcontrgItemQtyAndValueCalc from

Associations (1)

CardinalityTargetAliasCondition
[0..1] C_MM_ValidityStatusValHelp _ValidityStatusVH $projection.SchedAgrmtValidityStatus = _ValidityStatusVH.Status

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PSUBCONTRORDMNTR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label P view for Monitor Subcontracting Orders view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
FormattedPurchasingDocItem FormattedPurchasingDocItem
PurchasingDocumentItemText PurchasingDocumentItemText Short Text
Assembly Assembly Pegged Reqmt
AssemblyName AssemblyName
Plant Plant Valuation Area
Subcontractor Subcontractor Supplier
MaterialGroup MaterialGroup Product Group
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
CompanyCode CompanyCode Receiver Company Code
PurchasingOrganization PurchasingOrganization Purchasing Organization
PurchasingGroup PurchasingGroup Purchasing Group
StorageLocation StorageLocation StorageLocation
RequirementTracking RequirementTracking Tracking Number
PurchasingDocumentCategory PurchasingDocumentCategory Doc. Category
PurchasingDocumentCategoryName PurchasingDocumentCategoryName Short Description
PurchasingDocumentType PurchasingDocumentType RFQ Type
PurchasingDocumentTypeName PurchasingDocumentTypeName Description
SchedAgrmtValidityStatus SchedAgrmtValidityStatus
char10endasStatusDescription
ValidityStartDate ValidityStartDate Validity Start Date
ValidityEndDate ValidityEndDate ValidTo
PurchaseOrderType PurchaseOrderType PO Type
PurchaseOrderTypeName PurchaseOrderTypeName Description
OrderQuantity OrderQuantity Quantity
NetAmount NetAmount Stated Amount
TargetAmount TargetAmount Target Value
ReleasedQuantity ReleasedQuantity
ReleasedAmount ReleasedAmount
GoodsReceiptQty GoodsReceiptQty Quantity
GoodsReceiptAmountInCoCodeCrcy GoodsReceiptAmountInCoCodeCrcy
StillToBeDeliveredQuantity StillToBeDeliveredQuantity
StillToBeDeliveredValue StillToBeDeliveredValue
ScheduleLineDeliveryDate ScheduleLineDeliveryDate Delivery Date
OpenPurchaseOrderQuantity
MaterialComponent
Supplier
ShippingStatus
ShippingStatusText
RequirementDate
RequiredQuantity
DocumentCurrency DocumentCurrency Document Currency
PurchaseOrderQuantityUnit OrderQuantityUnit Sales Unit
BaseUnit OrderQuantityUnit Sales Unit
SupplierIsSubcontractor SupplierIsSubcontractor SC Supplier
MRPArea MRPArea MRP Area
_ValidityStatusVH _ValidityStatusVH

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_SubcontrgOrdItemMntr.
-- 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: PSUBCONTRORDMNTR

CREATE VIEW P_SubcontrgOrdItemMntr AS
SELECT
  PurchasingDocument,
  PurchasingDocumentItem,
  FormattedPurchasingDocItem,
  PurchasingDocumentItemText,
  Assembly,
  AssemblyName,
  Plant,
  Subcontractor,
  MaterialGroup,
  AccountAssignmentCategory,
  CompanyCode,
  PurchasingOrganization,
  PurchasingGroup,
  StorageLocation,
  RequirementTracking,
  PurchasingDocumentCategory,
  PurchasingDocumentCategoryName,
  PurchasingDocumentType,
  PurchasingDocumentTypeName,
  SchedAgrmtValidityStatus,
  case when PurchasingDocumentCategory = 'F' then cast ('' as abap.char(10)) when PurchasingDocumentCategory = 'L' then cast (_ValidityStatusVH.Name as abap.char(10)) end as StatusDescription AS char10endasStatusDescription,
  ValidityStartDate,
  ValidityEndDate,
  PurchaseOrderType,
  PurchaseOrderTypeName,
  OrderQuantity,
  NetAmount,
  TargetAmount,
  ReleasedQuantity,
  ReleasedAmount,
  GoodsReceiptQty,
  GoodsReceiptAmountInCoCodeCrcy,
  StillToBeDeliveredQuantity,
  StillToBeDeliveredValue,
  ScheduleLineDeliveryDate,
  cast(ScheduleLineOpenQty as nextscheddelivqty_ll) AS OpenPurchaseOrderQuantity,
  cast(' ' as vdm_component) AS MaterialComponent,
  cast(' ' as vdm_thirdptysuplr) AS Supplier,
  cast(' ' as vdm_nextschedshipgsts) AS ShippingStatus,
  cast (' ' as vdm_nextschedshipgsts) AS ShippingStatusText,
  cast('00000000' as vdm_nextschedshipgdte) AS RequirementDate,
  cast(0 as nextschedshipgqty_ll) AS RequiredQuantity,
  DocumentCurrency,
  OrderQuantityUnit AS PurchaseOrderQuantityUnit,
  OrderQuantityUnit AS BaseUnit,
  SupplierIsSubcontractor,
  MRPArea
FROM P_SubcontrgItemQtyAndValueCalc
LEFT OUTER JOIN C_MM_ValidityStatusValHelp AS _ValidityStatusVH ON SchedAgrmtValidityStatus = _ValidityStatusVH.Status  -- association [0..1]
;