I_LedgerCompanyCodeVH

DDL: I_LEDGERCOMPANYCODEVH Type: view COMPOSITE

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

CategoryCDS 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.

View on SAP Help Portal →

Data Sources (2)

SourceAliasJoin Type
I_CompanyCodeVH I_CompanyCodeVH inner
I_LedgerCompanyCodeCrcyRoles I_LedgerCompanyCodeCrcyRoles from

Annotations (16)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;