C_RFM_PrvsnlSubsqntDocTypes

DDL: C_RFM_PRVSNLSUBSQNTDOCTYPES SQL: CRFMSUBDOCT Type: view CONSUMPTION

Subsequent Doc Types for Contracts

C_RFM_PrvsnlSubsqntDocTypes 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 4 fields with key fields SourceSalesDocumentType, TargetSalesDocumentType.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentCopyControl _SalesDocumentCopyControl from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CRFMSUBDOCT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Subsequent Doc Types for Contracts view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SourceSalesDocumentType SourceSalesDocumentType
KEY TargetSalesDocumentType TargetSalesDocumentType
SalesDocumentTypeName
_TargetSalesDocumentType _TargetSalesDocumentType
@AbapCatalog.sqlViewName: 'CRFMSUBDOCT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.preserveKey:true

@VDM.viewType: #CONSUMPTION

@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #S

@EndUserText.label: 'Subsequent Doc Types for Contracts'
define view C_RFM_PrvsnlSubsqntDocTypes
  as select from I_SalesDocumentCopyControl as _SalesDocumentCopyControl
{ 
  key SourceSalesDocumentType,
  key TargetSalesDocumentType,
      _TargetSalesDocumentType._Text[Language = $session.system_language].SalesDocumentTypeName as SalesDocumentTypeName,
      _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         =  ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTCOPYCONTROL",
"I_SALESDOCUMENTTYPE",
"I_SALESDOCUMENTTYPETEXT"
],
"ASSOCIATED":
[
"I_SALESDOCUMENTTYPE"
],
"BASE":
[
"I_SALESDOCUMENTCOPYCONTROL"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/