C_DocumentInfoRecordTP
Document Info Record TP
C_DocumentInfoRecordTP is a Consumption CDS View that provides data about "Document Info Record TP" in SAP S/4HANA. It reads from 1 data source (I_DocumentInfoRecordTP) and exposes 69 fields with key fields DocumentInfoRecordDocNumber, DocumentInfoRecordDocType, DocumentInfoRecordDocVersion, DocumentInfoRecordDocPart. It has 10 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DocumentInfoRecordTP | Document | from |
Associations (10)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_DocumentInfoRecordDescTP | _Desc | $projection.DocumentInfoRecordDocType = _Desc.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocNumber = _Desc.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _Desc.DocumentInfoRecordDocVersion and $projection.DocumentInfoRecordDocPart = _Desc.DocumentInfoRecordDocPart |
| [0..*] | C_DocumentInfoRecordObjLinkTP | _ObjLink | $projection.DocumentInfoRecordDocType = _ObjLink.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocNumber = _ObjLink.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion = _ObjLink.DocumentInfoRecordDocVersion and $projection.DocumentInfoRecordDocPart = _ObjLink.DocumentInfoRecordDocPart |
| [0..*] | C_DocumentInfoRecordVersion | _DIRVersion | $projection.DocumentInfoRecordDocType = _DIRVersion.DocumentInfoRecordDocType and $projection.DocumentInfoRecordDocNumber = _DIRVersion.DocumentInfoRecordDocNumber and $projection.DocumentInfoRecordDocVersion <> _DIRVersion.DocumentInfoRecordDocVersion and $projection.DocumentInfoRecordDocPart = _DIRVersion.DocumentInfoRecordDocPart |
| [0..1] | I_DocumentInfoRecordDocStatus | _StatusText | $projection.DocumentInfoRecordDocType = _StatusText.DocumentInfoRecordDocType and $projection.InternalDocumentStatus = _StatusText.InternalDocumentStatus |
| [0..*] | I_DocumentInfoRecordObjLinkVH | _SAPObjectVH | $projection.DocInfoRecdDocTypeForEdit = _SAPObjectVH.DocumentInfoRecordDocType and _SAPObjectVH.LinkedSAPObject <> 'STKO_DOC' |
| [0..1] | C_DocumentInfoRecordDelInd | _CADValueHelp | $projection.DocumentIsCreatedByCAD = _CADValueHelp.IndicatorValue |
| [0..1] | C_DocumentInfoRecordDelInd | _DeletionValueHelp | $projection.DocInfoRecdIsDeleted = _DeletionValueHelp.IndicatorValue |
| [0..*] | I_DocumentInfoRecordDocTypeT | _DocTypeText | $projection.DocInfoRecdDocTypeForEdit = _DocTypeText.DocumentInfoRecordDocType |
| [0..*] | I_DocumentInfoRecordDocTypeT | _DocumentTypeText | $projection.DocumentInfoRecordDocType = _DocumentTypeText.DocumentInfoRecordDocType |
| [0..1] | C_ChangeMasterVH | _ChangeMasterVH | $projection.ChangeNumber = _ChangeMasterVH.ChangeNumber --Get DocumentInfoRecord created user full name |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDOCINFRECD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Document Info Record TP | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Search.searchable | true | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (69)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| DocumentDescriptionForEdit | Document Draft Description | |||
| LastChangedByUserFullName | Last Changed By User Full Name | |||
| ResponsiblePersonFullName | User Name | |||
| DocumentDescription | Document Description | |||
| DocumentTypeDescription | ||||
| DocumentStatusName | Document Status Description | |||
| ExternalDocumentStatus | Document Status | |||
| Criticality | ||||
| CheckStatusCriticality | ||||
| CADStatusDescription | CAD Status Description | |||
| DeleteStatusDescription | Delete Status Description | |||
| DocumentIsCreatedByCAD | Created from CAD | |||
| DocInfoRecdIsDeleted | Marked for Deletion | |||
| LaboratoryOrDesignOfficeName | Description of the Laboratory/Office | |||
| AuthorizationGroupName | ||||
| DescriptionProperty | ||||
| AutoClassificationIsEnabled | ||||
| _SAPObjectVH | _SAPObjectVH | |||
| _CADValueHelp | _CADValueHelp | |||
| _DeletionValueHelp | _DeletionValueHelp | |||
| _StatusText | _StatusText | |||
| _DIRVersion | _DIRVersion | |||
| _Desc | _Desc | |||
| _ObjLink | _ObjLink | |||
| _DocTypeText | _DocTypeText | |||
| _DocumentTypeText | _DocumentTypeText | |||
| _ChangeMasterVH | _ChangeMasterVH | |||
| KEY | DocumentInfoRecordDocNumber | I_DocumentInfoRecordTP | DocumentInfoRecordDocNumber | Document Number |
| KEY | DocumentInfoRecordDocType | I_DocumentInfoRecordTP | DocumentInfoRecordDocType | Document Type |
| KEY | DocumentInfoRecordDocVersion | I_DocumentInfoRecordTP | DocumentInfoRecordDocVersion | Document Version |
| KEY | DocumentInfoRecordDocPart | I_DocumentInfoRecordTP | DocumentInfoRecordDocPart | Document Part |
| DocInfoRecdDocNumberForEdit | I_DocumentInfoRecordTP | DocInfoRecdDocNumberForEdit | Document | |
| DocInfoRecdDocTypeForEdit | I_DocumentInfoRecordTP | DocInfoRecdDocTypeForEdit | Document Type | |
| DocInfoRecdDocPartForEdit | I_DocumentInfoRecordTP | DocInfoRecdDocPartForEdit | Document Part | |
| DocInfoRecdDocVersionForEdit | I_DocumentInfoRecordTP | DocInfoRecdDocVersionForEdit | Doc. Version | |
| ExternalDocumentStatusForEdit | I_DocumentInfoRecordTP | ExternalDocumentStatusForEdit | ||
| DocumentInfoRecord | I_DocumentInfoRecordTP | DocumentInfoRecord | Document | |
| ChangedDateTime | I_DocumentInfoRecordTP | ChangedDateTime | Time Stamp | |
| LastChangedByUser | I_DocumentInfoRecordTP | LastChangedByUser | User Name | |
| CreatedByUser | I_DocumentInfoRecordTP | CreatedByUser | User Name | |
| CreationDateTime | I_DocumentInfoRecordTP | CreationDateTime | Timestamp | |
| ResponsiblePersonName | I_DocumentInfoRecordTP | ResponsiblePersonName | User | |
| DocInfoRecdSourceDocPart | I_DocumentInfoRecordTP | DocInfoRecdSourceDocPart | ||
| DocInfoRecdSourceDocVersion | I_DocumentInfoRecordTP | DocInfoRecdSourceDocVersion | ||
| IsDocInfoRecdStructure | I_DocumentInfoRecordTP | IsDocInfoRecdStructure | ||
| DocInfoRecdSourceDocNumber | I_DocumentInfoRecordTP | DocInfoRecdSourceDocNumber | ||
| InternalDocumentStatus | I_DocumentInfoRecordTP | InternalDocumentStatus | Status | |
| IsDocInfoRecdCreatedFromCAD | I_DocumentInfoRecordTP | IsDocInfoRecdCreatedFromCAD | CAD Indicator | |
| DocInfoRecdIsMarkedForDeletion | I_DocumentInfoRecordTP | DocInfoRecdIsMarkedForDeletion | Deletion ind. | |
| ClassificationSideEffect | I_DocumentInfoRecordTP | ClassificationSideEffect | Side eff. | |
| LaboratoryOrDesignOffice | I_DocumentInfoRecordTP | LaboratoryOrDesignOffice | Lab/Office | |
| AuthorizationGroup | I_DocumentInfoRecordTP | AuthorizationGroup | AuthorizGroup | |
| ChangeNumber | I_DocumentInfoRecordTP | ChangeNumber | Change Number | |
| _ChangedUser | I_DocumentInfoRecordTP | _ChangedUser | ||
| _CreatedUser | I_DocumentInfoRecordTP | _CreatedUser | ||
| _UserDetails | I_DocumentInfoRecordTP | _UserDetails | ||
| _ChangedUserVH | I_DocumentInfoRecordTP | _ChangedUserVH | ||
| _CreatedUserVH | I_DocumentInfoRecordTP | _CreatedUserVH | ||
| _UserDetailsVH | I_DocumentInfoRecordTP | _UserDetailsVH | ||
| _DocNumber | I_DocumentInfoRecordTP | _DocNumber | ||
| _DocPart | I_DocumentInfoRecordTP | _DocPart | ||
| _DocType | I_DocumentInfoRecordTP | _DocType | ||
| _DocVersion | I_DocumentInfoRecordTP | _DocVersion | ||
| _Indicator | I_DocumentInfoRecordTP | _Indicator | ||
| _AuthGroup | I_DocumentInfoRecordTP | _AuthGroup | ||
| _LabOffice | I_DocumentInfoRecordTP | _LabOffice | ||
| _LogAccMObjectTypeActive | I_DocumentInfoRecordTP | _LogAccMObjectTypeActive | ||
| _LogAccMObjectUserAuthzn | I_DocumentInfoRecordTP | _LogAccMObjectUserAuthzn | ||
| _LogAccMObjSecureIDAssgmt | I_DocumentInfoRecordTP | _LogAccMObjSecureIDAssgmt |
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 C_DocumentInfoRecordTP.
-- 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: CDOCINFRECD
CREATE VIEW C_DocumentInfoRecordTP AS
SELECT
/ Document.DocumentDescriptionForEdit AS DocumentDescriptionForEdit,
Document._ChangedUser.UserDescription AS LastChangedByUserFullName,
Document._UserDetails.UserDescription AS ResponsiblePersonFullName,
_Desc[1: Language = $session.system_language].DocumentDescription AS DocumentDescription,
Document._DocType._Text[1: Language = $session.system_language].DocumentTypeDescription AS DocumentTypeDescription,
Document._DocStatus._Text[1: Language = $session.system_language].DocumentStatusName AS DocumentStatusName,
Document._DocStatus._Text[1: Language = $session.system_language].ExternalDocumentStatus AS ExternalDocumentStatus,
cast( '' as abap.numc( 1 )) AS Criticality,
cast( '' as abap.numc(1)) AS CheckStatusCriticality,
Document._Indicator._Text._CadStatusText[1: Language = $session.system_language].CADStatusDescription AS CADStatusDescription,
Document._Indicator._Text._DeltnStatusText[1: Language = $session.system_language].DeleteStatusDescription AS DeleteStatusDescription,
cast( Document.IsDocInfoRecdCreatedFromCAD as xfeld ) AS DocumentIsCreatedByCAD,
cast( Document.DocInfoRecdIsMarkedForDeletion as xfeld ) AS DocInfoRecdIsDeleted,
_LabOffice._Text[1: Language = $session.system_language].LaboratoryOrDesignOfficeName AS LaboratoryOrDesignOfficeName,
Document._AuthGroup._Text[1: Language = $session.system_language].AuthorizationGroupName AS AuthorizationGroupName,
cast ( 1 as ux_field_control preserving type) AS DescriptionProperty,
cast ( 'X' as boole_d preserving type ) AS AutoClassificationIsEnabled,
Document.DocumentInfoRecordDocNumber AS DocumentInfoRecordDocNumber,
Document.DocumentInfoRecordDocType AS DocumentInfoRecordDocType,
Document.DocumentInfoRecordDocVersion AS DocumentInfoRecordDocVersion,
Document.DocumentInfoRecordDocPart AS DocumentInfoRecordDocPart,
Document.DocInfoRecdDocNumberForEdit AS DocInfoRecdDocNumberForEdit,
Document.DocInfoRecdDocTypeForEdit AS DocInfoRecdDocTypeForEdit,
Document.DocInfoRecdDocPartForEdit AS DocInfoRecdDocPartForEdit,
Document.DocInfoRecdDocVersionForEdit AS DocInfoRecdDocVersionForEdit,
Document.ExternalDocumentStatusForEdit AS ExternalDocumentStatusForEdit,
Document.DocumentInfoRecord AS DocumentInfoRecord,
Document.ChangedDateTime AS ChangedDateTime,
Document.LastChangedByUser AS LastChangedByUser,
Document.CreatedByUser AS CreatedByUser,
Document.CreationDateTime AS CreationDateTime,
Document.ResponsiblePersonName AS ResponsiblePersonName,
Document.DocInfoRecdSourceDocPart AS DocInfoRecdSourceDocPart,
Document.DocInfoRecdSourceDocVersion AS DocInfoRecdSourceDocVersion,
Document.IsDocInfoRecdStructure AS IsDocInfoRecdStructure,
Document.DocInfoRecdSourceDocNumber AS DocInfoRecdSourceDocNumber,
Document.InternalDocumentStatus AS InternalDocumentStatus,
Document.IsDocInfoRecdCreatedFromCAD AS IsDocInfoRecdCreatedFromCAD,
Document.DocInfoRecdIsMarkedForDeletion AS DocInfoRecdIsMarkedForDeletion,
Document.ClassificationSideEffect AS ClassificationSideEffect,
Document.LaboratoryOrDesignOffice AS LaboratoryOrDesignOffice,
Document.AuthorizationGroup AS AuthorizationGroup,
Document.ChangeNumber AS ChangeNumber,
Document._ChangedUser AS _ChangedUser,
Document._CreatedUser AS _CreatedUser,
Document._UserDetails AS _UserDetails,
Document._ChangedUserVH AS _ChangedUserVH,
Document._CreatedUserVH AS _CreatedUserVH,
Document._UserDetailsVH AS _UserDetailsVH,
Document._DocNumber AS _DocNumber,
Document._DocPart AS _DocPart,
Document._DocType AS _DocType,
Document._DocVersion AS _DocVersion,
Document._Indicator AS _Indicator,
Document._AuthGroup AS _AuthGroup,
Document._LabOffice AS _LabOffice,
Document._LogAccMObjectTypeActive AS _LogAccMObjectTypeActive,
Document._LogAccMObjectUserAuthzn AS _LogAccMObjectUserAuthzn,
Document._LogAccMObjSecureIDAssgmt AS _LogAccMObjSecureIDAssgmt
FROM I_DocumentInfoRecordTP AS Document
LEFT OUTER JOIN C_DocumentInfoRecordDescTP AS _Desc ON DocumentInfoRecordDocType = _Desc.DocumentInfoRecordDocType AND DocumentInfoRecordDocNumber = _Desc.DocumentInfoRecordDocNumber AND DocumentInfoRecordDocVersion = _Desc.DocumentInfoRecordDocVersion AND DocumentInfoRecordDocPart = _Desc.DocumentInfoRecordDocPart -- association [0..*]
LEFT OUTER JOIN C_DocumentInfoRecordObjLinkTP AS _ObjLink ON DocumentInfoRecordDocType = _ObjLink.DocumentInfoRecordDocType AND DocumentInfoRecordDocNumber = _ObjLink.DocumentInfoRecordDocNumber AND DocumentInfoRecordDocVersion = _ObjLink.DocumentInfoRecordDocVersion AND DocumentInfoRecordDocPart = _ObjLink.DocumentInfoRecordDocPart -- association [0..*]
LEFT OUTER JOIN C_DocumentInfoRecordVersion AS _DIRVersion ON DocumentInfoRecordDocType = _DIRVersion.DocumentInfoRecordDocType AND DocumentInfoRecordDocNumber = _DIRVersion.DocumentInfoRecordDocNumber AND DocumentInfoRecordDocVersion <> _DIRVersion.DocumentInfoRecordDocVersion AND DocumentInfoRecordDocPart = _DIRVersion.DocumentInfoRecordDocPart -- association [0..*]
LEFT OUTER JOIN I_DocumentInfoRecordDocStatus AS _StatusText ON DocumentInfoRecordDocType = _StatusText.DocumentInfoRecordDocType AND InternalDocumentStatus = _StatusText.InternalDocumentStatus -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordObjLinkVH AS _SAPObjectVH ON DocInfoRecdDocTypeForEdit = _SAPObjectVH.DocumentInfoRecordDocType AND _SAPObjectVH.LinkedSAPObject <> 'STKO_DOC' -- association [0..*]
LEFT OUTER JOIN C_DocumentInfoRecordDelInd AS _CADValueHelp ON DocumentIsCreatedByCAD = _CADValueHelp.IndicatorValue -- association [0..1]
LEFT OUTER JOIN C_DocumentInfoRecordDelInd AS _DeletionValueHelp ON DocInfoRecdIsDeleted = _DeletionValueHelp.IndicatorValue -- association [0..1]
LEFT OUTER JOIN I_DocumentInfoRecordDocTypeT AS _DocTypeText ON DocInfoRecdDocTypeForEdit = _DocTypeText.DocumentInfoRecordDocType -- association [0..*]
LEFT OUTER JOIN I_DocumentInfoRecordDocTypeT AS _DocumentTypeText ON DocumentInfoRecordDocType = _DocumentTypeText.DocumentInfoRecordDocType -- association [0..*]
LEFT OUTER JOIN C_ChangeMasterVH AS _ChangeMasterVH ON ChangeNumber = _ChangeMasterVH.ChangeNumber -- association [0..1]
;
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