P_Swdocver
P_Swdocver is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (drat, draw, tdwst) and exposes 8 fields with key fields DocumentType, DocNumber, DocumentVersion, DocumentPart.
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSWVERSIONS | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
@AbapCatalog.sqlViewName: 'PSWVERSIONS'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@VDM.private: true
define view P_Swdocver
as select from draw
left outer join drat on draw.dokar = drat.dokar
and draw.doknr = drat.doknr
and draw.dokvr = drat.dokvr
and draw.doktl = drat.doktl
and drat.langu = $session.system_language
left outer join tdwst on tdwst.dokst = draw.dokst
and tdwst.cvlang = $session.system_language
{
key draw.dokar as DocumentType,
key draw.doknr as DocNumber,
key draw.dokvr as DocumentVersion,
key draw.doktl as DocumentPart,
draw.dokst as InternalDocumentStatus,
draw.res1 as EmbeddedSwExternalVersion,
tdwst.dostx as DocumentStatusName,
drat.dktxt as DocumentDescription
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DRAT",
"DRAW",
"TDWST"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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