I_InsurApplCvrgSurchrgDiscount

DDL: I_INSURAPPLCVRGSURCHRGDISCOUNT Type: view_entity COMPOSITE

Cvrg Surchrg Disc of CvPcg in Insur Appl

I_InsurApplCvrgSurchrgDiscount is a Composite CDS View that provides data about "Cvrg Surchrg Disc of CvPcg in Insur Appl" in SAP S/4HANA. It reads from 2 data sources (P_InsurPolicyJournalKeys, I_InsurPlcySurchargeDiscBasic) and exposes 26 fields with key fields InsurPlcyUUID, InsurPlcyInsurContr, InsurPlcyCoveragePackageID, InsurPlcyCoverageID, InsurPlcyInsuredObjectID. It has 5 associations to related views.

Data Sources (2)

SourceAliasJoin Type
P_InsurPolicyJournalKeys PlcyJrnl from
I_InsurPlcySurchargeDiscBasic SurchargeDiscount inner

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_InsurPlcySurchrgDiscAmtLink _InsurPlcySurchrgDiscAmtType $projection.InsurPlcySurchrgDiscAmtType = _InsurPlcySurchrgDiscAmtType.InsurPlcySurchrgDiscAmtType and $projection.InsurPlcySurchrgDiscTemplate = _InsurPlcySurchrgDiscAmtType.InsurPlcySurchrgDiscTemplate
[0..1] I_InsurPlcySurchrgDiscUnitLink _InsurPlcySurchrgDiscAmtUnit $projection.InsurPlcySurchrgDiscAmtUnit = _InsurPlcySurchrgDiscAmtUnit.InsurPlcySurchrgDiscAmtUnit and $projection.InsurPlcySurchrgDiscTemplate = _InsurPlcySurchrgDiscAmtUnit.InsurPlcySurchrgDiscTemplate
[0..1] I_InsurPlcySurchrgDiscType _InsurPlcySurchrgDiscType $projection.InsurPlcySurchargeDiscTypeID = _InsurPlcySurchrgDiscType.InsurPlcySurchargeDiscTypeID
[0..1] I_Currency _Currency $projection.InsurPlcySurchrgDiscCurrency = _Currency.Currency
[1..*] I_InsurPlcyTemplateT _InsurPlcyTemplateT $projection.InsurPlcySurchrgDiscTemplate = _InsurPlcyTemplateT.InsurPlcyTemplate

Annotations (11)

NameValueLevelField
EndUserText.label Cvrg Surchrg Disc of CvPcg in Insur Appl view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
ObjectModel.representativeKey InsurPlcySurchargeDiscID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
Metadata.allowExtensions false view
Metadata.ignorePropagatedAnnotations false view
Analytics.technicalName IACvrgSurchgDsc view

Fields (26)

