R_CustomerMaterialLongTextTP

DDL: R_CUSTOMERMATERIALLONGTEXTTP Type: view_entity TRANSACTIONAL

Customer Material long text - TP

R_CustomerMaterialLongTextTP is a Transactional CDS View that provides data about "Customer Material long text - TP" in SAP S/4HANA. It reads from 1 data source (I_CustomerMaterialText) and exposes 11 fields with key fields LongTextID, SalesOrganization, DistributionChannel, Customer, Product.

Data Sources (1)

SourceAliasJoin Type
I_CustomerMaterialText CustomerMaterialText from

Annotations (9)

NameValueLevelField
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #TRANSACTIONAL view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Customer Material long text - TP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.dataCategory #TEXT view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY LongTextID I_CustomerMaterialText LongTextID
KEY SalesOrganization I_CustomerMaterialText SalesOrganization
KEY DistributionChannel I_CustomerMaterialText DistributionChannel
KEY Customer I_CustomerMaterialText Customer
KEY Product I_CustomerMaterialText Product
KEY Language I_CustomerMaterialText Language
LanguageForEdit I_CustomerMaterialText Language
LongTextIDForEdit I_CustomerMaterialText LongTextID
LongText I_CustomerMaterialText LongText
LanguageISOCode I_CustomerMaterialText LanguageISOCode
_CustomerMaterial _CustomerMaterial
@VDM: {
  lifecycle.contract.type: #SAP_INTERNAL_API,
  viewType: #TRANSACTIONAL
}
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Customer Material long text - TP'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: { 
    usageType:{
      serviceQuality: #C,
      sizeCategory: #L,
      dataClass: #TRANSACTIONAL
    },
    dataCategory: #TEXT
}
define view entity R_CustomerMaterialLongTextTP
  as select from I_CustomerMaterialText as CustomerMaterialText
  association to parent R_CustomerMaterialTP as _CustomerMaterial on  $projection.Customer            = _CustomerMaterial.Customer
                                                                  and $projection.Product             = _CustomerMaterial.Product
                                                                  and $projection.SalesOrganization   = _CustomerMaterial.SalesOrganization
                                                                  and $projection.DistributionChannel = _CustomerMaterial.DistributionChannel


{
  key CustomerMaterialText.LongTextID,
  key CustomerMaterialText.SalesOrganization,
  key CustomerMaterialText.DistributionChannel,
  key CustomerMaterialText.Customer,
  key CustomerMaterialText.Product,
      @Semantics.language: true
  key CustomerMaterialText.Language,
//      @ObjectModel.editableFieldFor: 'SalesOrganization'

//      CustomerMaterialText.SalesOrganization   as SalesOrganizationForEdit,

//      @ObjectModel.editableFieldFor: 'DistributionChannel'

//      CustomerMaterialText.DistributionChannel as DistributionChannelForEdit,

//      @ObjectModel.editableFieldFor: 'Customer'

//      CustomerMaterialText.Customer            as CustomerForEdit,

//      @ObjectModel.editableFieldFor: 'Product'

//      CustomerMaterialText.Product             as ProductForEdit,

      @ObjectModel.editableFieldFor: 'Language'
      CustomerMaterialText.Language            as LanguageForEdit,
      @ObjectModel.editableFieldFor: 'LongTextID'
      CustomerMaterialText.LongTextID          as LongTextIDForEdit,
      @ObjectModel.virtualElement: true      
      @Semantics.text:true
      CustomerMaterialText.LongText,
      //      @ObjectModel.mandatory: true

      CustomerMaterialText.LanguageISOCode,

      // For Access control

//      _CustomerMaterial._Customer,

//      @Consumption.hidden: true      

//      @ObjectModel.editableFieldFor: 'Customer'      

//      _CustomerMaterial.Customer as CustomerForEdit,

      
      _CustomerMaterial
      
}