I_LCMContextTP

DDL: I_LCMCONTEXTTP Type: view_entity TRANSACTIONAL Package: APPL_LCM_CTX

Enterprise Contract Mgmt. Legal Context

I_LCMContextTP is a Transactional CDS View that provides data about "Enterprise Contract Mgmt. Legal Context" in SAP S/4HANA. It reads from 1 data source (I_LcmContext) and exposes 54 fields with key field LglCntntMContextUUID. It has 19 associations to related views. Part of development package APPL_LCM_CTX.

Data Sources (1)

SourceAliasJoin Type
I_LcmContext I_LcmContext from

Associations (19)

CardinalityTargetAliasCondition
[1..1] E_LglCntntMContext _Extension $projection.LglCntntMContextUUID = _Extension.LglCntntMContextUUID
[0..*] I_LglCntntMAccessLvlText _LglCntntMAccessLvlText $projection.LglCntntMCntxtAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl
[0..*] I_LglCntntMProfileText _LglCntntMProfileText $projection.LglCntntMProfile = _LglCntntMProfileText.LglCntntMProfile
[0..*] I_LanguageText _LanguageText $projection.LglCntntMCntxtLanguage = _LanguageText.LanguageCode
[0..*] I_SalesOrganizationText _SalesOrganizationText $projection.LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization
[0..*] I_LCMStatusText _LglCntntMCntxtCurrentStsTxt $projection.LglCntntMContextCurStatus = _LglCntntMCntxtCurrentStsTxt.LglCntntMStatus
[0..1] I_CompanyCode _CompanyCode $projection.LglCntntMMainOrgCoCode = _CompanyCode.CompanyCode
[0..1] I_LCMContextEntity _LCMContextMainEntity _LCMContextMainEntity.LglCntntMContextUUID = $projection.LglCntntMContextUUID and _LCMContextMainEntity.LglCntntMIsMainEntity = 'X'
[1..*] I_LCMCtxIntContactTP _LCMCtxIntContactTP
[1..*] I_LCMCtxExtContactTP _LCMCtxExtContactTP
[1..*] I_LCMContextEntityTP _LCMContextEntityTP
[1..*] I_LCMContextDateTP _LCMContextDateTP
[1..*] I_LCMContextRelationshipTP _LCMContextRelationshipTP
[1..*] I_LCMContextObjectLinksTP _LCMContextObjectLinksTP
[1..*] I_LCMContextCategoryGroupTP _LCMContextCategoryGroupTP
[1..*] I_LglCntntMContextDocTP _LglCntntMContextDocTP
[0..1] I_LglCntntMCntxtRnwlAndTermnTP _LglCntntMCntxtRnwlAndTermnTP
[1..*] I_LglCntntMCntxtPhseTP _LglCntntMCntxtPhseTP
[1..*] I_LglCntntMCntxtRuleGroupTP _LglCntntMCntxtRuleGroupTP

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
VDM.viewType #TRANSACTIONAL view
ObjectModel.representativeKey LglCntntMContextUUID view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.sapObjectNodeType.name LegalContext view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
EndUserText.label Enterprise Contract Mgmt. Legal Context view

