FAA_CFG_CMP_LEDGER
Configuration Data of CompCodes and Ledger
FAA_CFG_CMP_LEDGER is a CDS View that provides data about "Configuration Data of CompCodes and Ledger" in SAP S/4HANA. It reads from 7 data sources and exposes 26 fields with key fields comp_code, ledger.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| faat_cmp_ledger | aa_cmp_ld | from |
| tacc_trgt_ldgr | accpr_ldgrp | inner |
| faac_ap0 | ap_generic | left_outer |
| faac_ap0 | ap_specific | left_outer |
| fagl_tldgrp_map | fagl_tldgrp | inner |
| finsc_ledger | finsc_ld | inner |
| finsc_ld_cmp | gl_cmp_ld | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FAAV_CFG_CMP_LD | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| AbapCatalog.buffering.status | #ACTIVE | view | |
| AbapCatalog.buffering.type | #GENERIC | view | |
| AbapCatalog.buffering.numberOfKeyFields | 1 | view | |
| AbapCatalog.preserveKey | true | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.usageType.dataClass | #CUSTOMIZING | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| EndUserText.label | Configuration Data of CompCodes and Ledger | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | comp_code | faat_cmp_ledger | comp_code | Procuring Comp. Cde |
| KEY | ledger | faat_cmp_ledger | ledger | Ledger |
| ldgrpasldgrp | ||||
| represent | ||||
| ldgrp | ||||
| represent | ||||
| plan_horizon | faat_cmp_ledger | plan_horizon | Planning Horizon | |
| curposh | ||||
| curtpk | finsc_ld_cmp | curtpk | Field Name | |
| curposk | finsc_ld_cmp | curposk | Curr Pos K | |
| curtpo | finsc_ld_cmp | curtpo | FreeDef Crcy 1 | |
| curposo | finsc_ld_cmp | curposo | Curr Pos O | |
| curtpv | finsc_ld_cmp | curtpv | FreeDef Crcy 2 | |
| curposv | finsc_ld_cmp | curposv | Curr Pos V | |
| curtpb | finsc_ld_cmp | curtpb | FreeDef Crcy 3 | |
| curposb | finsc_ld_cmp | curposb | Curr Pos B | |
| curtpc | finsc_ld_cmp | curtpc | FreeDef Crcy 4 | |
| curposc | finsc_ld_cmp | curposc | Curr Pos CSL | |
| curtpd | finsc_ld_cmp | curtpd | FreeDef Crcy 5 | |
| curposd | finsc_ld_cmp | curposd | Curr Pos DSL | |
| curtpe | finsc_ld_cmp | curtpe | FreeDef Crcy 6 | |
| curpose | finsc_ld_cmp | curpose | Curr Pos ESL | |
| curtpf | finsc_ld_cmp | curtpf | FreeDef Crcy 7 | |
| curposf | finsc_ld_cmp | curposf | Curr Pos F | |
| curtpg | finsc_ld_cmp | curtpg | FreeDef Crcy 8 | |
| curposg | finsc_ld_cmp | curposg | Curr Pos GSL |
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 FAA_CFG_CMP_LEDGER.
-- 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: FAAV_CFG_CMP_LD
CREATE VIEW FAA_CFG_CMP_LEDGER AS
SELECT
aa_cmp_ld.comp_code AS comp_code,
aa_cmp_ld.ledger AS ledger,
cast(aa_cmp_ld.ledger as fagl_target_ldgrp) AS ldgrp,
'X' AS represent,
aa_cmp_ld.plan_horizon AS plan_horizon,
#FINS_CUR_POS.'1' AS curposh,
gl_cmp_ld.curtpk AS curtpk,
gl_cmp_ld.curposk AS curposk,
gl_cmp_ld.curtpo AS curtpo,
gl_cmp_ld.curposo AS curposo,
gl_cmp_ld.curtpv AS curtpv,
gl_cmp_ld.curposv AS curposv,
gl_cmp_ld.curtpb AS curtpb,
gl_cmp_ld.curposb AS curposb,
gl_cmp_ld.curtpc AS curtpc,
gl_cmp_ld.curposc AS curposc,
gl_cmp_ld.curtpd AS curtpd,
gl_cmp_ld.curposd AS curposd,
gl_cmp_ld.curtpe AS curtpe,
gl_cmp_ld.curpose AS curpose,
gl_cmp_ld.curtpf AS curtpf,
gl_cmp_ld.curposf AS curposf,
gl_cmp_ld.curtpg AS curtpg,
gl_cmp_ld.curposg AS curposg
FROM faat_cmp_ledger AS aa_cmp_ld
INNER JOIN finsc_ld_cmp AS gl_cmp_ld ON /* join condition not captured in parsed metadata */
INNER JOIN finsc_ledger AS finsc_ld ON /* join condition not captured in parsed metadata */
INNER JOIN tacc_trgt_ldgr AS accpr_ldgrp ON /* join condition not captured in parsed metadata */
INNER JOIN fagl_tldgrp_map AS fagl_tldgrp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN faac_ap0 AS ap_generic ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN faac_ap0 AS ap_specific ON /* join condition not captured in parsed metadata */
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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