P_DocInfoRecdOriginal
Originals Of Document Info Records
P_DocInfoRecdOriginal is a Basic CDS View that provides data about "Originals Of Document Info Records" in SAP S/4HANA. It reads from 6 data sources and exposes 28 fields with key fields DocumentType, DocumentInfoRecord, DocumentVersion, DocumentPart, DocumentIndex. Part of development package CV_VDM.
Data Sources (6)
| Source | Alias | Join Type |
|---|---|---|
| dms_doc2loio | Dir_Loio | from |
| dms_doc_files | Doc_Files | left_outer |
| dms_ph_chko_cd1 | Original_CheckOutData | left_outer |
| dms_phf_cd1 | Original_fileSizeData | left_outer |
| dms_ph_cd1 | Original_Phio | left_outer |
| dms_phio2file | Phio_Filename | left_outer |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCVORIGINAL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.lifecycle.contract.type | #NONE | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | P_DocumentInfoRecordAttachment | view |
Fields (28)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentType | dms_doc2loio | dokar | SW Document Type |
| KEY | DocumentInfoRecord | dms_doc2loio | doknr | Document |
| KEY | DocumentVersion | dms_doc2loio | dokvr | Doc. Version |
| KEY | DocumentPart | dms_doc2loio | doktl | Document Part |
| KEY | DocumentIndex | dms_doc2loio | lo_index | Counter |
| KEY | FileUUID | dms_phio2file | file_id | UUID |
| FileName | dms_doc_files | filename | URL or Filenam Path | |
| IsOriginalVersionActive | dms_ph_cd1 | prop01 | Attribute feature (short version) | |
| WorkstationApplication | dms_doc_files | dappl | Applic. | |
| MimeType | dms_phf_cd1 | mimetype | MIMETYPE | |
| StorageCategory | dms_ph_cd1 | stor_cat | Category | |
| OriginalCheckedOutUser | dms_ph_chko_cd1 | chko_user | Agent | |
| OriginalCheckedOutTime | ||||
| InternalComment | dms_ph_chko_cd1 | chko_commt | Comment | |
| CreationDateTime | ||||
| CreatedByUser | dms_ph_cd1 | crea_user | User | |
| ChangedDateTime | ||||
| LastChangedByUser | dms_ph_cd1 | chng_user | Last Changed By | |
| PhysicalDocument | dms_ph_cd1 | phio_id | Phys. Document | |
| FileSize | dms_phf_cd1 | file_size | Size/dim. | |
| OriginalType | dms_doc2loio | lo_type | Original type | |
| LogicalDocument | dms_doc2loio | lo_objid | Log. document | |
| LogicalDocumentIsReference | dms_doc2loio | lo_is_ref | Flag | |
| LogicalDocumentClass | dms_ph_cd1 | lo_class | LOIO class | |
| PhysicalDocTechnicalStatus | dms_ph_cd1 | state | Vehicle Region | |
| DocumentTitle | dms_ph_cd1 | descript | Title | |
| DocumentFormat | dms_ph_cd1 | doc_format | Document format | |
| OriginalIsProtected | dms_phio2file | protected | Protected |
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_DocInfoRecdOriginal.
-- 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: PCVORIGINAL
CREATE VIEW P_DocInfoRecdOriginal AS
SELECT
Dir_Loio.dokar AS DocumentType,
Dir_Loio.doknr AS DocumentInfoRecord,
Dir_Loio.dokvr AS DocumentVersion,
Dir_Loio.doktl AS DocumentPart,
Dir_Loio.lo_index AS DocumentIndex,
Phio_Filename.file_id AS FileUUID,
Doc_Files.filename AS FileName,
Original_Phio.prop01 AS IsOriginalVersionActive,
Doc_Files.dappl AS WorkstationApplication,
Original_fileSizeData.mimetype AS MimeType,
Original_Phio.stor_cat AS StorageCategory,
Original_CheckOutData.chko_user AS OriginalCheckedOutUser,
cast ( Original_CheckOutData.chko_time as tzntstmps) AS OriginalCheckedOutTime,
Original_CheckOutData.chko_commt AS InternalComment,
cast ( Original_Phio.crea_time as tzntstmps) AS CreationDateTime,
Original_Phio.crea_user AS CreatedByUser,
cast ( Original_Phio.chng_time as tzntstmps) AS ChangedDateTime,
Original_Phio.chng_user AS LastChangedByUser,
Original_Phio.phio_id AS PhysicalDocument,
Original_fileSizeData.file_size AS FileSize,
Dir_Loio.lo_type AS OriginalType,
Dir_Loio.lo_objid AS LogicalDocument,
Dir_Loio.lo_is_ref AS LogicalDocumentIsReference,
Original_Phio.lo_class AS LogicalDocumentClass,
Original_Phio.state AS PhysicalDocTechnicalStatus,
Original_Phio.descript AS DocumentTitle,
Original_Phio.doc_format AS DocumentFormat,
Phio_Filename.protected AS OriginalIsProtected
FROM dms_doc2loio AS Dir_Loio
LEFT OUTER JOIN dms_ph_cd1 AS Original_Phio ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dms_phio2file AS Phio_Filename ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dms_ph_chko_cd1 AS Original_CheckOutData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dms_phf_cd1 AS Original_fileSizeData ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN dms_doc_files AS Doc_Files ON /* join condition not captured in parsed metadata */
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA