Deprecated NONE
This CDS view is deprecated in S/4HANA. Use P_DocumentInfoRecord instead. View all deprecated CDS views →

P_DocInfoRecd

DDL: P_DOCINFORECD SQL: PCVDOCINFORECD Type: view BASIC

P_DocInfoRecd is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (dost, draw_last_change) and exposes 28 fields with key fields DocumentType, DocumentInfoRecord, DocumentVersion, DocumentPart.

Data Sources (2)

SourceAliasJoin Type
dost DocumentStructureBOM left_outer
draw_last_change Last_Change left_outer

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PCVDOCINFORECD view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #BASIC view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.lifecycle.contract.type #NONE view
VDM.lifecycle.status #DEPRECATED view
VDM.lifecycle.successor P_DocumentInfoRecord view

Fields (28)

KeyFieldSource TableSource FieldDescription
KEY DocumentType doc_info dokar SW Document Type
KEY DocumentInfoRecord doc_info doknr Document
KEY DocumentVersion doc_info dokvr Doc. Version
KEY DocumentPart doc_info doktl Document Part
ResponsiblePersonName doc_info dwnam User
InternalDocumentStatus doc_info dokst Document Status
LaboratoryOrDesignOffice doc_info labor Work Center
ChangeNumber doc_info aennr Change Number
Plant doc_info werka Plant dep.
SuperiorDocumentInfoRecord doc_info prenr Document
SuperiorDocumentVersion doc_info prevr Sup. doc. ver.
SuperiorDocumentPart doc_info pretl Sup. Doc. Part
SuperiorDocumentType doc_info prear Sup. doc. type
AuthorizationGroup doc_info begru AuthorizGroup
DueDate doc_info vrldat Due Date
ProcessingPriority doc_info vprior Prior.
DocInfoRecdOutputDate doc_info adatum Output date
SourceDocInfoRecd doc_info doknr_vl DSource Doc.
DocInfoRecdSourceDocPart doc_info doktl_vl Source doc. part
DocInfoRecdSourceDocVersion doc_info dokvr_vl Source version
DocInfoRecdConfignMgmtFixed doc_info cm_fixed Fixed
char1endasIsDocInfoRecdStructure
DocInfoRecdIsMarkedForDeletion doc_info loedk Deletion ind.
DocumentIsCreatedByCAD doc_info cadkz CAD Indicator
CreationDateTime draw_last_change created_at Uploaded On
CreatedByUser draw_last_change created_by Version Created By
ChangedDateTime draw_last_change changed_at Timestamp
LastChangedByUser draw_last_change changed_by User Name

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_DocInfoRecd.
-- 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: PCVDOCINFORECD

CREATE VIEW P_DocInfoRecd AS
SELECT
  doc_info.dokar AS DocumentType,
  doc_info.doknr AS DocumentInfoRecord,
  doc_info.dokvr AS DocumentVersion,
  doc_info.doktl AS DocumentPart,
  doc_info.dwnam AS ResponsiblePersonName,
  doc_info.dokst AS InternalDocumentStatus,
  doc_info.labor AS LaboratoryOrDesignOffice,
  doc_info.aennr AS ChangeNumber,
  doc_info.werka AS Plant,
  doc_info.prenr AS SuperiorDocumentInfoRecord,
  doc_info.prevr AS SuperiorDocumentVersion,
  doc_info.pretl AS SuperiorDocumentPart,
  doc_info.prear AS SuperiorDocumentType,
  doc_info.begru AS AuthorizationGroup,
  doc_info.vrldat AS DueDate,
  doc_info.vprior AS ProcessingPriority,
  doc_info.adatum AS DocInfoRecdOutputDate,
  doc_info.doknr_vl AS SourceDocInfoRecd,
  doc_info.doktl_vl AS DocInfoRecdSourceDocPart,
  doc_info.dokvr_vl AS DocInfoRecdSourceDocVersion,
  doc_info.cm_fixed AS DocInfoRecdConfignMgmtFixed,
  case when DocumentStructureBOM.doknr is not null then cast('X' as abap.char(1)) when DocumentStructureBOM.doknr is null then cast(' ' as abap.char(1)) end as IsDocInfoRecdStructure AS char1endasIsDocInfoRecdStructure,
  doc_info.loedk AS DocInfoRecdIsMarkedForDeletion,
  doc_info.cadkz AS DocumentIsCreatedByCAD,
  Last_Change.created_at AS CreationDateTime,
  Last_Change.created_by AS CreatedByUser,
  Last_Change.changed_at AS ChangedDateTime,
  Last_Change.changed_by AS LastChangedByUser
LEFT OUTER JOIN draw_last_change AS Last_Change ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dost AS DocumentStructureBOM ON /* join condition not captured in parsed metadata */
;