C_PurchaseContractValHelp

DDL: C_PURCHASECONTRACTVALHELP SQL: CPURCONTRVH Type: view CONSUMPTION Package: ODATA_MM_PUR_CTRITEMACCT_MNTR

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)

SourceAliasJoin Type
I_PurchaseContract PurchaseContract from

Associations (3)

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

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

ServiceBindingVersionContractRelease
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)

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