I_BrexitProtocolValidity

DDL: I_BREXITPROTOCOLVALIDITY SQL: INIPROT Type: view BASIC

Northern Ireland Protocol Validity

I_BrexitProtocolValidity is a Basic CDS View that provides data about "Northern Ireland Protocol Validity" in SAP S/4HANA. It reads from 1 data source (I_Country) and exposes 3 fields with key field BrexitProtocolType.

Data Sources (1)

SourceAliasJoin Type
I_Country I_Country from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName INIPROT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
EndUserText.label Northern Ireland Protocol Validity view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #CUSTOMIZING view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY BrexitProtocolType
BrexitProtocolValidFromDate
BrexitProtocolValidToDate
@AbapCatalog.sqlViewName: 'INIPROT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@VDM.viewType: #BASIC
@EndUserText.label: 'Northern Ireland Protocol Validity'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #X
@ObjectModel.usageType.dataClass: #CUSTOMIZING

/**
  If not found in configuration table iduk_brexit, this view sets
  Northern Ireland protocol validity to a fixed range.
  On 17 December 2020 this range is officialy acknowledged.
**/

define view I_BrexitProtocolValidity
  as select from    I_Country

    left outer to one join P_IDUK_BREXIT on party = 'NIPROT'

{

  key coalesce(party, 'NIPROT')       as BrexitProtocolType,
      coalesce(validfrom, '20210101') as BrexitProtocolValidFromDate,
      coalesce(validto, '20241231')   as BrexitProtocolValidToDate

}

where
  Country = 'GB'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COUNTRY",
"P_IDUK_BREXIT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/