C_CustSalesTextObjectTypeVH

DDL: C_CUSTSALESTEXTOBJECTTYPEVH SQL: CCUSTSATXTTYPVH Type: view CONSUMPTION

Customer Sales textobjecttype VH

C_CustSalesTextObjectTypeVH is a Consumption CDS View that provides data about "Customer Sales textobjecttype VH" in SAP S/4HANA. It reads from 2 data sources (I_TextDeterminationProcedItem, I_TextObjectType) and exposes 4 fields with key fields TextObjectType, CustomerAccountGroup. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_TextDeterminationProcedItem I_TextDeterminationProcedItem inner
I_TextObjectType I_TextObjectType inner

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_TextObjectTypeText _TextObjectTypeText $projection.TextObjectType = _TextObjectTypeText.TextObjectType and $projection.TextObjectCategory = _TextObjectTypeText.TextObjectCategory

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CCUSTSATXTTYPVH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.representativeKey TextObjectType view
VDM.viewType #CONSUMPTION view
Search.searchable true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
EndUserText.label Customer Sales textobjecttype VH view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY TextObjectType I_TextObjectType TextObjectType
KEY CustomerAccountGroup I_CustomerAccountGroup CustomerAccountGroup
TextObjectCategory I_TextObjectType TextObjectCategory
_TextObjectTypeText _TextObjectTypeText
@AbapCatalog.sqlViewName: 'CCUSTSATXTTYPVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'TextObjectType'
@VDM.viewType: #CONSUMPTION
@Search.searchable: true
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER

@EndUserText.label: 'Customer Sales textobjecttype VH'

define view C_CustSalesTextObjectTypeVH as
    select distinct from I_CustomerAccountGroup
        left outer to one join tkupa on I_CustomerAccountGroup.CustomerAccountGroup = tkupa.ktokd
        inner join I_TextDeterminationProcedItem on ( tkupa.txtgv = I_TextDeterminationProcedItem.TextDeterminationProcedure or ( ( tkupa.txtgv is null or tkupa.txtgv is initial ) and I_TextDeterminationProcedItem.TextDeterminationProcedure = '*' ))
                          and I_TextDeterminationProcedItem.TextObjectCategory = 'KNVV'
        inner join I_TextObjectType on I_TextDeterminationProcedItem.LongTextID = I_TextObjectType.TextObjectType
                         and I_TextObjectType.TextObjectCategory = 'KNVV'

association [0..*] to I_TextObjectTypeText as _TextObjectTypeText on  $projection.TextObjectType     = _TextObjectTypeText.TextObjectType
                                                                    and $projection.TextObjectCategory = _TextObjectTypeText.TextObjectCategory

{
    @Search.defaultSearchElement: true
    @Search.fuzzinessThreshold: 0.8
    @Search.ranking: #HIGH
    @ObjectModel.text.association: '_TextobjectTypeText'
    key I_TextObjectType.TextObjectType,  
    key I_CustomerAccountGroup.CustomerAccountGroup,
    @Consumption.hidden: true
    @Consumption.filter.hidden: true
    I_TextObjectType.TextObjectCategory,
    _TextObjectTypeText
}