Fields (54)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMContextUUID LglCntntMContextUUID Universal Unique ID
LglCntntMContext LglCntntMContext Context ID
LglCntntMContextVersion LglCntntMContextVersion Context Version
LglCntntMContextTitle LglCntntMContextTitle Title
LglCntntMContextStatus LglCntntMContextStatus Status
LglCntntMContextCurStatus LglCntntMContextStatus Status
LglCntntMStsPrfl LglCntntMStsPrfl Status Profile
LglCntntMContextOwner LglCntntMContextOwner Owner
LglCntntMCreatedByUser LglCntntMCreatedByUser Created By
LglCntntMCreatedUTCDateTime LglCntntMCreatedUTCDateTime Created On
LglCntntMChangedUTCDateTime LglCntntMChangedUTCDateTime Changed On
LglCntntMChangedByUser LglCntntMChangedByUser Changed By
LglCntntMIsUsed
LglCntntMContextOperation
LglCntntMContextValidFromDate LglCntntMContextValidFromDate Valid From
LglCntntMContextValidToDate LglCntntMContextValidToDate Valid To
LglCntntMPrevCntxtVers LglCntntMPrevCntxtVers Universal Unique ID
LglCntntMCntxtIsReadOnly LglCntntMCntxtIsReadOnly Read Only
LglCntntMProfile LglCntntMProfile Profile
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
LglCntntMLongTextUUID LglCntntMLongTextUUID Description UUID
LglCntntMLongText LglCntntMLongText Trusted Site Content
LglCntntMLongTextMimeType LglCntntMLongTextMimeType MIMETYPE
LglCntntMCntxtLanguage LglCntntMCntxtLanguage Language
LglCntntMGovLaw LglCntntMGovLaw Governing Law
LglCntntMCntxtAccessLvl LglCntntMCntxtAccessLvl Acs. Level
LglCntntMMainOrgType LglCntntMMainOrgType Main Organisation Ty
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Entity ID
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Entity ID
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Entity ID
LglCntntMIntegrationType LglCntntMIntegrationType Integration Variant
_LCMCtxIntContactTP _LCMCtxIntContactTP
_LCMCtxExtContactTP _LCMCtxExtContactTP
_LCMContextEntityTP _LCMContextEntityTP
_LCMContextRelationshipTP _LCMContextRelationshipTP
_LCMContextObjectLinksTP _LCMContextObjectLinksTP
_LCMContextCategoryGroupTP _LCMContextCategoryGroupTP
_LCMContextDateTP _LCMContextDateTP
_LglCntntMContextDocTP _LglCntntMContextDocTP
_LglCntntMCntxtRnwlAndTermnTP _LglCntntMCntxtRnwlAndTermnTP
_LglCntntMCntxtPhseTP _LglCntntMCntxtPhseTP
_LglCntntMCntxtRuleGroupTP _LglCntntMCntxtRuleGroupTP
_LglCntntMGovLaw _LglCntntMGovLaw
_LglCntntMAccessLvlText _LglCntntMAccessLvlText
_LglCntntMMainOrgTypeText _LglCntntMMainOrgTypeText
_PurchasingOrganization _PurchasingOrganization
_LCMContextAggr _LCMContextAggr
_LglCntntMProfileText _LglCntntMProfileText
_LglCntntMIntegTypeText _LglCntntMIntegTypeText
_LanguageText _LanguageText
_SalesOrganizationText _SalesOrganizationText
_LglCntntMCntxtCurrentStsTxt _LglCntntMCntxtCurrentStsTxt
_CompanyCode _CompanyCode
_LCMContextMainEntity _LCMContextMainEntity

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_LCMContextTP.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_LCMContextTP AS
SELECT
  LglCntntMContextUUID,
  LglCntntMContext,
  LglCntntMContextVersion,
  LglCntntMContextTitle,
  LglCntntMContextStatus,
  LglCntntMContextStatus AS LglCntntMContextCurStatus,
  LglCntntMStsPrfl,
  LglCntntMContextOwner,
  LglCntntMCreatedByUser,
  LglCntntMCreatedUTCDateTime,
  LglCntntMChangedUTCDateTime,
  LglCntntMChangedByUser,
  cast ('' as lcm_is_used preserving type) AS LglCntntMIsUsed,
  cast ('' as lcm_ctx_operation_flag preserving type ) AS LglCntntMContextOperation,
  LglCntntMContextValidFromDate,
  LglCntntMContextValidToDate,
  LglCntntMPrevCntxtVers,
  LglCntntMCntxtIsReadOnly,
  LglCntntMProfile,
  IsEndOfPurposeBlocked,
  LglCntntMLongTextUUID,
  LglCntntMLongText,
  LglCntntMLongTextMimeType,
  LglCntntMCntxtLanguage,
  LglCntntMGovLaw,
  LglCntntMCntxtAccessLvl,
  LglCntntMMainOrgType,
  LglCntntMMainOrgCoCode,
  LglCntntMMainOrgSalesOrg,
  LglCntntMMainOrgPurOrg,
  LglCntntMIntegrationType
FROM I_LcmContext
LEFT OUTER JOIN E_LglCntntMContext AS _Extension ON LglCntntMContextUUID = _Extension.LglCntntMContextUUID  -- association [1..1]
LEFT OUTER JOIN I_LglCntntMAccessLvlText AS _LglCntntMAccessLvlText ON LglCntntMCntxtAccessLvl = _LglCntntMAccessLvlText.LglCntntMAccessLvl  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMProfileText AS _LglCntntMProfileText ON LglCntntMProfile = _LglCntntMProfileText.LglCntntMProfile  -- association [0..*]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON LglCntntMCntxtLanguage = _LanguageText.LanguageCode  -- association [0..*]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization  -- association [0..*]
LEFT OUTER JOIN I_LCMStatusText AS _LglCntntMCntxtCurrentStsTxt ON LglCntntMContextCurStatus = _LglCntntMCntxtCurrentStsTxt.LglCntntMStatus  -- association [0..*]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON LglCntntMMainOrgCoCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_LCMContextEntity AS _LCMContextMainEntity ON _LCMContextMainEntity.LglCntntMContextUUID = LglCntntMContextUUID AND _LCMContextMainEntity.LglCntntMIsMainEntity = 'X'  -- association [0..1]
LEFT OUTER JOIN I_LCMCtxIntContactTP AS _LCMCtxIntContactTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMCtxExtContactTP AS _LCMCtxExtContactTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMContextEntityTP AS _LCMContextEntityTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMContextDateTP AS _LCMContextDateTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMContextRelationshipTP AS _LCMContextRelationshipTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMContextObjectLinksTP AS _LCMContextObjectLinksTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LCMContextCategoryGroupTP AS _LCMContextCategoryGroupTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LglCntntMContextDocTP AS _LglCntntMContextDocTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LglCntntMCntxtRnwlAndTermnTP AS _LglCntntMCntxtRnwlAndTermnTP ON /* condition not available in parsed metadata */  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMCntxtPhseTP AS _LglCntntMCntxtPhseTP ON /* condition not available in parsed metadata */  -- association [1..*]
LEFT OUTER JOIN I_LglCntntMCntxtRuleGroupTP AS _LglCntntMCntxtRuleGroupTP ON /* condition not available in parsed metadata */  -- association [1..*]
;