P_CABPTotalAmountsInclSample

DDL: P_CABPTOTALAMOUNTSINCLSAMPLE Type: view_entity COMPOSITE

Total Amounts incl. Sample for BP

P_CABPTotalAmountsInclSample is a Composite CDS View that provides data about "Total Amounts incl. Sample for BP" in SAP S/4HANA. It reads from 1 data source (P_CABPCreditDebitInclSample) and exposes 5 fields with key fields BusinessPartner, TransactionCurrency.

Data Sources (1)

SourceAliasJoin Type
P_CABPCreditDebitInclSample P_CABPCreditDebitInclSample from

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Total Amounts incl. Sample for BP view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY BusinessPartner BusinessPartner Issuing Authority
KEY TransactionCurrency TransactionCurrency Transaction Currency
CABPDebitAmountInTC
CABPCreditAmountInTC
CABPBalanceAmountInTC

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_CABPTotalAmountsInclSample.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW P_CABPTotalAmountsInclSample AS
SELECT
  BusinessPartner,
  TransactionCurrency,
  cast(sum(CADebitAmountInTC) as total_debit_amount_kk preserving type ) AS CABPDebitAmountInTC,
  cast(sum(CACreditAmountInTC) as total_credit_amount_kk preserving type ) AS CABPCreditAmountInTC,
  cast(sum(CAAmountInTransactionCurrency) as total_balance_amount_kk preserving type ) AS CABPBalanceAmountInTC
FROM P_CABPCreditDebitInclSample
;