I_InsurClmFNOLFactsOriginTP

DDL: I_INSURCLMFNOLFACTSORIGINTP Type: view_entity COMPOSITE Package: ICL_VDM_FIRSTNOTICEOFLOSS_RAP

Origin of Loss Facts Captured

I_InsurClmFNOLFactsOriginTP is a Composite CDS View that provides data about "Origin of Loss Facts Captured" in SAP S/4HANA. It reads from 1 data source (I_InsurClmFactCapture) and exposes 28 fields with key fields InsuranceClaim, InsuranceContract, InsurClmFactCaptureCategory, InsurFactsSubobject, InsurClmFactCaptureQstn. Part of development package ICL_VDM_FIRSTNOTICEOFLOSS_RAP.

Data Sources (1)

SourceAliasJoin Type
I_InsurClmFactCapture I_InsurClmFactCapture from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #X view
EndUserText.label Origin of Loss Facts Captured view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY InsuranceClaim InsuranceClaim
KEY InsuranceContract InsuranceContract
KEY InsurClmFactCaptureCategory InsurClmFactCaptureCategory
KEY InsurFactsSubobject InsurFactsSubobject
KEY InsurClmFactCaptureQstn InsurClmFactCaptureQstn
KEY InsurClmFactCaptureAnswer InsurClmFactCaptureAnswer
KEY InsurClaimUUID
KEY InsurClmFactsDraftUUID
InsurClmFactFreeTextAnswerCat _FactCaptureAnswer InsurClmFactFreeTextAnswerCat
InsurClmFactCaptureQstnForEdit InsurClmFactCaptureQstn
InsurClmFactCaptureAnswForEdit InsurClmFactCaptureAnswer
InsurClmFactCaptureQstnPos InsurClmFactCaptureQstnPos
InsurClmFactCaptureQstnSqnc InsurClmFactCaptureQstnSqnc
InsurClmFactCaptureSqncVersion InsurClmFactCaptureSqncVersion
InsurClmFactCaptureSqncVariant InsurClmFactCaptureSqncVariant
InsurClmFactCaptureQstnCat _FactCaptureQstn InsurClmFactCaptureQstnCat
InsurClmFactCaptureQstnShrtTxt
InsurClmFactCaptureQstnLongTxt
InsurClmFactAnswerShortText
InsurClmFactAnswerLongText
InsurClmFactCaptureTextAnswer
InsurClmFactUsrSeldAnswerKeys _FactCaptureTxtAnswer InsurClmFactCaptureTextAnswer
InsurClmFactQstnIsMltplChoice
InsurClmFactCaptureNextQstn
InsurClmIsHiddenFlag
_FactCaptureAnswer _FactCaptureAnswer
_FactCaptureQstn _FactCaptureQstn
_Claim _Claim
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType: {
    dataClass: #TRANSACTIONAL,
    sizeCategory: #L,
    serviceQuality: #X
}
@EndUserText.label: 'Origin of Loss Facts Captured'
define view entity I_InsurClmFNOLFactsOriginTP
  as select from I_InsurClmFactCapture
  association to parent I_InsurClmFNOLTP as _Claim on  $projection.InsuranceClaim = _Claim.InsuranceClaim
                                                   and $projection.InsurClaimUUID = _Claim.InsurClaimUUID
{
  key InsuranceClaim,
  key InsuranceContract,
  key InsurClmFactCaptureCategory,
  key InsurFactsSubobject,

  key InsurClmFactCaptureQstn,

  key InsurClmFactCaptureAnswer,
  key cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) as InsurClaimUUID,
  key cast ( hextobin('00000000000000000000000000000000') as sysuuid_x16 preserving type ) as InsurClmFactsDraftUUID,
      //      InsurClmSubobject,

      _FactCaptureAnswer.InsurClmFactFreeTextAnswerCat                                     as InsurClmFactFreeTextAnswerCat,

      // Introducing ForEdit fields as Key fields cannot be edited.

      @ObjectModel.editableFieldFor: 'InsurClmFactCaptureQstn'
      InsurClmFactCaptureQstn                                                              as InsurClmFactCaptureQstnForEdit,
      @ObjectModel.editableFieldFor: 'InsurClmFactCaptureAnswer'
      InsurClmFactCaptureAnswer                                                            as InsurClmFactCaptureAnswForEdit,
      //      concat(InsurClmFactCaptureQstn, InsurClmFactCaptureAnswer) as InsurClmFactCaptureAnswForEdit,


      InsurClmFactCaptureQstnPos,
      InsurClmFactCaptureQstnSqnc,
      InsurClmFactCaptureSqncVersion,
      InsurClmFactCaptureSqncVariant,

      _FactCaptureQstn.InsurClmFactCaptureQstnCat                                          as InsurClmFactCaptureQstnCat,
      _FactCaptureQstn._FactCaptureQstnText[ Language = $session.system_language ].InsurClmFactCaptureQstnShrtTxt,
      _FactCaptureQstn._FactCaptureQstnText[ Language = $session.system_language ].InsurClmFactCaptureQstnLongTxt,
      _FactCaptureAnswer._FactCaptureAnswerT[ Language = $session.system_language ].InsurClmFactAnswerShortText,
      _FactCaptureAnswer._FactCaptureAnswerT[ Language = $session.system_language ].InsurClmFactAnswerLongText,
      _FactCaptureTxtAnswer. InsurClmFactCaptureTextAnswer,

      // Transient field to hold answer keys for user selected answers for a multiple choice question

      //     InsurClmFactCaptureTextAnswer as InsurClmFactUsrSeldAnswerKeys,

      _FactCaptureTxtAnswer.InsurClmFactCaptureTextAnswer                                  as InsurClmFactUsrSeldAnswerKeys,
      _FactCaptureQstn. InsurClmFactQstnIsMltplChoice,
      _FactCaptureAnswer. InsurClmFactCaptureNextQstn,
      cast('' as xfeld preserving type )                                                   as InsurClmIsHiddenFlag,
      /* Associations */
      //I_InsurClm1stNotifFactCapture

      _FactCaptureAnswer,
      _FactCaptureQstn,


      _Claim
      //  _Claim // Make association public

}

where
      InsurClmFactCaptureCategory = 'KF'
  and InsurFactsSubobject         = 'X'