C_ContractSubsequentDocType
Subsequent Doc Types for Contracts
C_ContractSubsequentDocType is a Consumption CDS View that provides data about "Subsequent Doc Types for Contracts" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentCopyControl) and exposes 3 fields with key fields SourceSalesDocumentType, TargetSalesDocumentType.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_SalesDocumentCopyControl | _SalesDocumentCopyControl | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CCONTRSUBDOCTYPE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| EndUserText.label | Subsequent Doc Types for Contracts | view |
Fields (3)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceSalesDocumentType | SourceSalesDocumentType | ||
| KEY | TargetSalesDocumentType | TargetSalesDocumentType | ||
| _TargetSalesDocumentType | _TargetSalesDocumentType |
@AbapCatalog.sqlViewName: 'CCONTRSUBDOCTYPE'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #CONSUMPTION
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@EndUserText.label: 'Subsequent Doc Types for Contracts'
define view C_ContractSubsequentDocType
as select from I_SalesDocumentCopyControl as _SalesDocumentCopyControl
{
key SourceSalesDocumentType,
key TargetSalesDocumentType,
_TargetSalesDocumentType
} where
_SourceSalesDocumentType.SDDocumentCategory = 'G' and // Consider source only Contracts
_TargetSalesDocumentType.SDDocumentCategory = 'C' and // Consider target only sales orders
_TargetSalesDocumentType.SalesDocumentProcessingType <> 'P' and // Ignore PBS orders
_SalesDocumentCopyControl.SourceBillingDocumentType = '' and
_SalesDocumentCopyControl.ReferenceScheduleLineCategory = '' and
_SalesDocumentCopyControl.ReferenceItemCategory = ''
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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