P_CAInstallmentPlanHeaderEnh

DDL: P_CAINSTALLMENTPLANHEADERENH Type: view_entity CONSUMPTION

P_CAInstallmentPlanHeaderEnh is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_CAInstallmentPlanHeader, I_CADocTotalSeparatedAmtsInDC) and exposes 42 fields with key field CAInstallmentPlan.

Data Sources (2)

SourceAliasJoin Type
I_CAInstallmentPlanHeader _InstallmentPlanHeader from
I_CADocTotalSeparatedAmtsInDC I_CADocTotalSeparatedAmtsInDC inner

Parameters (1)

NameTypeDefault
P_Currency waers_kk

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (42)

KeyFieldSource TableSource FieldDescription
KEY CAInstallmentPlan I_CAInstallmentPlanHeader CAInstallmentPlan Inst. plan no.
CAInstallmentPlanCategory I_CAInstallmentPlanHeader CAInstallmentPlanCategory IP category
CAInstlmntPlanDeactivationDate I_CAInstallmentPlanHeader CAInstlmntPlanDeactivationDate Deactiv.Date
CAInstlmntPlanDeactivationType I_CAInstallmentPlanHeader CAInstlmntPlanDeactivationType Man.deactivated
CADeactivationOpenAmountInTC I_CAInstallmentPlanHeader CADeactivationOpenAmountInTC DeactOpenAmount
TransactionCurrency I_CAInstallmentPlanHeader TransactionCurrency Transaction Currency
CAInstlmntPlanDactvtnRsn I_CAInstallmentPlanHeader CAInstlmntPlanDactvtnRsn Deactiv. Reason
CAInstallmentPlanStartDate I_CAInstallmentPlanHeader CAInstallmentPlanStartDate Start Date
CAInstallmentPlanEndDate I_CAInstallmentPlanHeader CAInstallmentPlanEndDate IP end date
CANumberOfInstallments I_CAInstallmentPlanHeader CANumberOfInstallments No. of Instmnts
ContractAccount I_CAInstallmentPlanHeader ContractAccount Contract Acct
BusinessPartner I_CAInstallmentPlanHeader BusinessPartner Issuing Authority
CAContract I_CAInstallmentPlanHeader CAContract Contract
CompanyCode I_CAInstallmentPlanHeader CompanyCode Receiver Company Code
CAInstlmntPlanIntrstCalcType I_CAInstallmentPlanHeader CAInstlmntPlanIntrstCalcType Int.fm Orig.Itm
CAIntrstAndChargesAreDistrd I_CAInstallmentPlanHeader CAIntrstAndChargesAreDistrd Distr.interst/chrges
CAInterestDueCategory I_CAInstallmentPlanHeader CAInterestDueCategory Interest Due
CAInstlmntPlanDactvtnEntryDate I_CAInstallmentPlanHeader CAInstlmntPlanDactvtnEntryDate Deact. entered
CAInstlmntPlanDactvtnEntryTime I_CAInstallmentPlanHeader CAInstlmntPlanDactvtnEntryTime Deact. entered
CAWorkflowCheckReason I_CAInstallmentPlanHeader CAWorkflowCheckReason Check Reason
CAWorkflowCheckProcess I_CAInstallmentPlanHeader CAWorkflowCheckProcess Process
CASubApplication I_CAInstallmentPlanHeader CASubApplication Subapplication
CANumberOfAddlIntrstInstlmnts I_CAInstallmentPlanHeader CANumberOfAddlIntrstInstlmnts No. Add. Instmt
CAInterestCalculationStartDate I_CAInstallmentPlanHeader CAInterestCalculationStartDate Int.start date
CAInstlmntPlnIsChgdByInvoicing I_CAInstallmentPlanHeader CAInstlmntPlnIsChgdByInvoicing From Invoicing
CAPredecessorInstallmentPlan I_CAInstallmentPlanHeader CAPredecessorInstallmentPlan Previous Instmt Plan
CAInstlmntPlanGoodwillValue I_CAInstallmentPlanHeader CAInstlmntPlanGoodwillValue Goodwill Value
CAInstallmentPlanIssueDate I_CAInstallmentPlanHeader CAInstallmentPlanIssueDate Imported On
CAInstallmentPlanIssueTime I_CAInstallmentPlanHeader CAInstallmentPlanIssueTime Time
dec232endasCAInstlmntPlanFulfillmentRate
_BusinessPartner I_CAInstallmentPlanHeader _BusinessPartner
_CAInstallmentPlanCategory I_CAInstallmentPlanHeader _CAInstallmentPlanCategory
_CAInstlmntPlanDactvtnRsn I_CAInstallmentPlanHeader _CAInstlmntPlanDactvtnRsn
_CAPredecessorInstallmentPlan I_CAInstallmentPlanHeader _CAPredecessorInstallmentPlan
_CAProviderContract I_CAInstallmentPlanHeader _CAProviderContract
_CASubApplication I_CAInstallmentPlanHeader _CASubApplication
_CAWorkflowCheckProcess I_CAInstallmentPlanHeader _CAWorkflowCheckProcess
_CAWorkflowCheckReason I_CAInstallmentPlanHeader _CAWorkflowCheckReason
_CompanyCode I_CAInstallmentPlanHeader _CompanyCode
_ContractAccount I_CAInstallmentPlanHeader _ContractAccount
_ContractAccountPartner I_CAInstallmentPlanHeader _ContractAccountPartner
_TransactionCurrency I_CAInstallmentPlanHeader _TransactionCurrency

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_CAInstallmentPlanHeaderEnh.
-- 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.
-- Parameters: P_Currency : waers_kk

