P_CADocumentOpenAmountInTC

DDL: P_CADOCUMENTOPENAMOUNTINTC Type: view_entity COMPOSITE Package: ODATA_O2C_FICA_DOCUMENT_MANAGE

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. Part of development package ODATA_O2C_FICA_DOCUMENT_MANAGE.

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
_TransactionCurrency _TransactionCurrency
@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: '_TransactionCurrency'
      TransactionCurrency,
      @Semantics.amount.currencyCode: 'TransactionCurrency'
      cast (sum(CAAmountInTransactionCurrency) as betrw_kk) as CAOpenAmountInTransactionCrcy,

      //Association

      _TransactionCurrency
}
where
  CAClearingReason = '' 
  and CANetDueDate     > $session.system_date
group by
  CADocumentNumber,
  TransactionCurrency