P_SlsDocFlfmtTotalAmount1

DDL: P_SLSDOCFLFMTTOTALAMOUNT1 SQL: PSOFTOTALAMOUNT1 Type: view CONSUMPTION

Total Amount on Item Level

P_SlsDocFlfmtTotalAmount1 is a Consumption CDS View that provides data about "Total Amount on Item Level" in SAP S/4HANA. It reads from 1 data source (I_SalesDocumentItemBasic) and exposes 4 fields with key fields SalesDocument, SalesDocumentItem.

Data Sources (1)

SourceAliasJoin Type
I_SalesDocumentItemBasic I_SalesDocumentItemBasic from

Annotations (8)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Total Amount on Item Level view
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName PSOFTOTALAMOUNT1 view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument SalesDocument SD Document
KEY SalesDocumentItem SalesDocumentItem Sales Document Item
GrossAmount
TransactionCurrency TransactionCurrency Transaction 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_SlsDocFlfmtTotalAmount1.
-- 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.
-- SQL view name: PSOFTOTALAMOUNT1

CREATE VIEW P_SlsDocFlfmtTotalAmount1 AS
SELECT
  SalesDocument,
  SalesDocumentItem,
  TaxAmount + NetAmount AS GrossAmount,
  TransactionCurrency
FROM I_SalesDocumentItemBasic
;