P_InsurOpenApplPremPayer

DDL: P_INSUROPENAPPLPREMPAYER Type: view_entity COMPOSITE

P_InsurOpenApplPremPayer is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (P_InsuranceOpenApplicationJrnl, P_InsuranceOpenApplicationJrnl, I_InsurPlcyPremPayerBasic, I_InsurPlcyPremPayerBasic) and exposes 15 fields with key fields InsurPlcyApplUUID, InsuranceApplication, InsurPlcyJrnlNmbr, InsurPlcyInsurContr, InsurPlcyContrPremPayerID.

Data Sources (4)

SourceAliasJoin Type
P_InsuranceOpenApplicationJrnl OpenApplJrnl inner
P_InsuranceOpenApplicationJrnl OpenApplJrnl inner
I_InsurPlcyPremPayerBasic PremPayer from
I_InsurPlcyPremPayerBasic PremPayer union

Annotations (4)

NameValueLevelField
VDM.viewType #COMPOSITE view
VDM.private true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY InsurPlcyApplUUID P_InsuranceOpenApplicationJrnl InsurPlcyApplUUID
KEY InsuranceApplication P_InsuranceOpenApplicationJrnl InsuranceApplication
KEY InsurPlcyJrnlNmbr I_InsurPlcyPremPayerBasic InsurPlcyJrnlNmbr
KEY InsurPlcyInsurContr I_InsurPlcyPremPayerBasic InsurPlcyInsurContr
KEY InsurPlcyContrPremPayerID I_InsurPlcyPremPayerBasic InsurPlcyContrPremPayerID
KEY InsurPlcyContrDataDetnJrnlNmbr P_InsuranceOpenApplicationJrnl InsurPlcyContrDataDetnJrnlNmbr
InsurPlcyUUID P_InsuranceOpenApplicationJrnl InsurPlcyUUID
InsurPlcyApplUUID
KEY InsuranceApplication P_InsuranceOpenApplicationJrnl InsuranceApplication
KEY InsurPlcyJrnlNmbr I_InsurPlcyPremPayerBasic InsurPlcyJrnlNmbr
KEY InsurPlcyInsurContr I_InsurPlcyPremPayerBasic InsurPlcyInsurContr
KEY InsurPlcyContrPremPayerID I_InsurPlcyPremPayerBasic InsurPlcyContrPremPayerID
KEY InsurPlcyContrDataDetnJrnlNmbr P_InsuranceOpenApplicationJrnl InsurPlcyContrDataDetnJrnlNmbr
InsurPlcyUUID P_InsuranceOpenApplicationJrnl InsurPlcyUUID
InsuranceApplicationStatus P_InsuranceOpenApplicationJrnl InsuranceApplicationStatus
@VDM:           {   viewType:           #COMPOSITE,
                    private:            true}
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED

// Get data for appl GUID and policy GUID


define view entity P_InsurOpenApplPremPayer
  as select from I_InsurPlcyPremPayerBasic      as PremPayer

    inner join   P_InsuranceOpenApplicationJrnl as OpenApplJrnl on  OpenApplJrnl.InsurPlcyUUID                  =  PremPayer.InsurPlcyUUID
                                                                and OpenApplJrnl.InsurPlcyInsurContr            =  PremPayer.InsurPlcyInsurContr
                                                                and OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr >= PremPayer.InsurPlcyJrnlNmbr
                                                                and OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr <  PremPayer.InsurPlcyJrnlEndNmbr

{

  key OpenApplJrnl.InsurPlcyApplUUID,
  key OpenApplJrnl.InsuranceApplication,
  key PremPayer.InsurPlcyJrnlNmbr,
  key PremPayer.InsurPlcyInsurContr,
  key PremPayer.InsurPlcyContrPremPayerID,
  key OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr,
      OpenApplJrnl.InsurPlcyUUID,
      OpenApplJrnl.InsuranceApplicationStatus

}

union

select from  I_InsurPlcyPremPayerBasic      as PremPayer

  inner join P_InsuranceOpenApplicationJrnl as OpenApplJrnl on  OpenApplJrnl.InsurPlcyApplUUID              =  PremPayer.InsurPlcyUUID
                                                            and OpenApplJrnl.InsurPlcyInsurContr            =  PremPayer.InsurPlcyInsurContr
                                                            and OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr >= PremPayer.InsurPlcyJrnlNmbr
                                                            and OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr <  PremPayer.InsurPlcyJrnlEndNmbr

{

  key OpenApplJrnl.InsurPlcyApplUUID,
  key OpenApplJrnl.InsuranceApplication,
  key PremPayer.InsurPlcyJrnlNmbr,
  key PremPayer.InsurPlcyInsurContr,
  key PremPayer.InsurPlcyContrPremPayerID,
  key OpenApplJrnl.InsurPlcyContrDataDetnJrnlNmbr,
      OpenApplJrnl.InsurPlcyUUID,
      OpenApplJrnl.InsuranceApplicationStatus

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSURPLCYPREMPAYERBASIC",
"P_INSURANCEOPENAPPLICATIONJRNL"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/