I_COMPANYCODEVH
Company Code
I_COMPANYCODEVH is a CDS View in S/4HANA. Company Code. It contains 21 fields. 15 CDS views read from this table.
CDS Views using this table (15)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| C_CompanyCodeValueHelp | view | from | CONSUMPTION | Company Code |
| C_CorrespondenceCompanyCodeVH | view | from | CONSUMPTION | Correspondence Company Code Value Help |
| C_DspPaytCardCompanyCodeVH | view | from | CONSUMPTION | Payment Card - Company Code Value Help |
| C_EDocMsgCompanyCodeValueHelp | view_entity | from | CONSUMPTION | Electronic Inbbound Message Company Code |
| C_MM_CompanyCodeValueHelp | view | from | CONSUMPTION | Company Code Value Help |
| C_TranspCompanyCodeVH | view_entity | from | CONSUMPTION | Transp Company Code |
| I_BkPOACompanyCodeVH | view_entity | from | COMPOSITE | Company Code |
| I_CommodityOrderFillTP | view | left_outer | TRANSACTIONAL | Commodity Order Fill Transactional View |
| I_CommodityOrdFillPacketTP | view | left_outer | TRANSACTIONAL | Tran. View for Cmmdty Deriv Ord Fill Pkt |
| I_CustomerCompanyCodeVH | view | from | COMPOSITE | Customer Company Code Value Help |
| I_LedgerCompanyCodeVH | view | inner | COMPOSITE | Company Codes for Ledger |
| I_PE_EDocCompanyCodeVH | view | from | BASIC | Peru eDocument Company Code |
| I_ProdVolCaptureCoCodeVH | view | from | BASIC | Company Code Value Help |
| I_SI_EDocCompanyCodeVH | view_entity | from | BASIC | DRC Slovenia BP Company Codes |
| I_SupplierCompanyCodeVH | view | from | COMPOSITE | Supplier Company Code Value Help |
Fields (21)
| Key | Field | CDS Fields | Used in Views |
|---|---|---|---|
| KEY | CompanyCode | CompanyCode | 2 |
| _ChartOfAccounts | _ChartOfAccounts | 1 | |
| _ControllingArea | _ControllingArea | 1 | |
| _Country | _Country | 1 | |
| _CountryChartOfAccounts | _CountryChartOfAccounts | 1 | |
| _CreditControlArea | _CreditControlArea | 1 | |
| _Currency | _Currency | 1 | |
| _FiscalYearVariant | _FiscalYearVariant | 1 | |
| _Language | _Language | 1 | |
| ChartOfAccounts | ChartOfAccounts | 2 | |
| CityName | CityName | 2 | |
| Company | Company | 1 | |
| CompanyCodeName | CompanyCodeName | 3 | |
| ControllingArea | ControllingArea | 3 | |
| Country | Country | 1 | |
| CountryChartOfAccounts | CountryChartOfAccounts | 1 | |
| CreditControlArea | CreditControlArea | 1 | |
| Currency | Currency | 2 | |
| FinancialManagementArea | FinancialManagementArea | 1 | |
| FiscalYearVariant | FiscalYearVariant | 1 | |
| Language | Language | 1 |
@VDM.viewType: #BASIC
@ObjectModel: { dataCategory: #VALUE_HELP,
representativeKey: 'CompanyCode',
usageType.sizeCategory: #S,
usageType.dataClass: #ORGANIZATIONAL,
usageType.serviceQuality: #A,
supportedCapabilities: [#VALUE_HELP_PROVIDER, #SEARCHABLE_ENTITY],
modelingPattern: #VALUE_HELP_PROVIDER }
@Analytics.technicalName: 'IFICC__VH1'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Search.searchable: true
@Consumption.ranked: true
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'Company Code'
define view entity I_CompanyCodeVH as select from t001 // direct select from T001 as field f_obsolete to be used in where condition
left outer to one join tka02 on tka02.bukrs = t001.bukrs
left outer to one join P_UserParameter
// on t001.mandt = P_UserParameter.mandt
on P_UserParameter.UserParameter = 'F_SHOW_OBSOLETE_T001'
// association [0..*] to I_ChartOfAccountsText as _ChartOfAccountsText on $projection.ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts
// association [0..*] to I_ChartOfAccountsText as _CountryChartOfAccountsText on $projection.CountryChartOfAccounts = _CountryChartOfAccountsText.ChartOfAccounts
// association [0..1] to I_ControllingArea as _ControllingAreaText on $projection.ControllingArea = _ControllingAreaText.ControllingArea
// association [0..*] to I_CreditControlAreaText as _CreditControlAreaText on $projection.CreditControlArea = _CreditControlAreaText.CreditControlArea
// ]--GENERATED
association [0..1] to I_Currency as _Currency on $projection.Currency = _Currency.Currency
association [0..1] to I_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 I_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 I_ChartOfAccounts as _CountryChartOfAccounts on $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts
association [0..1] to I_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
// association [0..*] to I_CompanyCodeHierNode as _CompanyCodeHierNode on $projection.CompanyCode = _CompanyCodeHierNode.CompanyCode
{
@ObjectModel.text.element: ['CompanyCodeName']
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
key t001.bukrs as CompanyCode,
@Semantics.text: true
@Search: { defaultSearchElement: true, ranking: #LOW }
@Search.fuzzinessThreshold: 0.8
t001.butxt as CompanyCodeName,
@ObjectModel.foreignKey.association: '_ControllingArea'
@Consumption.valueHelpDefinition: [ { entity: { name: 'I_ControllingAreaStdVH', element: 'ControllingArea' }
}]
@Search: { defaultSearchElement: true, ranking: #LOW }
tka02.kokrs as ControllingArea,
@Search: { defaultSearchElement: true, ranking: #LOW }
t001.ort01 as CityName,
@Search: { defaultSearchElement: true, ranking: #LOW }
@ObjectModel.foreignKey.association: '_Country'
t001.land1 as Country,
@Search: { defaultSearchElement: true, ranking: #LOW }
@ObjectModel.foreignKey.association: '_Currency'
t001.waers as Currency,
@ObjectModel.foreignKey.association: '_Language'
t001.spras as Language,
@Search: { defaultSearchElement: true, ranking: #LOW }
@ObjectModel.foreignKey.association: '_ChartOfAccounts'
t001.ktopl as ChartOfAccounts,
@Search: { defaultSearchElement: true, ranking: #LOW }
@ObjectModel.foreignKey.association: '_FiscalYearVariant'
t001.periv as FiscalYearVariant,
@Search: { defaultSearchElement: true, ranking: #LOW }
t001.rcomp as Company,
@ObjectModel.foreignKey.association: '_CreditControlArea'
t001.kkber as CreditControlArea,
@ObjectModel.foreignKey.association: '_CountryChartOfAccounts'
cast(t001.ktop2 as fis_ktop2 preserving type) as CountryChartOfAccounts,
t001.fikrs as FinancialManagementArea,
@Consumption.hidden: true
_ControllingArea,
@Consumption.hidden: true
_Country,
@Consumption.hidden: true
_Currency,
@Consumption.hidden: true
_Language,
@Consumption.hidden: true
_ChartOfAccounts,
@Consumption.hidden: true
_FiscalYearVariant,
@Consumption.hidden: true
_CreditControlArea,
@Consumption.hidden: true
_CountryChartOfAccounts
} where P_UserParameter.UserParameterValue = 'X' or t001.f_obsolete <> 'X'