C_LegalContentRequest

DDL: C_LEGALCONTENTREQUEST SQL: CLEGALTRREQ Type: view CONSUMPTION Package: ODATA_LCM_LT

Legal Content Request

C_LegalContentRequest is a Consumption CDS View that provides data about "Legal Content Request" in SAP S/4HANA. It reads from 1 data source (I_LegalTransaction) and exposes 44 fields with key field LegalTransactionUUID. It has 23 associations to related views. Part of development package ODATA_LCM_LT.

Data Sources (1)

SourceAliasJoin Type
I_LegalTransaction LegalTr from

Associations (23)

CardinalityTargetAliasCondition
[0..1] I_LcmContext _LglCntntMContext $projection.LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID
[0..*] C_LegalTransactionEntity _LegalTransactionEntity $projection.LegalTransactionUUID = _LegalTransactionEntity.LegalTransactionUUID
[0..*] C_LegalTransactionIntContact _LegalTransactionIntContact $projection.LegalTransactionUUID = _LegalTransactionIntContact.LegalTransactionUUID
[0..*] C_LegalTransactionExtContact _LegalTransactionExtContact $projection.LegalTransactionUUID = _LegalTransactionExtContact.LegalTransactionUUID
[0..*] C_LegalTrRelationShip _LegalTrRelationShip $projection.LegalTransactionUUID = _LegalTrRelationShip.LegalTransactionUUID
[0..*] C_LegalTrLinkedObjects _LegalTrLinkedObjects $projection.LegalTransactionUUID = _LegalTrLinkedObjects.LegalTransactionUUID
[0..1] I_LCMUserContactCard _OwnerContactCard _OwnerContactCard.ContactCardType = 'User' and _OwnerContactCard.ContactCardID = $projection.lglcntntmcontextowner and _OwnerContactCard.ContactCardRole = 'Creator'
[0..*] C_LegalTransactionDate _LegalTransactionDate $projection.LegalTransactionUUID = _LegalTransactionDate.LegalTransactionUUID
[0..*] C_LglTransReqLglCntntDoc _LglTransReqLglCntntDoc $projection.LegalTransactionUUID = _LglTransReqLglCntntDoc.LegalTransactionUUID
[0..*] C_LglTransCategoryGroup _LglTransCategoryGroup $projection.LegalTransactionUUID = _LglTransCategoryGroup.LegalTransactionUUID
[0..1] C_LegalContentRequestCntxtIDVH _ContextIdValueHelp $projection.LglCntntMContext = _ContextIdValueHelp.LglCntntMContext
[0..1] I_Language _LanguageValueHelp $projection.LglCntntMLanguage = _LanguageValueHelp.Language
[0..1] C_LglCntntMGovLawVH _LCMGovLawVH $projection.LglCntntMGovLaw = _LCMGovLawVH.LglCntntMGovLaw
[0..1] C_LglTransMainOrgCoCodeCrteVH _LglTransMainOrgCoCodeCrteVH $projection.LglCntntMMainOrgCoCode = _LglTransMainOrgCoCodeCrteVH.CompanyCode
[0..1] C_LglTransMainOrgPurOrgCrteVH _LglTransMainOrgPurOrgCrteVH $projection.LglCntntMMainOrgPurOrg = _LglTransMainOrgPurOrgCrteVH.PurchasingOrganization
[0..1] C_LglTransMainOrgSlsOrgCrteVH _LglTransMainOrgSlsOrgCrteVH $projection.LglCntntMMainOrgSalesOrg = _LglTransMainOrgSlsOrgCrteVH.SalesOrganization
[0..1] C_LglTransMainOrgTypeCrteVH _LglTransMainOrgTypeCrteVH $projection.LglCntntMMainOrgType = _LglTransMainOrgTypeCrteVH.LglCntntMMainOrgType
[0..1] C_LglTransAccLvlEditValHelp _LglTransAccLvlEditValHelp $projection.LglTransAccessLvl = _LglTransAccLvlEditValHelp.LglCntntMAccessLvl and $projection.LglCntntMProfile = _LglTransAccLvlEditValHelp.LglCntntMProfile
[0..1] I_LglCntntMAccessLvlText _AccessLvlText $projection.LglTransAccessLvl = _AccessLvlText.LglCntntMAccessLvl and Language = $session.system_language
[0..1] I_LanguageText _LanguageText $projection.LglCntntMLanguage = _LanguageText.LanguageCode and Language = $session.system_language
[0..1] I_SalesOrganizationText _SalesOrganizationText $projection.LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization and Language = $session.system_language
[0..1] I_LglCntntMMainOrgTypeText _LglCntntMMainOrgTypeText $projection.LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType and Language = $session.system_language
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName CLEGALTRREQ view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Legal Content Request view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LegalTransaction LegalTransaction Legal Transaction ID
LegalTransactionTitle LegalTransactionTitle Title
LglCntntMContextUUID LglCntntMContextUUID Universal Unique ID
LglTransWrkFlwModInstce LglTransWrkFlwModInstce Instance ID
LglCntntMProfile LglCntntMProfile Profile
LglTransAccessLvl LglTransAccessLvl Access Level
LglCntntMMainOrgType LglCntntMMainOrgType Main Organization Type
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Main Organization
CompanyCodeName _LglTransMainOrgCoCodeCrteVH CompanyCodeName Company Name
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Main Organization
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Main Organization
LglCntntMLongText LglCntntMLongText Description
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
LglCntntMContext _LglCntntMContext LglCntntMContext Context
LglCntntMContextTitle _LglCntntMContext LglCntntMContextTitle Title
LglCntntMContextOwner _LglCntntMContext LglCntntMContextOwner Owner
FullName
LglCntntMLanguage LglCntntMLanguage Language
LglCntntMGovLaw LglCntntMGovLaw Governing Law
LglCntntMGovLawText _LCMGovLawVH LglCntntMGovLawText Governing Law
_LglCntntMContext _LglCntntMContext
_OwnerContactCard _OwnerContactCard
_LegalTransactionEntity _LegalTransactionEntity
_LegalTransactionIntContact _LegalTransactionIntContact
_LegalTransactionExtContact _LegalTransactionExtContact
_LegalTrLinkedObjects _LegalTrLinkedObjects
_LegalTrRelationShip _LegalTrRelationShip
_LglTransReqLglCntntDoc _LglTransReqLglCntntDoc
_ContextIdValueHelp _ContextIdValueHelp
_LegalTransactionDate _LegalTransactionDate
_LglTransCategoryGroup _LglTransCategoryGroup
_LCMGovLawVH _LCMGovLawVH
_LanguageValueHelp _LanguageValueHelp
_LglTransMainOrgCoCodeCrteVH _LglTransMainOrgCoCodeCrteVH
_LglTransMainOrgSlsOrgCrteVH _LglTransMainOrgSlsOrgCrteVH
_LglTransMainOrgPurOrgCrteVH _LglTransMainOrgPurOrgCrteVH
_LglTransMainOrgTypeCrteVH _LglTransMainOrgTypeCrteVH
_LglTransAccLvlEditValHelp _LglTransAccLvlEditValHelp
_LanguageText _LanguageText
_LglCntntMMainOrgTypeText _LglCntntMMainOrgTypeText
_AccessLvlText _AccessLvlText
_SalesOrganizationText _SalesOrganizationText
_PurchasingOrganization _PurchasingOrganization

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 C_LegalContentRequest.
-- 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.
-- SQL view name: CLEGALTRREQ

