C_DplSlsDocTypeVH

DDL: C_DPLSLSDOCTYPEVH SQL: CDPLSLSDOCTYPEVH Type: view CONSUMPTION

Type of Duplicate Sales Document

C_DplSlsDocTypeVH is a Consumption CDS View that provides data about "Type of Duplicate Sales Document" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentType) and exposes 5 fields with key fields SDDocumentCategory, SalesDocumentType. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentType I_SalesDocumentType from

Associations (2)

CardinalityTargetAliasCondition
[0..1] C_DplSlsDocCatVH _SalesDocumentCategory $projection.SDDocumentCategory = _SalesDocumentCategory.SDDocumentCategory
[0..*] I_SalesDocumentTypeText _Text $projection.SalesDocumentType = _Text.SalesDocumentType

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CDPLSLSDOCTYPEVH view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Consumption.ranked true view
EndUserText.label Type of Duplicate Sales Document view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.representativeKey SalesDocumentType view
VDM.viewType #CONSUMPTION view
Search.searchable true view
UI.headerInfo.typeName Sales Document Type view
UI.headerInfo.typeNamePlural Sales Document Types view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY SDDocumentCategory SDDocumentCategory
KEY SalesDocumentType SalesDocumentType
SalesDocumentTypeLangDepdnt
_SalesDocumentCategory _SalesDocumentCategory
_Text _Text
@AbapCatalog.sqlViewName: 'CDPLSLSDOCTYPEVH'
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Consumption.ranked: true
@EndUserText.label: 'Type of Duplicate Sales Document'
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.representativeKey: 'SalesDocumentType'
@VDM.viewType: #CONSUMPTION

@Search.searchable: true

@UI.headerInfo:{
  typeName:       'Sales Document Type',
  typeNamePlural: 'Sales Document Types'
}

@UI.presentationVariant: {
    sortOrder: [
        { by: 'SDDocumentCategory', direction: #ASC },
        { by: 'SalesDocumentType', direction: #ASC }
    ]
}
define view C_DplSlsDocTypeVH
  as select from I_SalesDocumentType

  association [0..1] to C_DplSlsDocCatVH        as _SalesDocumentCategory on $projection.SDDocumentCategory = _SalesDocumentCategory.SDDocumentCategory

  association [0..*] to I_SalesDocumentTypeText as _Text                  on $projection.SalesDocumentType = _Text.SalesDocumentType

{

         @Consumption.filter.hidden: true
         @ObjectModel.foreignKey.association: '_SalesDocumentCategory'
  key    SDDocumentCategory,

         @Search.defaultSearchElement: true
         @Search.fuzzinessThreshold: 0.8
         @Search.ranking: #HIGH
         @ObjectModel.text.association: '_Text'
  key    SalesDocumentType,

         @Search.defaultSearchElement: true
         @Search.fuzzinessThreshold: 0.8
         @Search.ranking: #HIGH
         @UI.hidden: true
         _SalesDocumentTypeLangDepdnt[1:Language=$session.system_language].SalesDocumentTypeLangDepdnt,

         _SalesDocumentCategory,

         _Text
}
where
     SDDocumentCategory = 'A' // Inquiry

  or SDDocumentCategory = 'B' // Quotation

  or SDDocumentCategory = 'C' // Order

  or SDDocumentCategory = 'G' // Contract

  or SDDocumentCategory = 'H' // Returns

  or SDDocumentCategory = 'I' // Order w/o charge

  or SDDocumentCategory = 'K' // Credit memo request

  or SDDocumentCategory = 'L' // Debit memo request

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_SALESDOCUMENTTYPE",
"I_SALESDOCUMENTTYPELANGDEPDNT"
],
"ASSOCIATED":
[
"C_DPLSLSDOCCATVH",
"I_SALESDOCUMENTTYPETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/