Deprecated
This CDS view is deprecated in S/4HANA. Use NoSuccessor instead. View all deprecated CDS views →

I_PT_SAFTDownPaytAmountDP

DDL: I_PT_SAFTDOWNPAYTAMOUNTDP Type: view_entity COMPOSITE

Down Payment Document Total Amount Pre

I_PT_SAFTDownPaytAmountDP is a Composite CDS View that provides data about "Down Payment Document Total Amount Pre" in SAP S/4HANA. It reads from 1 data source (I_BillingDocumentItemPrcgElmnt) and exposes 7 fields with key fields CompanyCode, BillingDocument, BillingDocumentItem, ConditionType, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_BillingDocumentItemPrcgElmnt Prcg from

Annotations (9)

NameValueLevelField
EndUserText.label Down Payment Document Total Amount Pre view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor NoSuccessor view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode
KEY BillingDocument I_BillingDocumentItemPrcgElmnt BillingDocument SD Document
KEY BillingDocumentItem I_BillingDocumentItemPrcgElmnt BillingDocumentItem Item
KEY ConditionType I_BillingDocumentItemPrcgElmnt ConditionType Condition type
KEY FiscalYear
ConditionAmountendasConditionAmount
TransactionCurrency I_BillingDocumentItemPrcgElmnt 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 I_PT_SAFTDownPaytAmountDP.
-- 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 I_PT_SAFTDownPaytAmountDP AS
SELECT
  Prcg._BillingDocument.CompanyCode AS CompanyCode,
  Prcg.BillingDocument AS BillingDocument,
  Prcg.BillingDocumentItem AS BillingDocumentItem,
  Prcg.ConditionType AS ConditionType,
  Prcg._BillingDocument.FiscalYear AS FiscalYear,
  case when (Prcg._Item.BillingPlanRule = '4' or Prcg._Item.BillingPlanRule = '5' ) and Prcg.ConditionInactiveReason is not initial then (Prcg.ConditionAmount) * ( -1) when TaxL.ConditionType is not initial then cast (0 as abap.curr (15,2)) else Prcg.ConditionAmount end as ConditionAmount AS ConditionAmountendasConditionAmount,
  Prcg.TransactionCurrency AS TransactionCurrency
FROM I_BillingDocumentItemPrcgElmnt AS Prcg
;