P_CADocumentDueAmountInTC

DDL: P_CADOCUMENTDUEAMOUNTINTC Type: view_entity COMPOSITE

Due Amount of a Ca Document in TC

P_CADocumentDueAmountInTC is a Composite CDS View that provides data about "Due Amount of a Ca Document in TC" in SAP S/4HANA. It reads from 1 data source (I_CADocumentBPItem) and exposes 5 fields with key field CADocumentNumber.

Data Sources (1)

SourceAliasJoin Type
I_CADocumentBPItem I_CADocumentBPItem from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Due Amount of a Ca Document in TC view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CADocumentNumber CADocumentNumber
TransactionCurrency TransactionCurrency
CADueAmountInTC
CADueAmountInTransactionCrcy
_Currency _Currency
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Due Amount of a Ca Document in TC'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
  serviceQuality: #C,
  sizeCategory: #XL,
  dataClass: #TRANSACTIONAL
}

@VDM.viewType: #COMPOSITE
@VDM.private: true
define view entity P_CADocumentDueAmountInTC
  as select from I_CADocumentBPItem

{
  key CADocumentNumber,
      @ObjectModel.foreignKey.association: '_Currency'
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      sum(CAAmountInTransactionCurrency) as CADueAmountInTC,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      sum(CAAmountInTransactionCurrency) as CADueAmountInTransactionCrcy,
        
      //Association

      _Currency
}
where
      CAClearingReason = ''
  and CANetDueDate     <= $session.system_date
group by
  CADocumentNumber,
  TransactionCurrency
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CADOCUMENTBPITEM"
],
"ASSOCIATED":
[
"I_CURRENCY"
],
"BASE":
[
"I_CADOCUMENTBPITEM"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/