I_LedgerCompanyCodeVH
Company Codes for Ledger
I_LedgerCompanyCodeVH is a Composite CDS View that provides data about "Company Codes for Ledger" in SAP S/4HANA. It reads from 2 data sources (I_CompanyCodeVH, I_LedgerCompanyCodeCrcyRoles) and exposes 8 fields with key fields Ledger, CompanyCode.
SAP Help Documentation
| Category | CDS Views for Configuration Data |
|---|
Purpose
This CDS view is designed to provide a comprehensive value help for company codes associated with specific ledgers. It combines information from ledger roles and company code details to facilitate easy access and searchability for end users. The view is optimized for use in applications where users need to select or search for company codes based on ledger information, ensuring efficient data retrieval and usability. This view should be used for value help purposes only This CDS view provides the data to answer the following business questions: Which company codes are associated with a specific ledger? What are the details of a company code, such as its name, controlling area, chart of accounts, city, and currency? How can users efficiently search for company codes using fuzzy search capabilities? What fiscal year variant is associated with a particular company code and ledger combination? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: Restriction Type ID Restriction Type BUKRS_GLRLDNR_GLRRCTY_GLRVERS Company Code/Ledger/Record Type/Version BUKRS Company Code You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.
This CDS view is designed to provide a comprehensive value help for company codes associated with specific ledgers. It combines information from ledger roles and company code details to facilitate easy access and searchability for end users. The view is optimized for use in applications where users need to select or search for company codes based on ledger information, ensuring efficient data retrieval and usability. This view should be used for value help purposes only This CDS view provides the data to answer the following business questions: Which company codes are associated with a specific ledger? What are the details of a company code, such as its name, controlling area, chart of accounts, city, and currency? How can users efficiently search for company codes using fuzzy search capabilities? What fiscal year variant is associated with a particular company code and ledger combination? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have a role with the following restriction types set to read access: Restriction Type ID Restriction Type BUKRS_GLRLDNR_GLRRCTY_GLRVERS Company Code/Ledger/Record Type/Version BUKRS Company Code You can use the Display Restriction Types app to find out in which business catalogs these restriction types are included.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCodeVH | I_CompanyCodeVH | inner |
| I_LedgerCompanyCodeCrcyRoles | I_LedgerCompanyCodeCrcyRoles | from |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFILEDGERCCODE | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Company Codes for Ledger | view | |
| ObjectModel.dataCategory | #VALUE_HELP | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.modelingPattern | #VALUE_HELP_PROVIDER | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view | |
| Consumption.ranked | true | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Ledger | I_LedgerCompanyCodeCrcyRoles | Ledger | Ledger |
| KEY | CompanyCode | I_LedgerCompanyCodeCrcyRoles | CompanyCode | Receiver Company Code |
| CompanyCodeName | I_CompanyCodeVH | CompanyCodeName | Company Name | |
| ControllingArea | I_CompanyCodeVH | ControllingArea | Controlling Area | |
| ChartOfAccounts | I_CompanyCodeVH | ChartOfAccounts | Node Class | |
| CityName | I_CompanyCodeVH | CityName | Name | |
| Currency | I_CompanyCodeVH | Currency | Valuation Crcy | |
| FiscalYearVariant | I_LedgerCompanyCodeCrcyRoles | FiscalYearVariant | FY Variant |
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 I_LedgerCompanyCodeVH.
-- 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.
CREATE VIEW I_LedgerCompanyCodeVH AS
SELECT
I_LedgerCompanyCodeCrcyRoles.Ledger AS Ledger,
I_LedgerCompanyCodeCrcyRoles.CompanyCode AS CompanyCode,
I_CompanyCodeVH.CompanyCodeName AS CompanyCodeName,
I_CompanyCodeVH.ControllingArea AS ControllingArea,
I_CompanyCodeVH.ChartOfAccounts AS ChartOfAccounts,
I_CompanyCodeVH.CityName AS CityName,
I_CompanyCodeVH.Currency AS Currency,
I_LedgerCompanyCodeCrcyRoles.FiscalYearVariant AS FiscalYearVariant
FROM I_LedgerCompanyCodeCrcyRoles
INNER JOIN I_CompanyCodeVH ON /* join condition not captured in parsed metadata */
;
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