I_SubscrpnContrItmExtRef

DDL: I_SUBSCRPNCONTRITMEXTREF Type: view_entity BASIC Package: CRMS4_SOM_LEGACY

Subscription Contract External Reference

I_SubscrpnContrItmExtRef is a Basic CDS View that provides data about "Subscription Contract External Reference" in SAP S/4HANA. It reads from 1 data source (crms4d_ext_ref) and exposes 3 fields with key fields SubscriptionContract, SubscriptionContractItem. Part of development package CRMS4_SOM_LEGACY.

Data Sources (1)

SourceAliasJoin Type
crms4d_ext_ref crms4d_ext_ref from

Annotations (8)

NameValueLevelField
EndUserText.label Subscription Contract External Reference view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
Metadata.ignorePropagatedAnnotations true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY SubscriptionContract object_id
KEY SubscriptionContractItem number_int
SubscrpnContrItmRefType reference_type
@EndUserText.label: 'Subscription Contract External Reference'
@VDM: {
  viewType: #BASIC,
  lifecycle.contract.type: #PUBLIC_LOCAL_API
}
@AccessControl: {
  authorizationCheck: #NOT_REQUIRED,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}

@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XL
   }
}

@Metadata.ignorePropagatedAnnotations: true
/*+[hideWarning] { "IDS" : [ "KEY_CHECK" ] } */
define view entity I_SubscrpnContrItmExtRef
  as select from crms4d_ext_ref
{
  key object_id      as SubscriptionContract,
  key number_int     as SubscriptionContractItem,
      reference_type as SubscrpnContrItmRefType,

      case
        when reference_type = '0018'  then reference_number
        else ''
      end            as SbscrContrPrdcssrExtID,

      case
        when reference_type = '0019'  then reference_number
        else ''
      end            as SbscrContrSuccssrExtID,

      case
          when reference_type = '0022'  then reference_number
          else ''
        end          as LegalContractItemExtReference,

      case
           when reference_type = '0021'  then reference_number
           else ''
         end         as LegalContractExtReference
}
where
      objtype_h      = 'BUS2000266'
  and reference_type = '0018'
  or  reference_type = '0019'
  or  reference_type = '0022'
  or  reference_type = '0021'