C_SalesContrForCreateWithRefVH

DDL: C_SALESCONTRFORCREATEWITHREFVH Type: view_entity CONSUMPTION

Sales Contract for Create Wth Reference

C_SalesContrForCreateWithRefVH is a Consumption CDS View that provides data about "Sales Contract for Create Wth Reference" in SAP S/4HANA. It reads from 1 data source (I_SalesContract) and exposes 14 fields with key field SalesContract. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesContract SalesContract from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_OverallSDProcessStatusText _OverallSDProcessStatusText $projection.OverallSDProcessStatus = _OverallSDProcessStatusText.OverallSDProcessStatus
[0..*] I_OverallSDDocReferenceStatusT _OverallSDDocReferenceStatusT $projection.OverallSDDocReferenceStatus = _OverallSDDocReferenceStatusT.OverallSDDocReferenceStatus

Annotations (10)

NameValueLevelField
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
Search.searchable true view
Consumption.ranked true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Sales Contract for Create Wth Reference view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY SalesContract I_SalesContract SalesContract Sales Document
SoldToParty I_SalesContract SoldToParty Sold-to Party
SoldToPartyName Sold-to Party Name
PurchaseOrderByCustomer I_SalesContract PurchaseOrderByCustomer Purchase Order Number
SalesContractValidityStartDate I_SalesContract SalesContractValidityStartDate
SalesContractValidityEndDate I_SalesContract SalesContractValidityEndDate
OverallSDProcessStatus I_SalesContract OverallSDProcessStatus
OverallSDDocReferenceStatus I_SalesContract OverallSDDocReferenceStatus
SalesContractType I_SalesContract SalesContractType
SalesOrganization I_SalesContract SalesOrganization Sales Organization
DistributionChannel I_SalesContract DistributionChannel RefDistCh-Cust/Mat.
OrganizationDivision I_SalesContract OrganizationDivision Org. Division
_OverallSDProcessStatusText _OverallSDProcessStatusText
_OverallSDDocReferenceStatusT _OverallSDDocReferenceStatusT

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_SalesContrForCreateWithRefVH.
-- 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 C_SalesContrForCreateWithRefVH AS
SELECT
  SalesContract.SalesContract AS SalesContract,
  SalesContract.SoldToParty AS SoldToParty,
  cast('' as ad_namtext ) AS SoldToPartyName,
  SalesContract.PurchaseOrderByCustomer AS PurchaseOrderByCustomer,
  SalesContract.SalesContractValidityStartDate AS SalesContractValidityStartDate,
  SalesContract.SalesContractValidityEndDate AS SalesContractValidityEndDate,
  SalesContract.OverallSDProcessStatus AS OverallSDProcessStatus,
  SalesContract.OverallSDDocReferenceStatus AS OverallSDDocReferenceStatus,
  SalesContract.SalesContractType AS SalesContractType,
  SalesContract.SalesOrganization AS SalesOrganization,
  SalesContract.DistributionChannel AS DistributionChannel,
  SalesContract.OrganizationDivision AS OrganizationDivision
FROM I_SalesContract AS SalesContract
LEFT OUTER JOIN I_OverallSDProcessStatusText AS _OverallSDProcessStatusText ON OverallSDProcessStatus = _OverallSDProcessStatusText.OverallSDProcessStatus  -- association [0..*]
LEFT OUTER JOIN I_OverallSDDocReferenceStatusT AS _OverallSDDocReferenceStatusT ON OverallSDDocReferenceStatus = _OverallSDDocReferenceStatusT.OverallSDDocReferenceStatus  -- association [0..*]
;