CREATE VIEW C_LegalContentRequest AS
SELECT
  LegalTransactionUUID,
  LegalTransaction,
  LegalTransactionTitle,
  LglCntntMContextUUID,
  LglTransWrkFlwModInstce,
  LglCntntMProfile,
  LglTransAccessLvl,
  LglCntntMMainOrgType,
  LglCntntMMainOrgCoCode,
  _LglTransMainOrgCoCodeCrteVH.CompanyCodeName AS CompanyCodeName,
  LglCntntMMainOrgSalesOrg,
  LglCntntMMainOrgPurOrg,
  LglCntntMLongText,
  IsEndOfPurposeBlocked,
  _LglCntntMContext.LglCntntMContext AS LglCntntMContext,
  _LglCntntMContext.LglCntntMContextTitle AS LglCntntMContextTitle,
  _LglCntntMContext.LglCntntMContextOwner AS LglCntntMContextOwner,
  cast( '' as ad_namtext) AS FullName,
  LglCntntMLanguage,
  LglCntntMGovLaw,
  _LCMGovLawVH.LglCntntMGovLawText AS LglCntntMGovLawText
FROM I_LegalTransaction AS LegalTr
LEFT OUTER JOIN I_LcmContext AS _LglCntntMContext ON LglCntntMContextUUID = _LglCntntMContext.LglCntntMContextUUID  -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionEntity AS _LegalTransactionEntity ON LegalTransactionUUID = _LegalTransactionEntity.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionIntContact AS _LegalTransactionIntContact ON LegalTransactionUUID = _LegalTransactionIntContact.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LegalTransactionExtContact AS _LegalTransactionExtContact ON LegalTransactionUUID = _LegalTransactionExtContact.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LegalTrRelationShip AS _LegalTrRelationShip ON LegalTransactionUUID = _LegalTrRelationShip.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LegalTrLinkedObjects AS _LegalTrLinkedObjects ON LegalTransactionUUID = _LegalTrLinkedObjects.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN I_LCMUserContactCard AS _OwnerContactCard ON _OwnerContactCard.ContactCardType = 'User' AND _OwnerContactCard.ContactCardID = lglcntntmcontextowner AND _OwnerContactCard.ContactCardRole = 'Creator'  -- association [0..1]
LEFT OUTER JOIN C_LegalTransactionDate AS _LegalTransactionDate ON LegalTransactionUUID = _LegalTransactionDate.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LglTransReqLglCntntDoc AS _LglTransReqLglCntntDoc ON LegalTransactionUUID = _LglTransReqLglCntntDoc.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LglTransCategoryGroup AS _LglTransCategoryGroup ON LegalTransactionUUID = _LglTransCategoryGroup.LegalTransactionUUID  -- association [0..*]
LEFT OUTER JOIN C_LegalContentRequestCntxtIDVH AS _ContextIdValueHelp ON LglCntntMContext = _ContextIdValueHelp.LglCntntMContext  -- association [0..1]
LEFT OUTER JOIN I_Language AS _LanguageValueHelp ON LglCntntMLanguage = _LanguageValueHelp.Language  -- association [0..1]
LEFT OUTER JOIN C_LglCntntMGovLawVH AS _LCMGovLawVH ON LglCntntMGovLaw = _LCMGovLawVH.LglCntntMGovLaw  -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgCoCodeCrteVH AS _LglTransMainOrgCoCodeCrteVH ON LglCntntMMainOrgCoCode = _LglTransMainOrgCoCodeCrteVH.CompanyCode  -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgPurOrgCrteVH AS _LglTransMainOrgPurOrgCrteVH ON LglCntntMMainOrgPurOrg = _LglTransMainOrgPurOrgCrteVH.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgSlsOrgCrteVH AS _LglTransMainOrgSlsOrgCrteVH ON LglCntntMMainOrgSalesOrg = _LglTransMainOrgSlsOrgCrteVH.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN C_LglTransMainOrgTypeCrteVH AS _LglTransMainOrgTypeCrteVH ON LglCntntMMainOrgType = _LglTransMainOrgTypeCrteVH.LglCntntMMainOrgType  -- association [0..1]
LEFT OUTER JOIN C_LglTransAccLvlEditValHelp AS _LglTransAccLvlEditValHelp ON LglTransAccessLvl = _LglTransAccLvlEditValHelp.LglCntntMAccessLvl AND LglCntntMProfile = _LglTransAccLvlEditValHelp.LglCntntMProfile  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMAccessLvlText AS _AccessLvlText ON LglTransAccessLvl = _AccessLvlText.LglCntntMAccessLvl AND Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_LanguageText AS _LanguageText ON LglCntntMLanguage = _LanguageText.LanguageCode AND Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_SalesOrganizationText AS _SalesOrganizationText ON LglCntntMMainOrgSalesOrg = _SalesOrganizationText.SalesOrganization AND Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_LglCntntMMainOrgTypeText AS _LglCntntMMainOrgTypeText ON LglCntntMMainOrgType = _LglCntntMMainOrgTypeText.LglCntntMMainOrgType AND Language = $session.system_language  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON LglCntntMMainOrgPurOrg = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
;