I_PrecedingConditionDocumentVH

DDL: I_PRECEDINGCONDITIONDOCUMENTVH Type: view_entity COMPOSITE

Predecessor

I_PrecedingConditionDocumentVH (Composite)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Sales

I_PrecedingConditionDocumentVH is a Composite CDS View that provides data about "Predecessor" in SAP S/4HANA.

SAP Help Documentation

CategoryCondition Contract
Purpose
This CDS view exposes the values of the predecessors of documents such as condition contracts. This CDS view provides the data to answer the following business questions: Which predecessors exist? What is the condition contract type of the predecessor? What is the validity period of the predecessor? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: F_KNA1_BED (Customer: Account Authorization) F_LFA1_BEK (Vendor: Account Authorization) W_COCO (Authorizations for Condition Contract) W_COCO_ORG (Authorizations for Condition Contract Organizational Data)

Structure
Important Fields Important fields in this view include the following: Field Name Description PrecedingConditionDocument Predecessor CndnContrType Condition Contract Type CndnContrTypeDesc Condition Contract Type Description ConditionDocumentValidFromDate Valid From ConditionDocumentValidToDate Valid To

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessSales
Application ComponentLO-GT-CHB
CapabilitiesData Source for Search, Data Provider for Value Help
PackageSales for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view exposes the values of the predecessors of documents such as condition contracts.</p> <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li><p>Which predecessors exist?</p></li> <li><p>What is the condition contract type of the predecessor?</p></li> <li><p>What is the validity period of the predecessor?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Annotations (15)

NameValueLevelField
EndUserText.label Predecessor view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey PrecedingConditionDocument view
ObjectModel.modelingPattern #VALUE_HELP_PROVIDER view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Analytics.technicalName IPREDCDVH view
Search.searchable true view
Consumption.ranked true view
Metadata.ignorePropagatedAnnotations true view
Metadata.allowExtensions false view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY PrecedingConditionDocument PrecedingConditionDocument Predecessor Condition Contract
CndnContrType _PrecedingConditionDocument CndnContrType Condition Contract Type
CndnContrTypeDesc Condition Contract Type Description
ConditionDocumentValidFromDate _PrecedingConditionDocument ConditionDocumentValidFromDate Valid From
ConditionDocumentValidToDate _PrecedingConditionDocument ConditionDocumentValidToDate Valid To
Customer _PrecedingConditionDocument Customer Customer as Partner of a Condition Contract
PriorSupplier _PrecedingConditionDocument PriorSupplier Prior Supplier
Supplier _PrecedingConditionDocument Supplier Supplier as Partner of a Condition Contract
PersonWorkAgreement _PrecedingConditionDocument PersonWorkAgreement Worker as Partner of a Condition Contract
DistributionChannel _PrecedingConditionDocument DistributionChannel Distribution Channel
Division _PrecedingConditionDocument Division Internal Division ID
PurchasingGroup _PrecedingConditionDocument PurchasingGroup Purchasing Group
PurchasingOrganization _PrecedingConditionDocument PurchasingOrganization Purchasing Organization
SalesOrganization _PrecedingConditionDocument SalesOrganization Sales Organization
CompanyCode _PrecedingConditionDocument CompanyCode Receiver Company Code
CndnDocWorkerCostCenter _PrecedingConditionDocument CndnDocWorkerCostCenter Worker Cost Center
_Customer _PrecedingConditionDocument _Customer
_PriorSupplier _PrecedingConditionDocument _PriorSupplier
_Supplier _PrecedingConditionDocument _Supplier
_PersonWorkAgreement _PrecedingConditionDocument _PersonWorkAgreement

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 I_PrecedingConditionDocumentVH.
-- 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 I_PrecedingConditionDocumentVH AS
SELECT
  PrecedingConditionDocument,
  _PrecedingConditionDocument.CndnContrType AS CndnContrType,
  _PrecedingConditionDocument._CndnContrType._Text[1: Language = $session.system_language ].CndnContrTypeDesc AS CndnContrTypeDesc,
  _PrecedingConditionDocument.ConditionDocumentValidFromDate AS ConditionDocumentValidFromDate,
  _PrecedingConditionDocument.ConditionDocumentValidToDate AS ConditionDocumentValidToDate,
  _PrecedingConditionDocument.Customer AS Customer,
  _PrecedingConditionDocument.PriorSupplier AS PriorSupplier,
  _PrecedingConditionDocument.Supplier AS Supplier,
  _PrecedingConditionDocument.PersonWorkAgreement AS PersonWorkAgreement,
  _PrecedingConditionDocument.DistributionChannel AS DistributionChannel,
  _PrecedingConditionDocument.Division AS Division,
  _PrecedingConditionDocument.PurchasingGroup AS PurchasingGroup,
  _PrecedingConditionDocument.PurchasingOrganization AS PurchasingOrganization,
  _PrecedingConditionDocument.SalesOrganization AS SalesOrganization,
  _PrecedingConditionDocument.CompanyCode AS CompanyCode,
  _PrecedingConditionDocument.CndnDocWorkerCostCenter AS CndnDocWorkerCostCenter,
  _PrecedingConditionDocument._Customer AS _Customer,
  _PrecedingConditionDocument._PriorSupplier AS _PriorSupplier,
  _PrecedingConditionDocument._Supplier AS _Supplier,
  _PrecedingConditionDocument._PersonWorkAgreement AS _PersonWorkAgreement
;