A_CompanyCode
API Company Code
A_CompanyCode is a Basic CDS View that provides data about "API Company Code" in SAP S/4HANA. It reads from 1 data source (I_CompanyCode) and exposes 21 fields with key field CompanyCode.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | I_CompanyCode | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | API Company Code | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| AbapCatalog.sqlViewName | AFICOMPANYCODE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | ||
| CompanyCodeName | CompanyCodeName | |||
| CityName | CityName | |||
| Country | Country | |||
| Currency | Currency | |||
| Language | Language | |||
| ChartOfAccounts | ChartOfAccounts | |||
| FiscalYearVariant | FiscalYearVariant | |||
| Company | Company | |||
| CreditControlArea | CreditControlArea | |||
| CountryChartOfAccounts | CountryChartOfAccounts | |||
| FinancialManagementArea | FinancialManagementArea | |||
| AddressID | AddressID | |||
| TaxableEntity | TaxableEntity | |||
| VATRegistration | VATRegistration | |||
| ExtendedWhldgTaxIsActive | ExtendedWhldgTaxIsActive | |||
| ControllingArea | ControllingArea | |||
| FieldStatusVariant | FieldStatusVariant | |||
| NonTaxableTransactionTaxCode | NonTaxableTransactionTaxCode | |||
| DocDateIsUsedForTaxDetn | DocDateIsUsedForTaxDetn | |||
| TaxRptgDateIsActive | TaxRptgDateIsActive |
@EndUserText.label: 'API Company Code'
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type:#PUBLIC_REMOTE_API
@AbapCatalog.sqlViewName: 'AFICOMPANYCODE'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #B
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
//A-view annotations
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
define view A_CompanyCode
as select from I_CompanyCode
//association [0..1] to I_Currency as _Currency on $projection.Currency = _Currency.Currency
//association [0..1] to A_Country as _Country on $projection.Country = _Country.Country
//association [0..1] to I_Address as _Address on $projection.AddressID = _Address.AddressID
//association [0..1] to I_Language as _Language on $projection.Language = _Language.Language
//association [0..1] to A_ChartOfAccounts as _ChartOfAccounts on $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
//association [0..1] to I_FiscalYearVariant as _FiscalYearVariant on $projection.FiscalYearVariant = _FiscalYearVariant.FiscalYearVariant
//association [0..1] to A_ChartOfAccounts as _CountryChartOfAccounts on $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts
//association [0..1] to A_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
//association [0..1] to I_CreditControlArea as _CreditControlArea on $projection.CreditControlArea = _CreditControlArea.CreditControlArea
//association [0..1] to I_FieldStatusVariant as _FieldStatusVariant on $projection.FieldStatusVariant = _FieldStatusVariant.FieldStatusVariant
//association [0..1] to I_Globalcompany as _GlobalCompany on $projection.Company = _GlobalCompany.Company
{
//I_CompanyCode
key CompanyCode,
CompanyCodeName,
CityName,
Country,
Currency,
Language,
ChartOfAccounts,
FiscalYearVariant,
Company,
CreditControlArea,
CountryChartOfAccounts,
FinancialManagementArea,
AddressID,
TaxableEntity,
VATRegistration,
ExtendedWhldgTaxIsActive,
ControllingArea,
FieldStatusVariant,
NonTaxableTransactionTaxCode,
DocDateIsUsedForTaxDetn,
TaxRptgDateIsActive
/* Associations */
//I_CompanyCode
// _Address,
// _ChartOfAccounts,
// _ControllingArea,
// _Country,
// _CountryChartOfAccounts
// _CreditControlArea,
// _Currency,
// _FieldStatusVariant,
// _FiscalYearVariant,
// _GlobalCompany,
// _Language
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_COMPANYCODE"
],
"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