C_ContractSubsequentDocType

DDL: C_CONTRACTSUBSEQUENTDOCTYPE SQL: CCONTRSUBDOCTYPE Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_SalesDocumentCopyControl _SalesDocumentCopyControl from

Annotations (9)

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

KeyFieldSource TableSource FieldDescription
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         = ''