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 (P_CADocumentBPItemPhysEnhcd) and exposes 4 fields with key field CADocumentNumber.

Data Sources (1)

SourceAliasJoin Type
P_CADocumentBPItemPhysEnhcd _BPItemPhysEnhcd 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 P_CADocumentBPItemPhysEnhcd CADocumentNumber Document Number
TransactionCurrency P_CADocumentBPItemPhysEnhcd TransactionCurrency Transaction Currency
CAOpenAmountInTransactionCrcy
_Currency P_CADocumentBPItemPhysEnhcd _Currency

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_CADocumentOpenAmountInTC.
-- 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_CADocumentOpenAmountInTC AS
SELECT
  _BPItemPhysEnhcd.CADocumentNumber AS CADocumentNumber,
  _BPItemPhysEnhcd.TransactionCurrency AS TransactionCurrency,
  cast (sum(_BPItemPhysEnhcd.CAAmountInTransactionCurrency) as betrw_kk) AS CAOpenAmountInTransactionCrcy,
  _BPItemPhysEnhcd._Currency AS _Currency
FROM P_CADocumentBPItemPhysEnhcd AS _BPItemPhysEnhcd
;