R_CRDTMBUSINESSPARTNERTP

CDS View

Maintain Business Partner in Credit Mgmt

R_CRDTMBUSINESSPARTNERTP is a CDS View in S/4HANA. Maintain Business Partner in Credit Mgmt. 3 CDS views read from this table.

CDS Views using this table (3)

ViewTypeJoinVDMDescription
A_CrdtMBusinessPartner view_entity projection CONSUMPTION Business Partners
C_CrdtMBusinessPartnerTP view_entity projection CONSUMPTION Maintain Business Partner in Credit Mgmt
I_CrdtMBusinessPartnerTP view_entity projection TRANSACTIONAL Business Partners - TP
@EndUserText.label: 'Maintain Business Partner in Credit Mgmt'

@ObjectModel: { usageType: { dataClass:      #MASTER,
                             sizeCategory:   #L,
                             serviceQuality: #C
                           },
                semanticKey:       ['BusinessPartner'],  //Enable semantic (intend-based) navigation

                representativeKey:  'BusinessPartner',
                sapObjectNodeType.name: 'CreditMgmtBusinessPartner'
              }

@VDM: { viewType:                #TRANSACTIONAL,
        lifecycle.contract.type: #SAP_INTERNAL_API
      }

@AccessControl: { authorizationCheck:     #CHECK,
                  personalData.blocking:  #BLOCKED_DATA_EXCLUDED //data privacy, hide data from blocked business partners

                }

@Consumption.dbHints: [ 'USE_HEX_PLAN' ]

define root view entity R_CrdtMBusinessPartnerTP
  as select from I_CrdtMBusinessPartner

  composition [0..*] of R_CreditMgmtAccountTP        as _CreditMgmtAccountTP // BO-internal association names seem to be subject to naming rules and ATC

  composition [0..*] of R_CrdtMBusPartnerRatingTP    as _CrdtMBusPartnerRatingTP
  composition [0..*] of R_CrdtMBPCollateralTP        as _CrdtMBPCollateralTP
  composition [0..*] of R_CrdtMBPCreditInsuranceTP   as _CrdtMBPCreditInsuranceTP
  composition [0..*] of R_CrdtMBPSpprsdCheckStepTP   as _CrdtMBPSpprsdCheckStepTP
  composition [0..*] of R_CrdtMBPNegativeEventTP     as _CrdtMBPNegativeEventTP
  composition [0..*] of R_CrdtMFmlaScoreEvalResultTP as _CrdtMFmlaScoreEvalResultTP


  association [0..*] to R_CrdtMBPRelationshipTP      as _CrdtMBPRelationshipTP   on  _CrdtMBPRelationshipTP.BusinessPartner = $projection.BusinessPartner

  association [0..*] to R_CreditDecisionDocumentTP   as _CreditDecisionDocument  on  _CreditDecisionDocument.BusinessPartner  = $projection.BusinessPartner
                                                                                 and _CreditDecisionDocument.CaseSystemStatus != '009'
  association [0..*] to R_CreditDecisionDocumentTP_2 as _CreditDecisionDocument2 on  _CreditDecisionDocument2.BusinessPartner = $projection.BusinessPartner

  association [0..*] to R_CreditLimitRequestTP       as _CreditLimitRequest      on  _CreditLimitRequest.BusinessPartner  = $projection.BusinessPartner
                                                                                 and _CreditLimitRequest.CaseSystemStatus != '009'

  association [1]    to I_RblsMgmtBPToCustomer          as _Customer             on  _Customer.BusinessPartner = $projection.BusinessPartner

  // Extension Include View

  association [1]    to E_CrdtMBusinessPartner          as _Extension            on  $projection.BusinessPartner = _Extension.BusinessPartner


{
  key BusinessPartner,
      CrdtMgmtBusinessPartnerGroup,

      CreditWorthinessScoreValue,
      CrdtWrthnssScoreValdtyEndDate,
      CrdtWorthinessScoreLastChgDate,
      CalcdCrdtWorthinessScoreValue,

      CreditRiskClass,
      CalculatedCreditRiskClass,
      CreditRiskClassLastChangeDate,

      CreditCheckRule,
      CreditScoreAndLimitCalcRule,

      CustBusinessRelshpStartYear,

      BPLastChangeDateTime,

      MainCreditSegment,
      // used for integration of NotesReuse component

      cast( hextobin( '00000000000000000000000000000000' ) as nte_id ) as CrdtMAccountNoteUUID,

      /* Associations */
      _CreditMgmtAccountTP,
      _CrdtMBPRelationshipTP,
      _CrdtMBusPartnerRatingTP,
      _CreditDecisionDocument,
      _CreditDecisionDocument2,
      _CreditLimitRequest,
      _CrdtMFmlaScoreEvalResultTP,

      _CrdtMBPCollateralTP,
      _CrdtMBPNegativeEventTP,
      _CrdtMBPSpprsdCheckStepTP,
      _CrdtMBPCreditInsuranceTP,

      _BusinessPartner,
      _Customer,
      _CreditMgmtBPAddress,

      _MainCreditSegment,
      _MainCreditSegmentAccount, // needed for limit and utilization


      _CrdtMBusPartnerGroup,
      _RiskClass,
      _CalcRiskClass,
      _CheckRule,
      _CalcRule
}