P_SubcontrgOrdItemMntr
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)
| Source | Alias | Join Type |
|---|---|---|
| P_SubcontrgItemQtyAndValueCalc | P_SubcontrgItemQtyAndValueCalc | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_MM_ValidityStatusValHelp | _ValidityStatusVH | $projection.SchedAgrmtValidityStatus = _ValidityStatusVH.Status |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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