I_LCMContextEntity

DDL: I_LCMCONTEXTENTITY SQL: ILCMCTXENT Type: view BASIC Package: VDM_LCM_CTX

Basic view for LCM Context Entity

I_LCMContextEntity is a Basic CDS View that provides data about "Basic view for LCM Context Entity" in SAP S/4HANA. It reads from 1 data source (lcm_ctx_entity) and exposes 18 fields with key field LglCntntMCntxtEntityUUID. It has 10 associations to related views. Part of development package VDM_LCM_CTX.

Data Sources (1)

SourceAliasJoin Type
lcm_ctx_entity lcm_ctx_entity from

Associations (10)

CardinalityTargetAliasCondition
[1..1] I_LcmContext _LglCntntMContext $projection.LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID
[0..1] I_LCMEntityType _LCMEntityType _LCMEntityType.LglCntntMEntityType = $projection.LglCntntMEntityType
[0..*] I_LCMEntityTypeText _MainEntityTypeText $projection.LglCntntMEntityType = _MainEntityTypeText.LglCntntMEntityType
[0..1] I_PurchasingOrganization _PurchasingOrganization _PurchasingOrganization.PurchasingOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '05'
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '01'
[0..1] I_SalesOrganizationText _SalesOrganizationText _SalesOrganizationText.SalesOrganization = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '04' and _SalesOrganizationText.Language = $session.system_language
[0..1] I_Customer _Customer _Customer.Customer = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '02'
[0..1] I_CompanyCode _CompanyCode _CompanyCode.CompanyCode = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '03'
[0..1] I_BusinessPartner _BusinessPartner _BusinessPartner.BusinessPartner = $projection.LglCntntMEntity and $projection.LglCntntMTechEntityType = '06'
[0..1] I_LCMEntityTypeText _EntityTypeText $projection.LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType and _EntityTypeText.Language = $session.system_language

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName ILCMCTXENT view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.representativeKey LglCntntMCntxtEntityUUID view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.personalData.blocking #REQUIRED view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Basic view for LCM Context Entity view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMCntxtEntityUUID lglcntntmcntxtentityuuid
LglCntntMContextUUID lglcntntmcontextuuid
LglCntntMTechEntityType _LCMEntityType LglCntntMTechEntityType
LglCntntMRank lglcntntmrank
LglCntntMEntity lglcntntmentity
LglCntntMEntityType lglcntntmentitytype
LglCntntMIsMandatory lglcntntmismandatory
LglCntntMIsMainEntity lglcntntmismainentity
LglCntntMIsIntegRelevant lglcntntmisintegrelevant
_LglCntntMContext _LglCntntMContext
_EntityTypeText _EntityTypeText
_MainEntityTypeText _MainEntityTypeText
_PurchasingOrganization _PurchasingOrganization
_Supplier _Supplier
_SalesOrganizationText _SalesOrganizationText
_Customer _Customer
_CompanyCode _CompanyCode
_BusinessPartner _BusinessPartner
@AbapCatalog.sqlViewName: 'ILCMCTXENT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ClientHandling.type: #CLIENT_DEPENDENT
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType : #BASIC

@ObjectModel: {
  representativeKey: 'LglCntntMCntxtEntityUUID',
  usageType.serviceQuality: #A,
  usageType.sizeCategory: #L,
  usageType.dataClass: #TRANSACTIONAL
}

@AccessControl.personalData.blocking: #REQUIRED

@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
@EndUserText.label: 'Basic view for LCM Context Entity'
define view I_LCMContextEntity
  as select from lcm_ctx_entity

  association [1..1] to I_LcmContext             as _LglCntntMContext       on  $projection.LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID
  association [0..1] to I_LCMEntityType          as _LCMEntityType          on  _LCMEntityType.LglCntntMEntityType = $projection.LglCntntMEntityType
  association [0..*] to I_LCMEntityTypeText      as _MainEntityTypeText     on  $projection.LglCntntMEntityType = _MainEntityTypeText.LglCntntMEntityType

  association [0..1] to I_PurchasingOrganization as _PurchasingOrganization on  _PurchasingOrganization.PurchasingOrganization = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType            = '05'

  association [0..1] to I_Supplier               as _Supplier               on  _Supplier.Supplier                  = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType = '01'

  association [0..1] to I_SalesOrganizationText  as _SalesOrganizationText  on  _SalesOrganizationText.SalesOrganization = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType      = '04'
                                                                            and _SalesOrganizationText.Language          = $session.system_language

  association [0..1] to I_Customer               as _Customer               on  _Customer.Customer                  = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType = '02'

  association [0..1] to I_CompanyCode            as _CompanyCode            on  _CompanyCode.CompanyCode            = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType = '03'

  association [0..1] to I_BusinessPartner        as _BusinessPartner        on  _BusinessPartner.BusinessPartner    = $projection.LglCntntMEntity
                                                                            and $projection.LglCntntMTechEntityType = '06'

  // ESH association

  association [0..1] to I_LCMEntityTypeText      as _EntityTypeText         on  $projection.LglCntntMEntityType = _EntityTypeText.LglCntntMEntityType
                                                                            and _EntityTypeText.Language        = $session.system_language

{

  key lglcntntmcntxtentityuuid               as LglCntntMCntxtEntityUUID,
      lglcntntmcontextuuid                   as LglCntntMContextUUID,
      _LCMEntityType.LglCntntMTechEntityType as LglCntntMTechEntityType,
      lglcntntmrank                          as LglCntntMRank,
      lglcntntmentity                        as LglCntntMEntity,
      lglcntntmentitytype                    as LglCntntMEntityType,
      lglcntntmismandatory                   as LglCntntMIsMandatory,
      lglcntntmismainentity                  as LglCntntMIsMainEntity,
      lglcntntmisintegrelevant               as LglCntntMIsIntegRelevant,

      //Authorization

      _LglCntntMContext,

      _EntityTypeText,
      _MainEntityTypeText,
      _PurchasingOrganization,
      _Supplier,
      _SalesOrganizationText,
      _Customer,
      _CompanyCode,
      _BusinessPartner
}