I_CollectionsStrategy

DDL: I_COLLECTIONSSTRATEGY Type: view BASIC Package: UDM_COLL_CDS

Collections Strategy

I_CollectionsStrategy is a Basic CDS View that provides data about "Collections Strategy" in SAP S/4HANA. It reads from 1 data source (udm_strategy) and exposes 21 fields with key field CollectionStrategy. It has 2 associations to related views. Part of development package UDM_COLL_CDS.

Data Sources (1)

SourceAliasJoin Type
udm_strategy udm_strategy from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Currency _Currency $projection.CollStrgyCurrency = _Currency.Currency
[0..*] I_CollectionsStrategyText _CollectionsStrategyText $projection.CollectionStrategy = _CollectionsStrategyText.CollectionStrategy

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName ICOLLSSTRAT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Collections Strategy view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey CollectionStrategy view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY CollectionStrategy coll_strategy
CollStrgyCurrency currency
CollStrgyMaxValuation max_valuation
CollDuDteCshDiscIsConsidered
CollStrgyNmbrDaysBeforeDueDate
CollStrgyTolDaysAfterDunn
CollItmWthLglDunProcedIsExcl
CollStrgyOverduePeriod1 overdue_period1
CollStrgyOverduePeriod2
CollStrgyOverduePeriod3
CollStrgyOverduePeriod4
CollStrgyDueDatePeriod1 due_period1
CollStrgyDueDatePeriod2
CollStrgyDueDatePeriod3
CollStrgyDueDatePeriod4
CollStrgyCreatedBy created_by
CollStrgyCreatedOn
CollStrgyLastChangedBy changed_by
CollStrgyLastChangedOn
_Currency _Currency
_CollectionsStrategyText _CollectionsStrategyText
@AbapCatalog: { sqlViewName: 'ICOLLSSTRAT',
                compiler: { compareFilter: true },
                preserveKey: true }
@AccessControl: { authorizationCheck: #CHECK,
                  personalData:       { blocking: #BLOCKED_DATA_EXCLUDED } }
@EndUserText: { label: 'Collections Strategy' }
@VDM: { viewType: #BASIC,
        lifecycle: { contract: { type: #PUBLIC_LOCAL_API } } }
@ClientHandling: { algorithm: #SESSION_VARIABLE }
@ObjectModel: { usageType: { serviceQuality: #A,
                             sizeCategory: #L,
                             dataClass: #CUSTOMIZING },
                semanticKey: [ 'CollectionStrategy' ],
                representativeKey: 'CollectionStrategy' }

define view I_CollectionsStrategy
  as select from udm_strategy

  // VDM Associations

  // Currency

  association [0..1] to I_Currency                as _Currency                on $projection.CollStrgyCurrency = _Currency.Currency

  // Collections Strategy Text

  association [0..*] to I_CollectionsStrategyText as _CollectionsStrategyText on $projection.CollectionStrategy = _CollectionsStrategyText.CollectionStrategy

{

      // VDM Fields

  key coll_strategy                                                            as CollectionStrategy,

      @Semantics: { currencyCode: true }
      @ObjectModel: { foreignKey: { association: '_Currency' } }
      currency                                                                 as CollStrgyCurrency,

      max_valuation                                                            as CollStrgyMaxValuation,
      cast(x_cash_disc as fin_mng_colstr_cash_disc_dline preserving type )     as CollDuDteCshDiscIsConsidered,
      cast(no_of_days as fin_mng_colstr_day_before_due preserving type )       as CollStrgyNmbrDaysBeforeDueDate,
      cast(dunn_days as fin_mng_colstr_dunn_grace_days preserving type )       as CollStrgyTolDaysAfterDunn,
      cast(x_legal_dunn as fin_mng_colstr_flag_legal_dunn preserving type )    as CollItmWthLglDunProcedIsExcl,
      overdue_period1                                                          as CollStrgyOverduePeriod1,
      cast(overdue_period2 as fin_mng_colstr_overdue_period2 preserving type ) as CollStrgyOverduePeriod2,
      cast(overdue_period3 as fin_mng_colstr_overdue_period3 preserving type ) as CollStrgyOverduePeriod3,
      cast(overdue_period4 as fin_mng_colstr_overdue_period4 preserving type ) as CollStrgyOverduePeriod4,
      due_period1                                                              as CollStrgyDueDatePeriod1,
      cast(due_period2 as fin_mng_colstr_due_period2 preserving type )         as CollStrgyDueDatePeriod2,
      cast(due_period3 as fin_mng_colstr_due_period3 preserving type )         as CollStrgyDueDatePeriod3,
      cast(due_period4 as fin_mng_colstr_due_period4 preserving type )         as CollStrgyDueDatePeriod4,

      @Semantics: { user: { createdBy: true } }
      created_by                                                               as CollStrgyCreatedBy,

      @Semantics: { systemDateTime: { createdAt: true } }
      cast( created_at as coll_pr_creation_date_time preserving type )         as CollStrgyCreatedOn,

      @Semantics: { user: { lastChangedBy: true } }
      changed_by                                                               as CollStrgyLastChangedBy,

      @Semantics: { systemDateTime: { lastChangedAt: true } }
      cast( changed_at as coll_pr_changed_at preserving type )                 as CollStrgyLastChangedOn,

      // Exposed Associations

      _Currency,
      _CollectionsStrategyText

}