C_LegalTransactionCube

DDL: C_LEGALTRANSACTIONCUBE SQL: CLCMLTCUBE Type: view CONSUMPTION Package: VDM_LCM_ANALYTICS

LT SAP Analytics Cloud - Cube

C_LegalTransactionCube (Consumption)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Public Edition with built-in and side-by-side extension capabilities.

Sourcing & Procurement

C_LegalTransactionCube is a Consumption CDS View (Cube) that provides data about "LT SAP Analytics Cloud - Cube" in SAP S/4HANA. It reads from 1 data source (P_LegalTransactionCube) and exposes 61 fields with key field LegalTransactionUUID. It has 1 association to related views. Part of development package VDM_LCM_ANALYTICS.

SAP Help Documentation

CategoryCDS Views for Enterprise Contract Management
Corresponding DataSourceFor CDS views that have the annotation ANALYTICS.QUERY = true , enter the corresponding technical name of the analytical DataSource here. This name is 2C<value of annotation ABAPCATALOG.SQLVIEWNAME> , for example 2CCLCMLTQUERY for CDS view C_LegalTransactionQuery
Purpose
This CDS view provides the data to answer the following business questions: What is the total number of legal transaction with triggering object? What is the total number of expired legal transaction without triggeing objects? What is the total number of legal transactions? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization objects assigned: Authorization Object: LCM_DOC activity ‘03’ (Legal Document Activity '03')

Structure
Further Important Fields Important fields in this view include the following: Field Name Description LEGALTRANSACTION Legal Transaction ID LEGALTRANSACTIONTITLE Legal Transaction Name LGLCNTNTMLANGUAGE Language Key LEGALTRANSACTIONHEALTH Legal Transaction Status LGLCNTNTMCREATEDBYUSER Created By CREATEDBYNAME Description of the Technical User Account LGLCNTNTMCREATEDDATE Creation Date LGLCNTNTMCHANGEDBYUSER Changed By User CHANGEDBYNAME Description of the Technical User Account LGLCNTNTMPROFILE Profile LGLCNTNTMCONTEXT Context ID CALENDARYEAR Calendar Year CALENDARQUARTER Calendar Quarter CALENDARMONTH Calendar Month LGLCNTNTMCONTEXTTITLE Legal Transaction Name LGLCNTNTMFROMDATE Valid From LGLCNTNTMTODATE Valid To LGLCNTNTMGOVLAWTEXT Governing Law Text

View on SAP Help Portal →

SAP API Hub

CategoryConsumption
StateC1
Line of BusinessSourcing & Procurement
Application ComponentCM-GF-2CL
CapabilitiesData Provider for Analytical Queries
Extensible (Key User)Yes
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Not Released
PackageSourcing and Procurement for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides the data to answer the following business questions:</p> <ul> <li> <p>What is the total number of legal transaction with triggering object?</p> </li> <li> <p>What is the total number of expired legal transaction without triggeing objects? </p> </li> <li> <p>What is the total number of legal transactions?</p> </li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_LegalTransactionCube P_LegalTransactionCube from

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_LegalTransaction _Extenstion $projection.LegalTransactionUUID = _Extenstion.LegalTransactionUUID

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName CLCMLTCUBE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
Analytics.dataCategory #CUBE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label LT SAP Analytics Cloud - Cube view
ObjectModel.modelingPattern #ANALYTICAL_CUBE view
Analytics.internalName #LOCAL view

Fields (61)

