C_LegalTransactionSgntrDoc

DDL: C_LEGALTRANSACTIONSGNTRDOC SQL: CLGLTRSGNDOC Type: view CONSUMPTION

Consumption View for eSignature Document

C_LegalTransactionSgntrDoc is a Consumption CDS View that provides data about "Consumption View for eSignature Document" in SAP S/4HANA. It reads from 1 data source (I_LglCntntMSgntrDocTP) and exposes 38 fields with key field LglCntntMSignatureDocUUID. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_LglCntntMSgntrDocTP I_LglCntntMSgntrDocTP from

Associations (8)

CardinalityTargetAliasCondition
[1..*] C_LegalTransactionDocSgntrGrp _LegalTransactionDocSgntrGrp $projection.LglCntntMDocumentUUID = _LegalTransactionDocSgntrGrp.LglCntntMDocumentUUID
[0..1] C_LglCntntMSgntrDocStatusVH _LglCntntMSgntrDocStatusVH $projection.LglCntntMSignatureDocStatus = _LglCntntMSgntrDocStatusVH.LglCntntMSignatureDocStatus
[1..1] I_LcmDocument _Document $projection.LglCntntMDocumentUUID = _Document.LglCntntMDocumentUUID
[1..1] C_LglCntntMDocumentVersion _LglCntntMDocument $projection.LglCntntMDocumentUUID = _LglCntntMDocument.LglCntntMDocumentUUID
[1..1] C_LglCntntMDocTmplInfoVersion _LglCntntMDocTmplInfoVersion $projection.LglCntntMDocumentUUID = _LglCntntMDocTmplInfoVersion.LglCntntMDocumentUUID
[1..*] C_LglCntntMDocOblgnVersion _LglCntntMDocOblgnVersion $projection.LglCntntMDocumentUUID = _LglCntntMDocOblgnVersion.LglCntntMDocumentUUID
[0..*] C_LegalTransactionDocStamp _LegalTransactionDocStamp $projection.LglCntntMDocumentUUID = _LegalTransactionDocStamp.LglCntntMDocumentUUID
[1..*] I_LglCntntMVersionText _VersionText _VersionText.LglCntntMVersionTypeCode = '01' or _VersionText.LglCntntMVersionTypeCode = '02'

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CLGLTRSGNDOC view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.representativeKey LglCntntMSignatureDocUUID view
ObjectModel.semanticKey LglCntntMDocument view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Consumption View for eSignature Document view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY LglCntntMSignatureDocUUID LglCntntMSignatureDocUUID Universal Unique ID
LglCntntMSignatureGroupUUID LglCntntMSignatureGroupUUID Universal Unique ID
LegalTransactionUUID LegalTransactionUUID Universal Unique ID
LglCntntMDocumentUUID LglCntntMDocumentUUID Universal Unique ID
LglCntntMDocument LglCntntMDocument Document ID
DocumentDescription _Document DocumentDescription Doc. Name
DocumentVersion
LegalDocumentVersion _Document LegalDocumentVersion Docu. Version
LglCntntMDocumentLinkedObjKey _Document LglCntntMDocumentLinkedObjKey UUID Char32
LglCntntMTmplUUID _Document LglCntntMTmplUUID Template UUID
LglCntntMSgntrProcgStatus LglCntntMSgntrProcgStatus e-Sign Proc Stat
LglCntntMSignatureDocStatus LglCntntMSignatureDocStatus Sign Document Status
DocumentInfoRecordDocType
DocumentInfoRecordDocNumber
DocumentInfoRecordDocPart
DocumentInfoRecordDocVersion
LogicalDocument
PhysicalDocument
LglCntntMDocumentLinkedObject _Document LglCntntMDocumentLinkedObject Object
FileName
LglCntntMCreatedByFullName
LglCntntMCreatedByUser _Document LglCntntMCreatedByUser Created By
LglCntntMCreatedUTCDateTime _Document LglCntntMCreatedUTCDateTime Created On
LglCntntMChangedByFullName
LglCntntMChangedByUser _Document LglCntntMChangedByUser Changed By
LglCntntMChangedUTCDateTime _Document LglCntntMChangedUTCDateTime Changed On
DocumentVersion1endasLglCntntMObjTitle
LglCntntMDocTemplateName _LglCntntMDocTmplInfoVersion LglCntntMDocTemplateName Templ. Name
LglCntntMDocTemplateVersion _LglCntntMDocTmplInfoVersion LglCntntMDocTemplateVersion Templ. Vers.
LglCntntMDocTemplateDate _LglCntntMDocTmplInfoVersion LglCntntMDocTemplateDate Valid From
_LegalTransactionDocSgntrGrp _LegalTransactionDocSgntrGrp
_LegalTransactionDocStamp _LegalTransactionDocStamp
_LglCntntMDocOblgnVersion _LglCntntMDocOblgnVersion
_LegalTransaction _LegalTransaction
_Document _Document
_LglCntntMSgntrDocStatusVH _LglCntntMSgntrDocStatusVH
_LglCntntMSgntrDocStatusText _LglCntntMSgntrDocStatusText
_LglCntntMDocument _LglCntntMDocument

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_LegalTransactionSgntrDoc.
-- 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: CLGLTRSGNDOC

