A_LegalDocument_2

DDL: A_LEGALDOCUMENT_2 Type: view_entity CONSUMPTION Package: ODATA_LCM_DOC_RAP_API

Legal Document

A_LegalDocument_2 is a Consumption CDS View that provides data about "Legal Document" in SAP S/4HANA. It reads from 1 data source (R_LegalDocumentTP) and exposes 39 fields with key field LglCntntMDocumentUUID. It is exposed through 1 OData service (API_LEGAL_DOCUMENT_2). Part of development package ODATA_LCM_DOC_RAP_API.

Data Sources (1)

SourceAliasJoin Type
R_LegalDocumentTP R_LegalDocumentTP projection

Annotations (11)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Legal Document view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
ObjectModel.representativeKey LglCntntMDocumentUUID view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
OData.entityType.name LegalDocument_Type view

OData Services (1)

ServiceBindingVersionContractRelease
API_LEGAL_DOCUMENT_2 API_LEGAL_DOCUMENT_2 V4 C2 C1

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMDocumentUUID LglCntntMDocumentUUID Universal Unique ID
LglCntntMDocument LglCntntMDocument Document ID
LglCntntMDocumentLinkedObject LglCntntMDocumentLinkedObject Object
LglCntntMDocumentLinkedObjKey LglCntntMDocumentLinkedObjKey UUID Char32
LegalTransaction LegalTransaction Legal Transaction ID
LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LglCntntMDocContentType LglCntntMDocContentType Content Type
LglCntntMLanguage LglCntntMLanguage Language
DocumentDescription DocumentDescription Doc. Name
LglCntntMDocAccessLvl LglCntntMDocAccessLvl Acs. Level
LegalDocumentSource LegalDocumentSource Legal Doc Source
LglCntntMDocPaperType LglCntntMDocPaperType Paper Type
LglCntntMMainLinkdObjType LglCntntMMainLinkdObjType Main Linked Obj Type
LglCntntMChangedUTCDateTime LglCntntMChangedUTCDateTime Changed On
LglCntntMChangedByUser LglCntntMChangedByUser Changed By
LglCntntMCreatedUTCDateTime LglCntntMCreatedUTCDateTime Created On
LglCntntMCreatedByUser LglCntntMCreatedByUser Created By
IsEndOfPurposeBlocked IsEndOfPurposeBlocked Busin. Purp. Cmpltd.
InternalDocumentStatus InternalDocumentStatus Status
LglCntntMProfile LglCntntMProfile Profile
LglTransAccessLvl LglTransAccessLvl Acs. Level
LglCntntMMainOrgCoCode LglCntntMMainOrgCoCode Entity ID
LglCntntMMainOrgPurOrg LglCntntMMainOrgPurOrg Entity ID
LglCntntMMainOrgSalesOrg LglCntntMMainOrgSalesOrg Entity ID
LglCntntMDocumentIsTopVersion LglCntntMDocumentIsTopVersion TRUE
LglCntntMVirtualDocVersKey LglCntntMVirtualDocVersKey Virtual Doc Version
LglCntntMDocAssemblyStatus LglCntntMDocAssemblyStatus Assembly Status
LglCntntMTmplID LglCntntMTmplID Template ID
LglCntntMDocType LglCntntMDocType Document Type
LglCntntMDocLowTouchLevel LglCntntMDocLowTouchLevel Doc Low touch level
LglCntntMParentDocument LglCntntMParentDocument Parent Document ID
LglCntntMDocumentKind LglCntntMDocumentKind Document Kind
LglCntntMDocAmendmentType LglCntntMDocAmendmentType Amendment Type
LglCntntMDocEffectiveFromDate LglCntntMDocEffectiveFromDate Effective From
LglCntntMDocEffectiveToDate LglCntntMDocEffectiveToDate
LglCntntMSgntrPreference LglCntntMSgntrPreference Signature Preference
LglCntntMMainLinkedObject LglCntntMMainLinkedObject
LglCntntMDocLockedReasonCode LglCntntMDocLockedReasonCode Locked Reason
LglCntntMDocLockedReasonText LglCntntMDocLockedReasonText

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 A_LegalDocument_2.
-- 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 A_LegalDocument_2 AS
SELECT
  LglCntntMDocumentUUID,
  LglCntntMDocument,
  LglCntntMDocumentLinkedObject,
  LglCntntMDocumentLinkedObjKey,
  LegalTransaction,
  LegalTransactionUUID,
  LglCntntMDocContentType,
  LglCntntMLanguage,
  DocumentDescription,
  LglCntntMDocAccessLvl,
  LegalDocumentSource,
  LglCntntMDocPaperType,
  LglCntntMMainLinkdObjType,
  LglCntntMChangedUTCDateTime,
  LglCntntMChangedByUser,
  LglCntntMCreatedUTCDateTime,
  LglCntntMCreatedByUser,
  IsEndOfPurposeBlocked,
  InternalDocumentStatus,
  LglCntntMProfile,
  LglTransAccessLvl,
  LglCntntMMainOrgCoCode,
  LglCntntMMainOrgPurOrg,
  LglCntntMMainOrgSalesOrg,
  LglCntntMDocumentIsTopVersion,
  LglCntntMVirtualDocVersKey,
  LglCntntMDocAssemblyStatus,
  LglCntntMTmplID,
  LglCntntMDocType,
  LglCntntMDocLowTouchLevel,
  LglCntntMParentDocument,
  LglCntntMDocumentKind,
  LglCntntMDocAmendmentType,
  LglCntntMDocEffectiveFromDate,
  LglCntntMDocEffectiveToDate,
  LglCntntMSgntrPreference,
  LglCntntMMainLinkedObject,
  LglCntntMDocLockedReasonCode,
  LglCntntMDocLockedReasonText
FROM R_LegalDocumentTP
;