P_ONRSC
P_ONRSC is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (fco_srvdoc, onrsc) and exposes 4 fields with key field objnr.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| fco_srvdoc | fco_srvdoc | inner |
| onrsc | onrsc | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PFIONRSC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #BASIC | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view |
Fields (4)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | objnr | onrsc | objnr | |
| kokrs | fco_srvdoc | controlling_area | ||
| bukrs | fco_srvdoc | company_code | ||
| OBART |
@AbapCatalog.sqlViewName: 'PFIONRSC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
// @EndUserText.label: 'View for ONRSC'
@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.buffering.status: #NOT_ALLOWED
define view P_ONRSC as select from onrsc
// inner join onr00 on onrsc.objnr = onr00.objnr
inner join fco_srvdoc on onrsc.objnr = fco_srvdoc.objnr
{
key onrsc.objnr as objnr,
onrsc.service_doc_id as service_doc_id,
onrsc.service_doc_item_id as service_doc_item_id,
fco_srvdoc.service_doc_type as service_doc_type,
fco_srvdoc.controlling_area as kokrs,
fco_srvdoc.company_code as bukrs,
cast ( SUBSTRING( onrsc.objnr, 1, 2) as j_obart) as OBART
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FCO_SRVDOC",
"ONRSC"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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