P_HUPSchedgAgrmt
Scheduling Agreement Item details 4 HUP
P_HUPSchedgAgrmt is a Basic CDS View that provides data about "Scheduling Agreement Item details 4 HUP" in SAP S/4HANA. It reads from 2 data sources (vbak, vbap) and exposes 16 fields with key fields SalesSchedulingAgreement, SalesSchedulingAgreementItem. It has 2 associations to related views.
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_HUPProduct | _Product | $projection.Product = _Product.Product and $projection.Plant = _Product.Plant |
| [0..*] | I_ProductText | _ProductText | $projection.Product = _ProductText.Product |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Scheduling Agreement Item details 4 HUP | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SalesSchedulingAgreement | vbap | vbeln | SD Sched. Agmt |
| KEY | SalesSchedulingAgreementItem | vbap | posnr | WBS Element |
| SalesDocumentType | vbap | auart_ana | Sales Doc. Type | |
| OrganizationDivision | vbap | spart_ana | Division | |
| SalesOrganization | vbap | vkorg_ana | Sales Org. | |
| DistributionChannel | vbap | vtweg_ana | Distr. Channel | |
| Plant | vbap | werks | Receiving Plant | |
| StorageLocation | vbap | lgort | Sublocation | |
| ShipToParty | vbap | kunwe_ana | Ship-to Party | |
| Product | ||||
| OrderQuantity | vbap | kwmeng | Sales Quantity | |
| OrderQuantityUnit | vbap | vrkme | UoM for SubItm CCD | |
| SalesDocumentDate | vbap | audat_ana | Document Date | |
| SDDocumentCategory | vbap | vbtyp_ana | Document Cat. | |
| _Product | _Product | |||
| _ProductText | _ProductText |
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_HUPSchedgAgrmt.
-- 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.
CREATE VIEW P_HUPSchedgAgrmt AS
SELECT
_SalesDocumentItem.vbeln AS SalesSchedulingAgreement,
_SalesDocumentItem.posnr AS SalesSchedulingAgreementItem,
_SalesDocumentItem.auart_ana AS SalesDocumentType,
_SalesDocumentItem.spart_ana AS OrganizationDivision,
_SalesDocumentItem.vkorg_ana AS SalesOrganization,
_SalesDocumentItem.vtweg_ana AS DistributionChannel,
_SalesDocumentItem.werks AS Plant,
_SalesDocumentItem.lgort AS StorageLocation,
_SalesDocumentItem.kunwe_ana AS ShipToParty,
cast (_SalesDocumentItem.matnr as productnumber preserving type) AS Product,
_SalesDocumentItem.kwmeng AS OrderQuantity,
_SalesDocumentItem.vrkme AS OrderQuantityUnit,
_SalesDocumentItem.audat_ana AS SalesDocumentDate,
_SalesDocumentItem.vbtyp_ana AS SDDocumentCategory
FROM vbap AS _SalesDocumentItem
INNER JOIN vbak AS _SalesDocumentHeader ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_HUPProduct AS _Product ON Product = _Product.Product AND Plant = _Product.Plant -- association [0..1]
LEFT OUTER JOIN I_ProductText AS _ProductText ON Product = _ProductText.Product -- association [0..*]
;
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