P_DocumentInfoRecord

DDL: P_DOCUMENTINFORECORD SQL: PCVDOCINFOREC Type: view COMPOSITE

P_DocumentInfoRecord is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_DocumentInfoRecordDetail) and exposes 22 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocNumber, DocumentInfoRecordDocPart.

Data Sources (1)

SourceAliasJoin Type
I_DocumentInfoRecordDetail _document from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCVDOCINFOREC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE 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

Fields (22)

KeyFieldSource TableSource FieldDescription
KEY DocumentInfoRecordDocType I_DocumentInfoRecordDetail DocumentInfoRecordDocType Document Type
KEY DocumentInfoRecordDocVersion I_DocumentInfoRecordDetail DocumentInfoRecordDocVersion Doc. Version
KEY DocumentInfoRecordDocNumber I_DocumentInfoRecordDetail DocumentInfoRecordDocNumber Document
KEY DocumentInfoRecordDocPart I_DocumentInfoRecordDetail DocumentInfoRecordDocPart Document Part
DocumentInfoRecord I_DocumentInfoRecordDetail DocumentInfoRecord Document
char70asDocumentInfoRecordDocKey
InternalDocumentStatus I_DocumentInfoRecordDetail InternalDocumentStatus Status
LaboratoryOrDesignOffice I_DocumentInfoRecordDetail LaboratoryOrDesignOffice Lab/Office
Plant I_DocumentInfoRecordDetail Plant Valuation Area
AuthorizationGroup I_DocumentInfoRecordDetail AuthorizationGroup AuthorizGroup
ChangeNumber I_DocumentInfoRecordDetail ChangeNumber Change Number
DocInfoRecdIsMarkedForDeletion I_DocumentInfoRecordDetail DocInfoRecdIsMarkedForDeletion Deletion ind.
IsDocInfoRecdCreatedFromCAD I_DocumentInfoRecordDetail IsDocInfoRecdCreatedFromCAD CAD Indicator
DocInfoRecdSourceDocNumber I_DocumentInfoRecordDetail DocInfoRecdSourceDocNumber DSource Doc.
DocInfoRecdSourceDocPart I_DocumentInfoRecordDetail DocInfoRecdSourceDocPart Source doc. part
DocInfoRecdSourceDocVersion I_DocumentInfoRecordDetail DocInfoRecdSourceDocVersion Source version
ResponsiblePersonName I_DocumentInfoRecordDetail ResponsiblePersonName User
DocumentInfoRecordIsFrozen I_DocumentInfoRecordDetail DocumentInfoRecordIsFrozen
CreationDateTime _Last_Change CreationDateTime Timestamp
CreatedByUser _Last_Change CreatedByUser User Name
ChangedDateTime _Last_Change ChangedDateTime Time Stamp
LastChangedByUser _Last_Change LastChangedByUser 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_DocumentInfoRecord.
-- 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: PCVDOCINFOREC

CREATE VIEW P_DocumentInfoRecord AS
SELECT
  _document.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
  _document.DocumentInfoRecordDocVersion AS DocumentInfoRecordDocVersion,
  _document.DocumentInfoRecordDocNumber AS DocumentInfoRecordDocNumber,
  _document.DocumentInfoRecordDocPart AS DocumentInfoRecordDocPart,
  _document.DocumentInfoRecord AS DocumentInfoRecord,
  cast( replace( replace ( concat( concat( concat( _document.DocumentInfoRecordDocType, rpad(_document.DocumentInfoRecordDocNumber, 25, '#') ), _document.DocumentInfoRecordDocPart ), _document.DocumentInfoRecordDocVersion ) , '#', ' #' ) , '#', '' ) as abap.char(70) ) as DocumentInfoRecordDocKey AS char70asDocumentInfoRecordDocKey,
  _document.InternalDocumentStatus AS InternalDocumentStatus,
  _document.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
  _document.Plant AS Plant,
  _document.AuthorizationGroup AS AuthorizationGroup,
  _document.ChangeNumber AS ChangeNumber,
  _document.DocInfoRecdIsMarkedForDeletion AS DocInfoRecdIsMarkedForDeletion,
  _document.IsDocInfoRecdCreatedFromCAD AS IsDocInfoRecdCreatedFromCAD,
  _document.DocInfoRecdSourceDocNumber AS DocInfoRecdSourceDocNumber,
  _document.DocInfoRecdSourceDocPart AS DocInfoRecdSourceDocPart,
  _document.DocInfoRecdSourceDocVersion AS DocInfoRecdSourceDocVersion,
  _document.ResponsiblePersonName AS ResponsiblePersonName,
  _document.DocumentInfoRecordIsFrozen AS DocumentInfoRecordIsFrozen,
  _Last_Change.CreationDateTime AS CreationDateTime,
  _Last_Change.CreatedByUser AS CreatedByUser,
  _Last_Change.ChangedDateTime AS ChangedDateTime,
  _Last_Change.LastChangedByUser AS LastChangedByUser
FROM I_DocumentInfoRecordDetail AS _document
;