C_DocumentInfoRecordDescTP

DDL: C_DOCUMENTINFORECORDDESCTP SQL: CDOCINFRECDESC Type: view CONSUMPTION Package: ODATA_CV_DOCUMENT_MANAGE

Document Info Record Description TP

C_DocumentInfoRecordDescTP is a Consumption CDS View that provides data about "Document Info Record Description TP" in SAP S/4HANA. It reads from 1 data source (I_DocumentInfoRecordDescTP) and exposes 12 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, Language. It has 1 association to related views. Part of development package ODATA_CV_DOCUMENT_MANAGE.

Data Sources (1)

SourceAliasJoin Type
I_DocumentInfoRecordDescTP I_DocumentInfoRecordDescTP from

Associations (1)

CardinalityTargetAliasCondition
[1..1] C_DocumentInfoRecordTP _CDocInfo $projection.DocumentInfoRecordDocType = _CDocInfo.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocNumber = _CDocInfo.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _CDocInfo.DocumentInfoRecordDocVersion and $projection.DocumentInfoRecordDocPart = _CDocInfo.DocumentInfoRecordDocPart

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CDOCINFRECDESC view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Document Info Record Description TP view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.dataCategory #TEXT view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.representativeKey DocumentInfoRecordDocType view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType DocumentInfoRecordDocType
KEY DocumentInfoRecordDocNumber DocumentInfoRecordDocNumber
KEY DocumentInfoRecordDocVersion DocumentInfoRecordDocVersion
KEY DocumentInfoRecordDocPart DocumentInfoRecordDocPart
KEY Language Language
LanguageForEdit LanguageForEdit Language
DocumentDescription DocumentDescription
LongTextExists LongTextExists
LanguageName
_Language _Language
_LanguageForEdit _LanguageForEdit
_CDocInfo _CDocInfo
@AbapCatalog.sqlViewName: 'CDOCINFRECDESC'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Document Info Record Description TP'

@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@ObjectModel.dataCategory: #TEXT
@ObjectModel: {
    transactionalProcessingDelegated: true,
    createEnabled: true,
    updateEnabled: true,
    deleteEnabled: true,
    draftEnabled:true,
    representativeKey: 'DocumentInfoRecordDocType',
    usageType.serviceQuality: #C,
    usageType.sizeCategory: #L,
    usageType.dataClass: #MIXED
    
}
 
define view C_DocumentInfoRecordDescTP as select from I_DocumentInfoRecordDescTP 
    
//association to the parent CDS View

association [1..1] to C_DocumentInfoRecordTP         as _CDocInfo      on  $projection.DocumentInfoRecordDocType    = _CDocInfo.DocumentInfoRecordDocType
                                                                      and $projection.DocumentInfoRecordDocNumber  = _CDocInfo.DocumentInfoRecordDocNumber
                                                                      and $projection.DocumentInfoRecordDocVersion = _CDocInfo.DocumentInfoRecordDocVersion
                                                                      and $projection.DocumentInfoRecordDocPart    = _CDocInfo.DocumentInfoRecordDocPart

{
  key DocumentInfoRecordDocType     as DocumentInfoRecordDocType,
  
  key DocumentInfoRecordDocNumber   as DocumentInfoRecordDocNumber,
  
  key DocumentInfoRecordDocVersion  as DocumentInfoRecordDocVersion,
  
  key DocumentInfoRecordDocPart     as DocumentInfoRecordDocPart,
  
  key Language,
  
  @UI: {lineItem: { position: 10, importance: #HIGH}}
  @UI.identification: {position: 10, importance: #HIGH}  
  @ObjectModel.foreignKey.association: '_LanguageForEdit'
  @EndUserText.label: 'Language'
  @ObjectModel.mandatory: true       
  LanguageForEdit, 

  @UI.identification: {position: 20, importance: #HIGH}
  @UI: {lineItem: { position: 20, importance: #HIGH}}
  DocumentDescription,
  LongTextExists,
  
  @ObjectModel.readOnly: true
  I_DocumentInfoRecordDescTP._Language._Text[1: Language = $session.system_language].LanguageName,
  
  _Language,
  _LanguageForEdit,
  @ObjectModel.association.type:  [#TO_COMPOSITION_PARENT, #TO_COMPOSITION_ROOT ] 
  _CDocInfo
    
}