KeyFieldSource TableSource FieldDescription
KEY InsurPlcyUUID I_InsurPlcySurchargeDiscBasic InsurPlcyUUID Policy UUID
KEY InsurPlcyInsurContr I_InsurPlcySurchargeDiscBasic InsurPlcyInsurContr Contract Key
KEY InsurPlcyCoveragePackageID I_InsurPlcySurchargeDiscBasic InsurPlcyCoveragePackageID Cov.Package ID
KEY InsurPlcyCoverageID I_InsurPlcySurchargeDiscBasic InsurPlcyCoverageID Coverage Key
KEY InsurPlcyInsuredObjectID I_InsurPlcySurchargeDiscBasic InsurPlcyInsuredObjectID Ins. Obj. No.
KEY InsurPlcySurchargeDiscID I_InsurPlcySurchargeDiscBasic InsurPlcySurchargeDiscID Sur./Disc. No.
KEY InsurPlcyContrDataDetnJrnlNmbr
InsurPlcyJrnlNmbr I_InsurPlcySurchargeDiscBasic InsurPlcyJrnlNmbr Journal Number
InsurPlcyJrnlEndNmbr I_InsurPlcySurchargeDiscBasic InsurPlcyJrnlEndNmbr Term. Jour. No.
InsurPlcyProductPackageID I_InsurPlcySurchargeDiscBasic InsurPlcyProductPackageID Prod. Pckg. Key
InsurPlcySurchrgDiscTemplate I_InsurPlcySurchargeDiscBasic InsurPlcySurchrgDiscTemplate Surcharge/Discount Template
InsurPlcySurchargeDiscStrtDate I_InsurPlcySurchargeDiscBasic InsurPlcySurchargeDiscStrtDate Surcharge/Discount Start
InsurPlcySurchargeDiscEndDate I_InsurPlcySurchargeDiscBasic InsurPlcySurchargeDiscEndDate Surcharge/Discount End
InsurPlcySurchrgDiscBaseAmtPct I_InsurPlcySurchargeDiscBasic InsurPlcySurchrgDiscBaseAmtPct Relative Value
InsurPlcySurchargeDiscAmount I_InsurPlcySurchargeDiscBasic InsurPlcySurchargeDiscAmount Srch./Disc.Amt
InsurPlcySurchrgDiscAmtType I_InsurPlcySurchargeDiscBasic InsurPlcySurchrgDiscAmtType Reference Value
InsurPlcySurchrgDiscAmtUnit I_InsurPlcySurchargeDiscBasic InsurPlcySurchrgDiscAmtUnit Calculatn Type
InsurPlcySurchargeDiscTypeID I_InsurPlcySurchargeDiscBasic InsurPlcySurchargeDiscTypeID Surch/Disc.Type
InsurPlcySurchrgDiscCurrency I_InsurPlcySurchargeDiscBasic InsurPlcySurchrgDiscCurrency Currency
LastChangeDateTime I_InsurPlcySurchargeDiscBasic LastChangeDateTime Timestamp
_InsurApplCoverage _InsurApplCoverage
_Currency _Currency
_InsurPlcySurchrgDiscType _InsurPlcySurchrgDiscType
_InsurPlcySurchrgDiscAmtType _InsurPlcySurchrgDiscAmtType
_InsurPlcySurchrgDiscAmtUnit _InsurPlcySurchrgDiscAmtUnit
_InsurPlcyTemplateT _InsurPlcyTemplateT

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_InsurApplCvrgSurchrgDiscount.
-- 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_InsurApplCvrgSurchrgDiscount AS
SELECT
  SurchargeDiscount.InsurPlcyUUID AS InsurPlcyUUID,
  SurchargeDiscount.InsurPlcyInsurContr AS InsurPlcyInsurContr,
  SurchargeDiscount.InsurPlcyCoveragePackageID AS InsurPlcyCoveragePackageID,
  SurchargeDiscount.InsurPlcyCoverageID AS InsurPlcyCoverageID,
  SurchargeDiscount.InsurPlcyInsuredObjectID AS InsurPlcyInsuredObjectID,
  SurchargeDiscount.InsurPlcySurchargeDiscID AS InsurPlcySurchargeDiscID,
  cast( PlcyJrnl.InsurPlcyContrDataDetnJrnlNmbr as /pm0/vdm_contr_detn_jrnlnmbr preserving type ) AS InsurPlcyContrDataDetnJrnlNmbr,
  SurchargeDiscount.InsurPlcyJrnlNmbr AS InsurPlcyJrnlNmbr,
  SurchargeDiscount.InsurPlcyJrnlEndNmbr AS InsurPlcyJrnlEndNmbr,
  SurchargeDiscount.InsurPlcyProductPackageID AS InsurPlcyProductPackageID,
  SurchargeDiscount.InsurPlcySurchrgDiscTemplate AS InsurPlcySurchrgDiscTemplate,
  SurchargeDiscount.InsurPlcySurchargeDiscStrtDate AS InsurPlcySurchargeDiscStrtDate,
  SurchargeDiscount.InsurPlcySurchargeDiscEndDate AS InsurPlcySurchargeDiscEndDate,
  SurchargeDiscount.InsurPlcySurchrgDiscBaseAmtPct AS InsurPlcySurchrgDiscBaseAmtPct,
  SurchargeDiscount.InsurPlcySurchargeDiscAmount AS InsurPlcySurchargeDiscAmount,
  SurchargeDiscount.InsurPlcySurchrgDiscAmtType AS InsurPlcySurchrgDiscAmtType,
  SurchargeDiscount.InsurPlcySurchrgDiscAmtUnit AS InsurPlcySurchrgDiscAmtUnit,
  SurchargeDiscount.InsurPlcySurchargeDiscTypeID AS InsurPlcySurchargeDiscTypeID,
  SurchargeDiscount.InsurPlcySurchrgDiscCurrency AS InsurPlcySurchrgDiscCurrency,
  SurchargeDiscount.LastChangeDateTime AS LastChangeDateTime
FROM P_InsurPolicyJournalKeys AS PlcyJrnl
INNER JOIN I_InsurPlcySurchargeDiscBasic AS SurchargeDiscount ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InsurPlcySurchrgDiscAmtLink AS _InsurPlcySurchrgDiscAmtType ON InsurPlcySurchrgDiscAmtType = _InsurPlcySurchrgDiscAmtType.InsurPlcySurchrgDiscAmtType AND InsurPlcySurchrgDiscTemplate = _InsurPlcySurchrgDiscAmtType.InsurPlcySurchrgDiscTemplate  -- association [1..1]
LEFT OUTER JOIN I_InsurPlcySurchrgDiscUnitLink AS _InsurPlcySurchrgDiscAmtUnit ON InsurPlcySurchrgDiscAmtUnit = _InsurPlcySurchrgDiscAmtUnit.InsurPlcySurchrgDiscAmtUnit AND InsurPlcySurchrgDiscTemplate = _InsurPlcySurchrgDiscAmtUnit.InsurPlcySurchrgDiscTemplate  -- association [0..1]
LEFT OUTER JOIN I_InsurPlcySurchrgDiscType AS _InsurPlcySurchrgDiscType ON InsurPlcySurchargeDiscTypeID = _InsurPlcySurchrgDiscType.InsurPlcySurchargeDiscTypeID  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _Currency ON InsurPlcySurchrgDiscCurrency = _Currency.Currency  -- association [0..1]
LEFT OUTER JOIN I_InsurPlcyTemplateT AS _InsurPlcyTemplateT ON InsurPlcySurchrgDiscTemplate = _InsurPlcyTemplateT.InsurPlcyTemplate  -- association [1..*]
;