P_DocumentInfoRecordObjectLink

DDL: P_DOCUMENTINFORECORDOBJECTLINK SQL: PCVDOCOBJLINK Type: view BASIC Package: VDM_DMS

Document Info Record Object Link

P_DocumentInfoRecordObjectLink is a Basic CDS View that provides data about "Document Info Record Object Link" in SAP S/4HANA. It reads from 2 data sources (drad_last_change, drad) and exposes 22 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, LinkedSAPObject. Part of development package VDM_DMS.

Data Sources (2)

SourceAliasJoin Type
drad_last_change LastChange left_outer
drad obj_links from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCVDOCOBJLINK view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #BASIC view
VDM.private true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType drad dokar SW Document Type
KEY DocumentInfoRecordDocNumber drad doknr Document
KEY DocumentInfoRecordDocVersion drad dokvr Doc. Version
KEY DocumentInfoRecordDocPart drad doktl Document Part
KEY LinkedSAPObject drad dokob Object
KEY LinkedSAPObjectKey drad objky Relation (Key)
KEY DocObjectLinkCounter drad obzae Object counters
CreationDateTime drad_last_change created_at Uploaded On
CreatedByUser drad_last_change created_by Version Created By
ChangedDateTime drad_last_change changed_at Timestamp
LastChangedByUser drad_last_change changed_by User Name
DocInfoRecdLinkStatus drad vrkstat Link status
DocInfoRecdObjectLinkStatus drad vrkstat1 Object link status
ObjectTypeDatabaseTable drad vobj Table
DocInfoRecdAdditionalObjectKey drad vkey Object Key
DocLinkDirectionIsActive drad vdir Active
IsDefaultDocument drad viewflag View indocator
DocInfoRecdIsMarkedForDeletion drad delflag Yes/No (X/ )
DocInfoRecdLongTextUUID drad longtext_id Long Text ID
IsDocInfoRecdCreatedFromCAD drad cad_pos CAD
DocInfoRecdConfignMgmtFixed drad cm_fixed Fixed
IsArchived drad archflag Arch. Flag

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 P_DocumentInfoRecordObjectLink.
-- 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: PCVDOCOBJLINK

CREATE VIEW P_DocumentInfoRecordObjectLink AS
SELECT
  obj_links.dokar AS DocumentInfoRecordDocType,
  obj_links.doknr AS DocumentInfoRecordDocNumber,
  obj_links.dokvr AS DocumentInfoRecordDocVersion,
  obj_links.doktl AS DocumentInfoRecordDocPart,
  obj_links.dokob AS LinkedSAPObject,
  obj_links.objky AS LinkedSAPObjectKey,
  obj_links.obzae AS DocObjectLinkCounter,
  LastChange.created_at AS CreationDateTime,
  LastChange.created_by AS CreatedByUser,
  LastChange.changed_at AS ChangedDateTime,
  LastChange.changed_by AS LastChangedByUser,
  obj_links.vrkstat AS DocInfoRecdLinkStatus,
  obj_links.vrkstat1 AS DocInfoRecdObjectLinkStatus,
  obj_links.vobj AS ObjectTypeDatabaseTable,
  obj_links.vkey AS DocInfoRecdAdditionalObjectKey,
  obj_links.vdir AS DocLinkDirectionIsActive,
  obj_links.viewflag AS IsDefaultDocument,
  obj_links.delflag AS DocInfoRecdIsMarkedForDeletion,
  obj_links.longtext_id AS DocInfoRecdLongTextUUID,
  obj_links.cad_pos AS IsDocInfoRecdCreatedFromCAD,
  obj_links.cm_fixed AS DocInfoRecdConfignMgmtFixed,
  obj_links.archflag AS IsArchived
FROM drad AS obj_links
LEFT OUTER JOIN drad_last_change AS LastChange ON /* join condition not captured in parsed metadata */
;