CREATE VIEW P_CAInstallmentPlanHeaderEnh AS
SELECT
  _InstallmentPlanHeader.CAInstallmentPlan AS CAInstallmentPlan,
  _InstallmentPlanHeader.CAInstallmentPlanCategory AS CAInstallmentPlanCategory,
  _InstallmentPlanHeader.CAInstlmntPlanDeactivationDate AS CAInstlmntPlanDeactivationDate,
  _InstallmentPlanHeader.CAInstlmntPlanDeactivationType AS CAInstlmntPlanDeactivationType,
  _InstallmentPlanHeader.CADeactivationOpenAmountInTC AS CADeactivationOpenAmountInTC,
  _InstallmentPlanHeader.TransactionCurrency AS TransactionCurrency,
  _InstallmentPlanHeader.CAInstlmntPlanDactvtnRsn AS CAInstlmntPlanDactvtnRsn,
  _InstallmentPlanHeader.CAInstallmentPlanStartDate AS CAInstallmentPlanStartDate,
  _InstallmentPlanHeader.CAInstallmentPlanEndDate AS CAInstallmentPlanEndDate,
  _InstallmentPlanHeader.CANumberOfInstallments AS CANumberOfInstallments,
  _InstallmentPlanHeader.ContractAccount AS ContractAccount,
  _InstallmentPlanHeader.BusinessPartner AS BusinessPartner,
  _InstallmentPlanHeader.CAContract AS CAContract,
  _InstallmentPlanHeader.CompanyCode AS CompanyCode,
  _InstallmentPlanHeader.CAInstlmntPlanIntrstCalcType AS CAInstlmntPlanIntrstCalcType,
  _InstallmentPlanHeader.CAIntrstAndChargesAreDistrd AS CAIntrstAndChargesAreDistrd,
  _InstallmentPlanHeader.CAInterestDueCategory AS CAInterestDueCategory,
  _InstallmentPlanHeader.CAInstlmntPlanDactvtnEntryDate AS CAInstlmntPlanDactvtnEntryDate,
  _InstallmentPlanHeader.CAInstlmntPlanDactvtnEntryTime AS CAInstlmntPlanDactvtnEntryTime,
  _InstallmentPlanHeader.CAWorkflowCheckReason AS CAWorkflowCheckReason,
  _InstallmentPlanHeader.CAWorkflowCheckProcess AS CAWorkflowCheckProcess,
  _InstallmentPlanHeader.CASubApplication AS CASubApplication,
  _InstallmentPlanHeader.CANumberOfAddlIntrstInstlmnts AS CANumberOfAddlIntrstInstlmnts,
  _InstallmentPlanHeader.CAInterestCalculationStartDate AS CAInterestCalculationStartDate,
  _InstallmentPlanHeader.CAInstlmntPlnIsChgdByInvoicing AS CAInstlmntPlnIsChgdByInvoicing,
  _InstallmentPlanHeader.CAPredecessorInstallmentPlan AS CAPredecessorInstallmentPlan,
  _InstallmentPlanHeader.CAInstlmntPlanGoodwillValue AS CAInstlmntPlanGoodwillValue,
  _InstallmentPlanHeader.CAInstallmentPlanIssueDate AS CAInstallmentPlanIssueDate,
  _InstallmentPlanHeader.CAInstallmentPlanIssueTime AS CAInstallmentPlanIssueTime,
  case when _AmountsInDC.DueAmountInDisplayCrcy = 0 then 1 else cast( ( get_numeric_value( _AmountsInDC.ClearedAmountInDisplayCurrency ) / get_numeric_value( _AmountsInDC.DueAmountInDisplayCrcy ) ) as abap.dec(23,2) ) end as CAInstlmntPlanFulfillmentRate AS dec232endasCAInstlmntPlanFulfillmentRate,
  _InstallmentPlanHeader._BusinessPartner AS _BusinessPartner,
  _InstallmentPlanHeader._CAInstallmentPlanCategory AS _CAInstallmentPlanCategory,
  _InstallmentPlanHeader._CAInstlmntPlanDactvtnRsn AS _CAInstlmntPlanDactvtnRsn,
  _InstallmentPlanHeader._CAPredecessorInstallmentPlan AS _CAPredecessorInstallmentPlan,
  _InstallmentPlanHeader._CAProviderContract AS _CAProviderContract,
  _InstallmentPlanHeader._CASubApplication AS _CASubApplication,
  _InstallmentPlanHeader._CAWorkflowCheckProcess AS _CAWorkflowCheckProcess,
  _InstallmentPlanHeader._CAWorkflowCheckReason AS _CAWorkflowCheckReason,
  _InstallmentPlanHeader._CompanyCode AS _CompanyCode,
  _InstallmentPlanHeader._ContractAccount AS _ContractAccount,
  _InstallmentPlanHeader._ContractAccountPartner AS _ContractAccountPartner,
  _InstallmentPlanHeader._TransactionCurrency AS _TransactionCurrency
FROM I_CAInstallmentPlanHeader AS _InstallmentPlanHeader
INNER JOIN I_CADocTotalSeparatedAmtsInDC ON /* join condition not captured in parsed metadata */
;