P_DocumentInfoRecordAttachment
P_DocumentInfoRecordAttachment is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (dms_doc2loio) and exposes 29 fields with key fields DocumentInfoRecordDocType, DocumentInfoRecordDocNumber, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart, DocumentIndex.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| dms_doc2loio | Dir_Loio | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCVDOCATTACH | 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 | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DocumentInfoRecordDocType | dms_doc2loio | dokar | SW Document Type |
| KEY | DocumentInfoRecordDocNumber | dms_doc2loio | doknr | Document |
| KEY | DocumentInfoRecordDocVersion | dms_doc2loio | dokvr | Doc. Version |
| KEY | DocumentInfoRecordDocPart | dms_doc2loio | doktl | Document Part |
| KEY | DocumentIndex | dms_doc2loio | lo_index | Counter |
| KEY | FileUUID | Phio_Filename | file_id | UUID |
| KEY | PhysicalDocument | Original_Phio | phio_id | Phys. Document |
| FileName | Doc_Files | filename | URL or Filenam Path | |
| FileSize | Original_fileSizeData | file_size | Size/dim. | |
| WorkstationApplication | Doc_Files | dappl | Applic. | |
| MimeType | Original_fileSizeData | mimetype | MIMETYPE | |
| StorageCategory | Original_Phio | stor_cat | Category | |
| IsOriginalVersionActive | Original_Phio | prop01 | Attribute feature (short version) | |
| OriginalIsProtected | Phio_Filename | protected | Protected | |
| DocumentTitle | Original_Phio | descript | Title | |
| DocumentFormat | Original_Phio | doc_format | Document format | |
| PhysicalDocumentClass | Original_Phio | ph_class | PHIO Class | |
| LogicalDocument | dms_doc2loio | lo_objid | Log. document | |
| LogicalDocumentClass | Original_Phio | lo_class | LOIO class | |
| CreationDateTime | ||||
| CreatedByUser | Original_Phio | crea_user | User | |
| OriginalCheckedOutTime | ||||
| OriginalCheckedOutUser | Original_CheckOutData | chko_user | Agent | |
| ChangedDateTime | ||||
| LastChangedByUser | Original_Phio | chng_user | Last Changed By | |
| LogicalDocumentIsReference | dms_doc2loio | lo_is_ref | Flag | |
| OriginalType | dms_doc2loio | lo_type | Original type | |
| PhysicalDocTechnicalStatus | Original_Phio | state | Vehicle Region | |
| InternalComment | Original_CheckOutData | chko_commt | Comment |
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_DocumentInfoRecordAttachment.
-- 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: PCVDOCATTACH
CREATE VIEW P_DocumentInfoRecordAttachment AS
SELECT
Dir_Loio.dokar AS DocumentInfoRecordDocType,
Dir_Loio.doknr AS DocumentInfoRecordDocNumber,
Dir_Loio.dokvr AS DocumentInfoRecordDocVersion,
Dir_Loio.doktl AS DocumentInfoRecordDocPart,
Dir_Loio.lo_index AS DocumentIndex,
Phio_Filename.file_id AS FileUUID,
Original_Phio.phio_id AS PhysicalDocument,
Doc_Files.filename AS FileName,
Original_fileSizeData.file_size AS FileSize,
Doc_Files.dappl AS WorkstationApplication,
Original_fileSizeData.mimetype AS MimeType,
Original_Phio.stor_cat AS StorageCategory,
Original_Phio.prop01 AS IsOriginalVersionActive,
Phio_Filename.protected AS OriginalIsProtected,
Original_Phio.descript AS DocumentTitle,
Original_Phio.doc_format AS DocumentFormat,
Original_Phio.ph_class AS PhysicalDocumentClass,
Dir_Loio.lo_objid AS LogicalDocument,
Original_Phio.lo_class AS LogicalDocumentClass,
cast ( Original_Phio.crea_time as tzntstmps) AS CreationDateTime,
Original_Phio.crea_user AS CreatedByUser,
cast ( Original_CheckOutData.chko_time as tzntstmps) AS OriginalCheckedOutTime,
Original_CheckOutData.chko_user AS OriginalCheckedOutUser,
cast ( Original_Phio.chng_time as tzntstmps) AS ChangedDateTime,
Original_Phio.chng_user AS LastChangedByUser,
Dir_Loio.lo_is_ref AS LogicalDocumentIsReference,
Dir_Loio.lo_type AS OriginalType,
Original_Phio.state AS PhysicalDocTechnicalStatus,
Original_CheckOutData.chko_commt AS InternalComment
FROM dms_doc2loio AS Dir_Loio
;
Learn More
- 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
- S/4HANA CDS View Deprecation: What You Need to Know
- 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