I_LegalRegulation

DDL: I_LEGALREGULATION SQL: ILEGRGLN Type: view BASIC Package: VDM_SLL_COR

Legal Regulation

I_LegalRegulation is a Basic CDS View that provides data about "Legal Regulation" in SAP S/4HANA. It reads from 1 data source (/sapsll/t606g) and exposes 13 fields with key field LegalRegulation. It has 6 associations to related views. Part of development package VDM_SLL_COR.

Data Sources (1)

SourceAliasJoin Type
/sapsll/t606g /sapsll/t606g from

Associations (6)

CardinalityTargetAliasCondition
[0..*] I_LegalRegulationText _LegalRegulationText _LegalRegulationText.LegalRegulation = $projection.LegalRegulation
[0..*] I_CountryText _CountryText _CountryText.Country = $projection.OriginCountry
[0..*] I_TrdClassfctnNmbrSchmText _CtrlClNmbrSchmText _CtrlClNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CtrlClNmbrSchm
[0..*] I_TrdClassfctnNmbrSchmText _CmmdtyCodeNmbrSchmText _CmmdtyCodeNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CmmdtyCodeNmbrSchm
[0..*] I_TrdClassfctnNmbrSchmText _CstmsTrifNmbrNmbrSchmText _CstmsTrifNmbrNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CmmdtyCodeNmbrSchm
[0..*] I_LegalRegulationAct _LegalRegulationAct _LegalRegulationAct.LegalRegulation = $projection.LegalRegulation

Annotations (12)

NameValueLevelField
EndUserText.label Legal Regulation view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName ILEGRGLN view
AccessControl.authorizationCheck #CHECK view
ObjectModel.representativeKey LegalRegulation view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable false view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #FULL view
ObjectModel.usageType.sizeCategory M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.dataClass #MASTER view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY LegalRegulation lgreg
IntlTrdLglRglnArea trara
OriginCountry gglnd
CtrlClNmbrSchm cclns
CmmdtyCodeNmbrSchm cocns
IsControlGroupingRelevant cgrco
CstmsTrifNmbrNmbrSchm tnons
_LegalRegulationText _LegalRegulationText
_CountryText _CountryText
_CtrlClNmbrSchmText _CtrlClNmbrSchmText
_CmmdtyCodeNmbrSchmText _CmmdtyCodeNmbrSchmText
_CstmsTrifNmbrNmbrSchmText _CstmsTrifNmbrNmbrSchmText
_LegalRegulationAct _LegalRegulationAct
@EndUserText.label: 'Legal Regulation'
@VDM.viewType: #BASIC
@AbapCatalog.sqlViewName: 'ILEGRGLN'
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey: 'LegalRegulation'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Search.searchable: false

@AbapCatalog.buffering.status: #ACTIVE
@AbapCatalog.buffering.type: #FULL
@ObjectModel.usageType.sizeCategory: 'M'
@ObjectModel.usageType.serviceQuality: #A
@ObjectModel.usageType.dataClass: #MASTER
define view I_LegalRegulation
  as select from /sapsll/t606g
  association [0..*] to I_LegalRegulationText      as _LegalRegulationText    on _LegalRegulationText.LegalRegulation = $projection.LegalRegulation
  association [0..*] to I_CountryText              as _CountryText            on _CountryText.Country = $projection.OriginCountry
  association [0..*] to I_TrdClassfctnNmbrSchmText as _CtrlClNmbrSchmText     on _CtrlClNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CtrlClNmbrSchm
  association [0..*] to I_TrdClassfctnNmbrSchmText as _CmmdtyCodeNmbrSchmText on _CmmdtyCodeNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CmmdtyCodeNmbrSchm
  association [0..*] to I_TrdClassfctnNmbrSchmText as _CstmsTrifNmbrNmbrSchmText on _CstmsTrifNmbrNmbrSchmText.TrdClassfctnNmbrSchm = $projection.CmmdtyCodeNmbrSchm
  association [0..*] to I_LegalRegulationAct       as _LegalRegulationAct     on _LegalRegulationAct.LegalRegulation = $projection.LegalRegulation
{
      @ObjectModel.text.association: '_LegalRegulationText'
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
  key lgreg                    as LegalRegulation,
      trara                    as IntlTrdLglRglnArea,
      @ObjectModel.text.association: '_CountryText'
      gglnd                    as OriginCountry,
      @ObjectModel.text.association: '_CtrlClNmbrSchmText'
      cclns                    as CtrlClNmbrSchm,
      cast( case cclns
          when '' then ''
          else 'X'
       end as boolean_flg )    as IsCtrlClNmbrSchmAssgd,
      @ObjectModel.text.association: '_CmmdtyCodeNmbrSchmText'
      cocns                    as CmmdtyCodeNmbrSchm,
      cast( case cocns
          when '' then ''
          else 'X' 
       end as boolean_flg )    as IsCmmdtyCodeNmbrSchmAssgd,
      cgrco                    as IsControlGroupingRelevant,
      @ObjectModel.text.association: '_CstmsTrifNmbrNmbrSchmText'
      tnons                    as CstmsTrifNmbrNmbrSchm,
      cast( case tnons
          when '' then ''
          else 'X'
       end as boolean_flg )    as CstmsTrifNmbrNmbrSchmIsAssgd,
      cast( case mprod
          when 'A' then 'X'
          else '' 
       end as boolean_flg )    as TrdCmplncCtrlIsRlvtForAllProd,

      _LegalRegulationText,
      _CountryText,
      _CtrlClNmbrSchmText,
      _CmmdtyCodeNmbrSchmText,
      _CstmsTrifNmbrNmbrSchmText,
      _LegalRegulationAct
}