P_CADocumentOpenAmountInTC

DDL: P_CADOCUMENTOPENAMOUNTINTC Type: view_entity COMPOSITE

Open Amount of a Contr Acctg Document

P_CADocumentOpenAmountInTC is a Composite CDS View that provides data about "Open Amount of a Contr Acctg Document" in SAP S/4HANA. It reads from 1 data source (I_CADocumentBPItem) and exposes 4 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 Open Amount of a Contr Acctg Document 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 (4)

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

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

{
  key CADocumentNumber,
      @ObjectModel.foreignKey.association: '_Currency'
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      cast (sum(CAAmountInTransactionCurrency) as betrw_kk) as CAOpenAmountInTransactionCrcy,

      //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":""
}
}*/