C_PurchaseContractValHelp
Value help for Purchase Contract
C_PurchaseContractValHelp is a Consumption CDS View that provides data about "Value help for Purchase Contract" in SAP S/4HANA. It reads from 1 data source (I_PurchaseContract) and exposes 10 fields with key field PurchaseContract. It has 3 associations to related views. It is exposed through 5 OData services (ASQL_F2358, ASQL_F2421, ASQL_F2422, ...). Part of development package ODATA_MM_PUR_CTRITEMACCT_MNTR.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PurchaseContract | PurchaseContract | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | C_PurchasingOrgValueHelp | _PurchasingOrgValueHelp | _PurchasingOrgValueHelp.PurchasingOrganization = $projection.PurchasingOrganization |
| [0..1] | C_PurchasingGroupValueHelp | _PurchasingGroupValueHelp | _PurchasingGroupValueHelp.PurchasingGroup = $projection.PurchasingGroup |
| [0..*] | C_MM_SupplierValueHelp | _SupplierValueHelp | _SupplierValueHelp.Supplier = $projection.Supplier |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPURCONTRVH | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Value help for Purchase Contract | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view |
OData Services (5)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2358 | ASQL_F2358 | C2 | NOT_RELEASED | |
| ASQL_F2421 | ASQL_F2421 | C2 | NOT_RELEASED | |
| ASQL_F2422 | ASQL_F2422 | C2 | NOT_RELEASED | |
| ASQL_F2669 | ASQL_F2669 | C2 | NOT_RELEASED | |
| ASQL_F4562 | ASQL_F4562 | C2 | NOT_RELEASED |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PurchaseContract | I_PurchaseContract | PurchaseContract | Purchasing Doc. |
| Supplier | I_PurchaseContract | Supplier | Supplier | |
| DocumentCurrency | I_PurchaseContract | DocumentCurrency | Document Currency | |
| ValidityStartDateendasValidityStartDate | ||||
| ValidityEndDateendasValidityEndDate | ||||
| PurchasingOrganization | I_PurchaseContract | PurchasingOrganization | Purchasing Organization | |
| PurchasingGroup | I_PurchaseContract | PurchasingGroup | Purchasing Group | |
| _PurchasingOrgValueHelp | _PurchasingOrgValueHelp | |||
| _PurchasingGroupValueHelp | _PurchasingGroupValueHelp | |||
| _SupplierValueHelp | _SupplierValueHelp |
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 C_PurchaseContractValHelp.
-- 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: CPURCONTRVH
CREATE VIEW C_PurchaseContractValHelp AS
SELECT
PurchaseContract.PurchaseContract AS PurchaseContract,
PurchaseContract.Supplier AS Supplier,
PurchaseContract.DocumentCurrency AS DocumentCurrency,
case PurchaseContract.ValidityStartDate when (' ') then '00000000' else PurchaseContract.ValidityStartDate end as ValidityStartDate AS ValidityStartDateendasValidityStartDate,
case PurchaseContract.ValidityEndDate when (' ') then '00000000' else PurchaseContract.ValidityEndDate end as ValidityEndDate AS ValidityEndDateendasValidityEndDate,
PurchaseContract.PurchasingOrganization AS PurchasingOrganization,
PurchaseContract.PurchasingGroup AS PurchasingGroup
FROM I_PurchaseContract AS PurchaseContract
LEFT OUTER JOIN C_PurchasingOrgValueHelp AS _PurchasingOrgValueHelp ON _PurchasingOrgValueHelp.PurchasingOrganization = PurchasingOrganization -- association [0..1]
LEFT OUTER JOIN C_PurchasingGroupValueHelp AS _PurchasingGroupValueHelp ON _PurchasingGroupValueHelp.PurchasingGroup = PurchasingGroup -- association [0..1]
LEFT OUTER JOIN C_MM_SupplierValueHelp AS _SupplierValueHelp ON _SupplierValueHelp.Supplier = Supplier -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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