C_LegalTransactionCube
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
| Category | CDS Views for Enterprise Contract Management |
|---|---|
| Corresponding DataSource | For 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 |
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
SAP API Hub
| Category | Consumption |
|---|---|
| State | C1 |
| Line of Business | Sourcing & Procurement |
| Application Component | CM-GF-2CL |
| Capabilities | Data Provider for Analytical Queries |
| Extensible (Key User) | Yes |
| Extensible (Developer) | No |
| Release State (Key User) | Released |
| Release State (Developer) | Not Released |
| Package | Sourcing 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
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Public Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Public Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Public Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Custom Communication Scenarios — Create custom communication scenarios to configure custom communication arrangement
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Public Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_LegalTransactionCube | P_LegalTransactionCube | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | E_LegalTransaction | _Extenstion | $projection.LegalTransactionUUID = _Extenstion.LegalTransactionUUID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA