FINSCDS_REPR_RLDNR
Representative Ledger
FINSCDS_REPR_RLDNR is a CDS View that provides data about "Representative Ledger" in SAP S/4HANA. It reads from 3 data sources (fagl_tldgrp_map, finsc_actve_appl, finsc_ledger) and exposes 5 fields with key fields mandt, ldgrp, ldgrp.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| fagl_tldgrp_map | fagl_tldgrp_map | from |
| finsc_actve_appl | finsc_actve_appl | inner |
| finsc_ledger | finsc_ledger | union_all |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FINSV_REPR_RLDNR | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | Representative Ledger | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | mandt | ||
| KEY | ldgrp | ldgrp | ||
| mandtasmandt | ||||
| KEY | ldgrp | |||
| repr_rldnr | rldnr |
@AbapCatalog.sqlViewName: 'FINSV_REPR_RLDNR'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.serviceQuality: #P
@AbapCatalog.compiler.compareFilter: true
//@AccessControl.authorizationCheck: #CHECK commented out because there is no DCL and it is customizing table access only
@EndUserText.label: 'Representative Ledger'
//get representative ledger for all ledgergroups, incl. the ledgergroup <space>;
//this view can be joined to get the representative ledger for any posting
//For this, join BKPF-LDGRP with LDGRP of this view:
define view FINSCDS_REPR_RLDNR as select from fagl_tldgrp_map
{
key mandt,
key ldgrp,
rldnr as repr_rldnr
}
where ldgrp <> ' '
and represent <> ' '
union all
select from finsc_ledger
inner join finsc_actve_appl
on finsc_actve_appl.mandt = finsc_ledger.mandt
and finsc_actve_appl.appl = finsc_ledger.appl
and finsc_actve_appl.subappl = finsc_ledger.subappl
{
key finsc_ledger.mandt as mandt,
key ' ' as ldgrp,
rldnr as repr_rldnr
}
where xleading <> ' '
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"FAGL_TLDGRP_MAP",
"FINSC_ACTVE_APPL",
"FINSC_LEDGER"
],
"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