KeyFieldSource TableSource FieldDescription
KEY LegalTransactionUUID LegalTransactionUUID Universal Unique Identifier
LegalTransaction LegalTransaction Legal Transaction ID
LegalTransactionTitle LegalTransactionTitle Legal Transaction Name
LegalTransactionHealth LegalTransactionHealth Legal Transaction Status
LglCntntMLanguage LglCntntMLanguage Language Key
LglCntntMCreatedByUser LglCntntMCreatedByUser Created By
CreatedByName CreatedByName Description of the Technical User Account
LglCntntMCreatedDate LglCntntMCreatedDate Creation Date
LglCntntMChangedByUser LglCntntMChangedByUser Changed By User
ChangedByName ChangedByName Description of the Technical User Account
LglCntntMChangedUTCDateTime LglCntntMChangedUTCDateTime Changed UTC Date Time
LglCntntMProfile LglCntntMProfile Profile
LegalTransactionSource LegalTransactionSource LT Integration source
LglCntntMRtntnPerdStartDate LglCntntMRtntnPerdStartDate Start of Retention Period
LglCntntMContext LglCntntMContext Context ID
LglCntntMContextTitle LglCntntMContextTitle Legal Transaction Name
LglCntntMFromDate LglCntntMFromDate Valid From
LglCntntMToDate LglCntntMToDate Valid From
LglCntntMGovLaw LglCntntMGovLaw Governing Law
LglCntntMGovLawText LglCntntMGovLawText Governing Law Text
LegalTransExpirationInDays LegalTransExpirationInDays Legal Transaction Expired In Days
CalendarYear _CalendarDate CalendarYear Calendar Year
CalendarQuarter _CalendarDate CalendarQuarter Calendar Quarter
CalendarMonth _CalendarDate CalendarMonth Calendar Month
LglTransAccessLvl LglTransAccessLvl Access Level
LglCntntMAccessLvlName LglCntntMAccessLvlName Long Text
LglCntntMMainOrgType LglCntntMMainOrgType Entity Technical Type
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Entity ID
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Entity ID
SalesOrganizationName SalesOrganizationName Sales Organization Description
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Entity ID
LglCntntMIntegrationType LglCntntMIntegrationType Integration Variant
LegalTransactionHealthName LegalTransactionHealthName Long Text
LglCntntMMainOrgTypeName LglCntntMMainOrgTypeName Short Text for Fixed Values
LglCntntMEntityType LglCntntMEntityType Entity Type
LglCntntMEntityTypeName LglCntntMEntityTypeName Long Text
LglCntntMEntity LglCntntMEntity Entity ID
LglCntntMEntityName _LegalTrEntityAggr LglCntntMEntityName
LglCntntMMainOrgName LglCntntMMainOrgName Name of Company Code or Company
LglCntntMRnwlTypeName LglCntntMRnwlTypeName Short Text for Fixed Values
LglCntntMLinkdObjTypeName LglCntntMLinkdObjTypeName Long Text
LegalTransTotNmbrOfFinalStatus LegalTransTotNmbrOfFinalStatus
LegalTransTotNrOfOpenStatus LegalTransTotNrOfOpenStatus
LegalTransTotNmbrOfOnTrackSts LegalTransTotNmbrOfOnTrackSts
TotalNumberOfLegalTransactions TotalNumberOfLegalTransactions Total Numbers of Legal Transaction
TotalNrOfActiveLglTransactions TotalNrOfActiveLglTransactions
LglTransTotNmbrOfAutoRenewed LglTransTotNmbrOfAutoRenewed
int410endasTotNrOfLegalTransWithTrggrObj
TotNrOfExprdLglTransWthoutRnwl TotNrOfExprdLglTransWthoutRnwl Total Number of Expired Contracts without Renewal
LegalTransTotNmbrOfRenewed LegalTransTotNmbrOfRenewed Total Number of Renewed Contracts
_ChangedBy _ChangedBy
_CompanyCode _CompanyCode
_CreatedBy _CreatedBy
_LanguageText _LanguageText
_LegalTransactionHealthText _LegalTransactionHealthText
_LglCntntMGovLawText _LglCntntMGovLawText
_LglCntntMMainOrgTypeText _LglCntntMMainOrgTypeText
_MainLegalTransactionEntity _MainLegalTransactionEntity
_PurchasingOrganization _PurchasingOrganization
_SalesOrganization _SalesOrganization
_SalesOrganizationText _SalesOrganizationText

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_LegalTransactionCube.
-- 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: CLCMLTCUBE

CREATE VIEW C_LegalTransactionCube AS
SELECT
  LegalTransactionUUID,
  LegalTransaction,
  LegalTransactionTitle,
  LegalTransactionHealth,
  LglCntntMLanguage,
  LglCntntMCreatedByUser,
  CreatedByName,
  LglCntntMCreatedDate,
  LglCntntMChangedByUser,
  ChangedByName,
  LglCntntMChangedUTCDateTime,
  LglCntntMProfile,
  LegalTransactionSource,
  LglCntntMRtntnPerdStartDate,
  LglCntntMContext,
  LglCntntMContextTitle,
  LglCntntMFromDate,
  LglCntntMToDate,
  LglCntntMGovLaw,
  LglCntntMGovLawText,
  LegalTransExpirationInDays,
  _CalendarDate.CalendarYear AS CalendarYear,
  _CalendarDate.CalendarQuarter AS CalendarQuarter,
  _CalendarDate.CalendarMonth AS CalendarMonth,
  LglTransAccessLvl,
  LglCntntMAccessLvlName,
  LglCntntMMainOrgType,
  LglCntntMMainOrgCoCode,
  LglCntntMMainOrgSalesOrg,
  SalesOrganizationName,
  LglCntntMMainOrgPurOrg,
  LglCntntMIntegrationType,
  LegalTransactionHealthName,
  LglCntntMMainOrgTypeName,
  LglCntntMEntityType,
  LglCntntMEntityTypeName,
  LglCntntMEntity,
  _LegalTrEntityAggr.LglCntntMEntityName AS LglCntntMEntityName,
  LglCntntMMainOrgName,
  LglCntntMRnwlTypeName,
  LglCntntMLinkdObjTypeName,
  LegalTransTotNmbrOfFinalStatus,
  LegalTransTotNrOfOpenStatus,
  LegalTransTotNmbrOfOnTrackSts,
  TotalNumberOfLegalTransactions,
  TotalNrOfActiveLglTransactions,
  LglTransTotNmbrOfAutoRenewed,
  case when LglCntntMLinkdObjTypeName is not initial then cast (1 as abap.int4(10) ) else cast (0 as abap.int4(10) ) end as TotNrOfLegalTransWithTrggrObj AS int410endasTotNrOfLegalTransWithTrggrObj,
  TotNrOfExprdLglTransWthoutRnwl,
  LegalTransTotNmbrOfRenewed
FROM P_LegalTransactionCube
LEFT OUTER JOIN E_LegalTransaction AS _Extenstion ON LegalTransactionUUID = _Extenstion.LegalTransactionUUID  -- association [1..1]
;