C_ReturnsReferenceInvoiceVH

DDL: C_RETURNSREFERENCEINVOICEVH Type: view_entity CONSUMPTION

Customer Return Reference Invoice

C_ReturnsReferenceInvoiceVH is a Consumption CDS View that provides data about "Customer Return Reference Invoice" in SAP S/4HANA. It reads from 1 data source (I_BillingDocument) and exposes 13 fields with key field BillingDocument. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocument BillingDocument from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_OverallBillingStatusText _OverallBillingStatusText $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus

Annotations (11)

NameValueLevelField
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Customer Return Reference Invoice view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey BillingDocument view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Search.searchable true view
Consumption.ranked true view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY BillingDocument
SoldToParty I_BillingDocument SoldToParty
SoldToPartyName
PayerParty I_BillingDocument PayerParty
PayerPartyName
PurchaseOrderByCustomer I_BillingDocument PurchaseOrderByCustomer
BillingDocumentDate I_BillingDocument BillingDocumentDate
OverallBillingStatus
OverallBillingStatusDesc
BillingDocumentType I_BillingDocument BillingDocumentType
SalesOrganization I_BillingDocument SalesOrganization
DistributionChannel I_BillingDocument DistributionChannel
Division I_BillingDocument Division
@VDM.viewType: #CONSUMPTION
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Customer Return Reference Invoice'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
dataCategory: #VALUE_HELP,
representativeKey:'BillingDocument',
usageType:{
  serviceQuality: #C,
  sizeCategory: #L,
  dataClass: #TRANSACTIONAL
}
}
@Search.searchable: true
@Consumption.ranked: true
@UI.presentationVariant: [{
  sortOrder: [{
    by: 'BillingDocument',
    direction: #DESC
  }]
}]
define view entity C_ReturnsReferenceInvoiceVH   as select from I_BillingDocument as BillingDocument

  association [0..*] to I_OverallBillingStatusText as _OverallBillingStatusText on $projection.OverallBillingStatus = _OverallBillingStatusText.OverallBillingStatus

{
      @UI: {
      lineItem: [{ position: 10,  importance: #HIGH }],
      selectionField: [{ position: 10 }]
      }
      @Search: {
        defaultSearchElement: true,
        fuzzinessThreshold: 0.9,
        ranking: #HIGH
      }
  key cast(BillingDocument.BillingDocument as vdm_invoice preserving type) as BillingDocument,

      @UI.textArrangement: #TEXT_FIRST
      @Consumption: {
        valueHelpDefinition: [{ entity: { name: 'D_SlsDocSoldToPartyCVH',
        element: 'Customer' } }]
      }
      @ObjectModel.text.element: ['SoldToPartyName']
      BillingDocument.SoldToParty,
      @Semantics.text: true
      @UI.hidden: true
      cast (BillingDocument._SoldToParty.CustomerName as ad_namtext)         as SoldToPartyName,

      @UI: {
      lineItem: [{ position: 20,  importance: #HIGH }],
      selectionField: [{ position: 20 }],
      textArrangement: #TEXT_FIRST
      }
      @Consumption.valueHelpDefinition:[{
        entity: { name: 'C_CustomerSalesAreaVH',
                  element: 'Customer' },
        label: 'Payer'
      }]
      @ObjectModel.text.element: ['PayerPartyName']
      BillingDocument.PayerParty,

      @Semantics.text: true
      @UI.hidden: true
      BillingDocument._PayerParty.CustomerName as PayerPartyName,


      @UI: {
      selectionField: [{ position: 30 }],
      lineItem: [{ position: 30,  importance: #HIGH }]
      }
      @Search: {
        defaultSearchElement: true,
        fuzzinessThreshold: 0.9,
        ranking: #MEDIUM
      }
      BillingDocument.PurchaseOrderByCustomer,
      @UI: {
        lineItem: [{ position: 40,  importance: #HIGH }],
        selectionField: [{ position: 40 }]
      }
      @Consumption.filter: {
        selectionType: #INTERVAL
      }
      BillingDocument.BillingDocumentDate,
      @UI: {
      lineItem: [{ position: 50,  importance: #HIGH }],
      selectionField: [{ position: 50 }],
      textArrangement: #TEXT_ONLY
      }
      @Consumption.valueHelpDefinition: [{
        entity: {
          name: 'I_OverallBillingStatus',
          element: 'OverallBillingStatus'
        }
      }]
      @ObjectModel.text.element: ['OverallBillingStatusDesc']
      cast(BillingDocument.OverallBillingStatus as billing_document_status preserving type ) as OverallBillingStatus,


      @UI.hidden: true
      @Semantics.text: true
      _OverallBillingStatusText[1: Language=$session.system_language].OverallBillingStatusDesc,

      @Consumption.hidden:true
      BillingDocument.BillingDocumentType,
      @Consumption.hidden:true
      BillingDocument.SalesOrganization,
      @Consumption.hidden:true
      BillingDocument.DistributionChannel,
      @Consumption.hidden:true
      BillingDocument.Division

}
where
      BillingDocument.SDDocumentCategory     = 'M'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_BILLINGDOCUMENT",
"I_CUSTOMER",
"I_OVERALLBILLINGSTATUSTEXT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/