CREATE VIEW C_LegalTransactionSgntrDoc AS
SELECT
  LglCntntMSignatureDocUUID,
  LglCntntMSignatureGroupUUID,
  LegalTransactionUUID,
  LglCntntMDocumentUUID,
  LglCntntMDocument,
  _Document.DocumentDescription AS DocumentDescription,
  cast( _Document.DocumentVersion as dokvr ) AS DocumentVersion,
  _Document.LegalDocumentVersion AS LegalDocumentVersion,
  _Document.LglCntntMDocumentLinkedObjKey AS LglCntntMDocumentLinkedObjKey,
  _Document.LglCntntMTmplUUID AS LglCntntMTmplUUID,
  LglCntntMSgntrProcgStatus,
  LglCntntMSignatureDocStatus,
  cast( '' as dokar ) AS DocumentInfoRecordDocType,
  cast( '' as abap.char(25) ) AS DocumentInfoRecordDocNumber,
  cast( '' as abap.char(3) ) AS DocumentInfoRecordDocPart,
  cast( '' as abap.char(2) ) AS DocumentInfoRecordDocVersion,
  cast( '' as abap.char(32) ) AS LogicalDocument,
  cast( '' as abap.char(32) ) AS PhysicalDocument,
  _Document.LglCntntMDocumentLinkedObject AS LglCntntMDocumentLinkedObject,
  cast( '' as abap.char(200) ) AS FileName,
  cast('' as ad_namtext) AS LglCntntMCreatedByFullName,
  _Document.LglCntntMCreatedByUser AS LglCntntMCreatedByUser,
  _Document.LglCntntMCreatedUTCDateTime AS LglCntntMCreatedUTCDateTime,
  cast('' as ad_namtext) AS LglCntntMChangedByFullName,
  _Document.LglCntntMChangedByUser AS LglCntntMChangedByUser,
  _Document.LglCntntMChangedUTCDateTime AS LglCntntMChangedUTCDateTime,
  case _Document.LglCntntMDocumentIsTopVersion when 'X' then _VersionText[1: LglCntntMVersionTypeCode= '02'].LglCntntMVersionTypeText else concat_with_space(_VersionText[1: LglCntntMVersionTypeCode= '01'].LglCntntMVersionTypeText, _Document.DocumentVersion, 1) end as LglCntntMObjTitle AS DocumentVersion1endasLglCntntMObjTitle,
  _LglCntntMDocTmplInfoVersion.LglCntntMDocTemplateName AS LglCntntMDocTemplateName,
  _LglCntntMDocTmplInfoVersion.LglCntntMDocTemplateVersion AS LglCntntMDocTemplateVersion,
  _LglCntntMDocTmplInfoVersion.LglCntntMDocTemplateDate AS LglCntntMDocTemplateDate
FROM I_LglCntntMSgntrDocTP
LEFT OUTER JOIN C_LegalTransactionDocSgntrGrp AS _LegalTransactionDocSgntrGrp ON LglCntntMDocumentUUID = _LegalTransactionDocSgntrGrp.LglCntntMDocumentUUID  -- association [1..*]
LEFT OUTER JOIN C_LglCntntMSgntrDocStatusVH AS _LglCntntMSgntrDocStatusVH ON LglCntntMSignatureDocStatus = _LglCntntMSgntrDocStatusVH.LglCntntMSignatureDocStatus  -- association [0..1]
LEFT OUTER JOIN I_LcmDocument AS _Document ON LglCntntMDocumentUUID = _Document.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMDocumentVersion AS _LglCntntMDocument ON LglCntntMDocumentUUID = _LglCntntMDocument.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMDocTmplInfoVersion AS _LglCntntMDocTmplInfoVersion ON LglCntntMDocumentUUID = _LglCntntMDocTmplInfoVersion.LglCntntMDocumentUUID  -- association [1..1]
LEFT OUTER JOIN C_LglCntntMDocOblgnVersion AS _LglCntntMDocOblgnVersion ON LglCntntMDocumentUUID = _LglCntntMDocOblgnVersion.LglCntntMDocumentUUID  -- association [1..*]
LEFT OUTER JOIN C_LegalTransactionDocStamp AS _LegalTransactionDocStamp ON LglCntntMDocumentUUID = _LegalTransactionDocStamp.LglCntntMDocumentUUID  -- association [0..*]
LEFT OUTER JOIN I_LglCntntMVersionText AS _VersionText ON _VersionText.LglCntntMVersionTypeCode = '01' OR _VersionText.LglCntntMVersionTypeCode = '02'  -- association [1..*]
;