I_GLAcctInCoCodeTP

DDL: I_GLACCTINCOCODETP Type: view_entity TRANSACTIONAL Package: ODATA_MANAGE_GLACCOUNT

G/L Account in Company Code (Draft 2.0)

I_GLAcctInCoCodeTP is a Transactional CDS View that provides data about "G/L Account in Company Code (Draft 2.0)" in SAP S/4HANA. It reads from 1 data source (I_GLAcctInCoCode) and exposes 73 fields with key fields ChartOfAccounts, GLAccount, CompanyCode. It has 21 associations to related views. Part of development package ODATA_MANAGE_GLACCOUNT.

Data Sources (1)

SourceAliasJoin Type
I_GLAcctInCoCode I_GLAcctInCoCode from

Associations (21)

CardinalityTargetAliasCondition
[1..1] I_GLAcctInChtAcctsTP _GLAcctInChtAcctsTP $projection.ChartOfAccounts = _GLAcctInChtAcctsTP.ChartOfAccounts and $projection.GLAccount = _GLAcctInChtAcctsTP.GLAccount
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCodeForEdit = _CompanyCode.CompanyCode
[1..1] I_User _User $projection.CreatedByUser = _User.UserID
[0..1] I_InflationKey _InflationKey $projection.country = _InflationKey.Country and $projection.GLAcctInflationKey = _InflationKey.GLAcctInflationKey
[0..1] I_PlanningLevel _PlanningLevel $projection.PlanningLevel = _PlanningLevel.PlanningLevel
[0..1] I_Housebank _HouseBank $projection.CompanyCodeForEdit = _HouseBank.CompanyCode and $projection.HouseBank = _HouseBank.HouseBank
[0..1] I_HouseBankAccount _HouseBankAccount $projection.CompanyCodeForEdit = _HouseBankAccount.CompanyCode and $projection.HouseBank = _HouseBankAccount.HouseBank and $projection.HouseBankAccount = _HouseBankAccount.HouseBankAccount
[0..1] I_Reconciliationaccttype _Reconciliationaccttype $projection.ReconciliationAccountType = _Reconciliationaccttype.ReconciliationAccountType
[0..1] I_InterestCalculationCode _InterestCalculationCode $projection.InterestCalculationCode = _InterestCalculationCode.InterestCalculationCode
[0..1] I_AcctgDocItmDspSqncRule _AcctgDocItmDspSqncRule $projection.AcctgDocItmDisplaySequenceRule = _AcctgDocItmDspSqncRule.AcctgDocItmDisplaySequenceRule
[0..1] I_GLAccountToleranceGroup _GLAccountToleranceGroup $projection.CompanyCodeForEdit = _GLAccountToleranceGroup.CompanyCode and $projection.APARToleranceGroup = _GLAccountToleranceGroup.APARToleranceGroup
[0..1] I_JointVentureRecovery _JointVentureRecovery $projection.JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode and $projection.CompanyCodeForEdit = _JointVentureRecovery.CompanyCode
[0..1] I_FieldStatusGroup _FieldStatusGroup $projection.fieldstatusvariant = _FieldStatusGroup.FieldStatusVariant and $projection.FieldStatusGroup = _FieldStatusGroup.FieldStatusGroup
[0..1] I_MultiCurrencyAccounting _MultiCurrencyAccounting $projection.MultiCurrencyAccountingCode = _MultiCurrencyAccounting.MultiCurrencyAccountingCode
[0..1] I_Currency _GLAccountCurrency $projection.GLAccountCurrency = _GLAccountCurrency.Currency
[0..1] I_TaxCategory _TaxCategory $projection.CompanyCodeForEdit = _TaxCategory.CompanyCode and $projection.TaxCategory = _TaxCategory.TaxCategory
[0..1] I_GLAccountInChartOfAccounts _AlternativeGLAccount $projection.CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts and $projection.AlternativeGLAccount = _AlternativeGLAccount.GLAccount
[0..1] I_GLAcctInDefaultLanguageText _GLAcctTxtInMaintLang $projection.ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts and $projection.GLAccount = _GLAcctTxtInMaintLang.GLAccount and $projection.MaintenanceLanguage = _GLAcctTxtInMaintLang.Language
[0..1] I_FieldStatusVariant _FieldStatusVariant $projection.fieldstatusvariant = _FieldStatusVariant.FieldStatusVariant
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.CountryChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
[0..1] I_GLAccount _GLAccount $projection.CompanyCode = _GLAccount.CompanyCode and $projection.GLAccount = _GLAccount.GLAccount

Annotations (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label G/L Account in Company Code (Draft 2.0) view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.writeDraftPersistence SKB1_DRAFT_20 view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view
VDM.viewType #TRANSACTIONAL view

Fields (73)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts I_GLAcctInCoCode ChartOfAccounts Node Class
KEY GLAccount I_GLAcctInCoCode GLAccount General Ledger
KEY CompanyCode I_GLAcctInCoCode CompanyCode Receiver Company Code
CompanyCodeForEdit I_GLAcctInCoCode CompanyCode Receiver Company Code
AuthorizationGroup I_GLAcctInCoCode AuthorizationGroup AuthorizGroup
AccountingClerk I_GLAcctInCoCode AccountingClerk Clerk Abbrev.
LastInterestCalcRunDate I_GLAcctInCoCode LastInterestCalcRunDate Last Int. Calc.
CreationDate I_GLAcctInCoCode CreationDate Time Stamp
CreatedByUser I_GLAcctInCoCode CreatedByUser User Name
PlanningLevel I_GLAcctInCoCode PlanningLevel Planning Level
HouseBank I_GLAcctInCoCode HouseBank House Bank
HouseBankAccount I_GLAcctInCoCode HouseBankAccount House Bank Account
ExchRateDifferencesAccountDetn I_GLAcctInCoCode ExchRateDifferencesAccountDetn E/R Diff. Key
ReconciliationAccountType I_GLAcctInCoCode ReconciliationAccountType Reconcil. ID
TaxCategory I_GLAcctInCoCode TaxCategory Tax Code
InterestCalculationCode I_GLAcctInCoCode InterestCalculationCode Interest Indic.
GLAccountCurrency I_GLAcctInCoCode GLAccountCurrency Currency
IsManagedExternally I_GLAcctInCoCode IsManagedExternally Is Managed Ext.
IsAutomaticallyPosted I_GLAcctInCoCode IsAutomaticallyPosted Auto. Posting
LineItemDisplayIsEnabled I_GLAcctInCoCode LineItemDisplayIsEnabled Line Items
SupplementIsAllowed I_GLAcctInCoCode SupplementIsAllowed Supplement
IsOpenItemManaged I_GLAcctInCoCode IsOpenItemManaged Open Item Management
InterestCalculationDate I_GLAcctInCoCode InterestCalculationDate Last Key Date
IntrstCalcFrequencyInMonths I_GLAcctInCoCode IntrstCalcFrequencyInMonths Int.Calc.Freq.
AcctgDocItmDisplaySequenceRule I_GLAcctInCoCode AcctgDocItmDisplaySequenceRule Sort key
AlternativeGLAccount I_GLAcctInCoCode AlternativeGLAccount Group Account
sakanendasAlternativeGLAccountExternal
JointVentureRecoveryCode I_GLAcctInCoCode JointVentureRecoveryCode Recovery Ind.
CommitmentItem I_GLAcctInCoCode CommitmentItem Commitment item
TaxCodeIsRequired I_GLAcctInCoCode TaxCodeIsRequired Pstg w/o tax allowed
BalanceHasLocalCurrency I_GLAcctInCoCode BalanceHasLocalCurrency Balances in LC
ValuationGroup I_GLAcctInCoCode ValuationGroup Valuation Group
APARToleranceGroup I_GLAcctInCoCode APARToleranceGroup Tolerance Group
AccountIsBlockedForPosting I_GLAcctInCoCode AccountIsBlockedForPosting Posting Block
AccountIsMarkedForDeletion I_GLAcctInCoCode AccountIsMarkedForDeletion Deletion Flag
ClearingIsLedgerGroupSpecific I_GLAcctInCoCode ClearingIsLedgerGroupSpecific OI Mgmt by LedgerGrp
IsCashFlowAccount I_GLAcctInCoCode IsCashFlowAccount Rel.Cash Flow
GLAcctInflationKey I_GLAcctInCoCode GLAcctInflationKey Inflation key
FieldStatusGroup I_GLAcctInCoCode FieldStatusGroup Field Status Grp
MultiCurrencyAccountingCode I_GLAcctInCoCode MultiCurrencyAccountingCode MCA Key
ReconciliationAcctIsChangeable I_GLAcctInCoCode ReconciliationAcctIsChangeable Rec.Act Ready
IsExtendedOpenItemManaged I_GLAcctInCoCode IsExtendedOpenItemManaged Extended OI Mgmt
MaintenanceLanguage chtaccts MaintenanceLanguage Maint. Language
GLAccountForEdit I_GLAcctInCoCode GLAccount General Ledger
GLAccountName _GLAcctTxtInMaintLang GLAccountName Short Text
GLAccountLongName _GLAcctTxtInMaintLang GLAccountLongName Long Text
ChartOfAccountsForEdit I_GLAcctInCoCode ChartOfAccounts Node Class
CountryChartOfAccounts I_GLAcctInCoCode CountryChartOfAccounts Chart of Accts
Country _CompanyCode Country Venue: Ctry/Reg
ControllingArea _CompanyCode ControllingArea Controlling Area
FieldStatusVariant _CompanyCode FieldStatusVariant Fld stat.var.
CompanyCodeName _CompanyCode CompanyCodeName Company Name
_AcctgDocItmDspSqncRule _AcctgDocItmDspSqncRule
_AlternativeGLAccount _AlternativeGLAccount
_CompanyCode _CompanyCode
_FieldStatusGroup _FieldStatusGroup
_GLAccountCurrency _GLAccountCurrency
_GLAccountToleranceGroup _GLAccountToleranceGroup
_GLAcctTxtInMaintLang _GLAcctTxtInMaintLang
_HouseBank _HouseBank
_HouseBankAccount _HouseBankAccount
_InflationKey _InflationKey
_InterestCalculationCode _InterestCalculationCode
_JointVentureRecovery _JointVentureRecovery
_MultiCurrencyAccounting _MultiCurrencyAccounting
_PlanningLevel _PlanningLevel
_Reconciliationaccttype _Reconciliationaccttype
_TaxCategory _TaxCategory
_User _User
_FieldStatusVariant _FieldStatusVariant
_ChartOfAccounts _ChartOfAccounts
_GLAcctInChtAcctsTP _GLAcctInChtAcctsTP
_GLAccount _GLAccount

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_GLAcctInCoCodeTP.
-- 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_GLAcctInCoCodeTP AS
SELECT
  I_GLAcctInCoCode.ChartOfAccounts AS ChartOfAccounts,
  I_GLAcctInCoCode.GLAccount AS GLAccount,
  I_GLAcctInCoCode.CompanyCode AS CompanyCode,
  I_GLAcctInCoCode.CompanyCode AS CompanyCodeForEdit,
  I_GLAcctInCoCode.AuthorizationGroup AS AuthorizationGroup,
  I_GLAcctInCoCode.AccountingClerk AS AccountingClerk,
  I_GLAcctInCoCode.LastInterestCalcRunDate AS LastInterestCalcRunDate,
  I_GLAcctInCoCode.CreationDate AS CreationDate,
  I_GLAcctInCoCode.CreatedByUser AS CreatedByUser,
  I_GLAcctInCoCode.PlanningLevel AS PlanningLevel,
  I_GLAcctInCoCode.HouseBank AS HouseBank,
  I_GLAcctInCoCode.HouseBankAccount AS HouseBankAccount,
  I_GLAcctInCoCode.ExchRateDifferencesAccountDetn AS ExchRateDifferencesAccountDetn,
  I_GLAcctInCoCode.ReconciliationAccountType AS ReconciliationAccountType,
  I_GLAcctInCoCode.TaxCategory AS TaxCategory,
  I_GLAcctInCoCode.InterestCalculationCode AS InterestCalculationCode,
  I_GLAcctInCoCode.GLAccountCurrency AS GLAccountCurrency,
  I_GLAcctInCoCode.IsManagedExternally AS IsManagedExternally,
  I_GLAcctInCoCode.IsAutomaticallyPosted AS IsAutomaticallyPosted,
  I_GLAcctInCoCode.LineItemDisplayIsEnabled AS LineItemDisplayIsEnabled,
  I_GLAcctInCoCode.SupplementIsAllowed AS SupplementIsAllowed,
  I_GLAcctInCoCode.IsOpenItemManaged AS IsOpenItemManaged,
  I_GLAcctInCoCode.InterestCalculationDate AS InterestCalculationDate,
  I_GLAcctInCoCode.IntrstCalcFrequencyInMonths AS IntrstCalcFrequencyInMonths,
  I_GLAcctInCoCode.AcctgDocItmDisplaySequenceRule AS AcctgDocItmDisplaySequenceRule,
  I_GLAcctInCoCode.AlternativeGLAccount AS AlternativeGLAccount,
  case when I_GLAcctInCoCode.AlternativeGLAccount is not null and _GroupAccount.sakan is null then cast ( I_GLAcctInCoCode.AlternativeGLAccount as sakan ) else _GroupAccount.sakan end as AlternativeGLAccountExternal AS sakanendasAlternativeGLAccountExternal,
  I_GLAcctInCoCode.JointVentureRecoveryCode AS JointVentureRecoveryCode,
  I_GLAcctInCoCode.CommitmentItem AS CommitmentItem,
  I_GLAcctInCoCode.TaxCodeIsRequired AS TaxCodeIsRequired,
  I_GLAcctInCoCode.BalanceHasLocalCurrency AS BalanceHasLocalCurrency,
  I_GLAcctInCoCode.ValuationGroup AS ValuationGroup,
  I_GLAcctInCoCode.APARToleranceGroup AS APARToleranceGroup,
  I_GLAcctInCoCode.AccountIsBlockedForPosting AS AccountIsBlockedForPosting,
  I_GLAcctInCoCode.AccountIsMarkedForDeletion AS AccountIsMarkedForDeletion,
  I_GLAcctInCoCode.ClearingIsLedgerGroupSpecific AS ClearingIsLedgerGroupSpecific,
  I_GLAcctInCoCode.IsCashFlowAccount AS IsCashFlowAccount,
  I_GLAcctInCoCode.GLAcctInflationKey AS GLAcctInflationKey,
  I_GLAcctInCoCode.FieldStatusGroup AS FieldStatusGroup,
  I_GLAcctInCoCode.MultiCurrencyAccountingCode AS MultiCurrencyAccountingCode,
  I_GLAcctInCoCode.ReconciliationAcctIsChangeable AS ReconciliationAcctIsChangeable,
  I_GLAcctInCoCode.IsExtendedOpenItemManaged AS IsExtendedOpenItemManaged,
  chtaccts.MaintenanceLanguage AS MaintenanceLanguage,
  I_GLAcctInCoCode.GLAccount AS GLAccountForEdit,
  _GLAcctTxtInMaintLang.GLAccountName AS GLAccountName,
  _GLAcctTxtInMaintLang.GLAccountLongName AS GLAccountLongName,
  I_GLAcctInCoCode.ChartOfAccounts AS ChartOfAccountsForEdit,
  I_GLAcctInCoCode.CountryChartOfAccounts AS CountryChartOfAccounts,
  _CompanyCode.Country AS Country,
  _CompanyCode.ControllingArea AS ControllingArea,
  _CompanyCode.FieldStatusVariant AS FieldStatusVariant,
  _CompanyCode.CompanyCodeName AS CompanyCodeName
FROM I_GLAcctInCoCode
LEFT OUTER JOIN I_GLAcctInChtAcctsTP AS _GLAcctInChtAcctsTP ON ChartOfAccounts = _GLAcctInChtAcctsTP.ChartOfAccounts AND GLAccount = _GLAcctInChtAcctsTP.GLAccount  -- association [1..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCodeForEdit = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON CreatedByUser = _User.UserID  -- association [1..1]
LEFT OUTER JOIN I_InflationKey AS _InflationKey ON country = _InflationKey.Country AND GLAcctInflationKey = _InflationKey.GLAcctInflationKey  -- association [0..1]
LEFT OUTER JOIN I_PlanningLevel AS _PlanningLevel ON PlanningLevel = _PlanningLevel.PlanningLevel  -- association [0..1]
LEFT OUTER JOIN I_Housebank AS _HouseBank ON CompanyCodeForEdit = _HouseBank.CompanyCode AND HouseBank = _HouseBank.HouseBank  -- association [0..1]
LEFT OUTER JOIN I_HouseBankAccount AS _HouseBankAccount ON CompanyCodeForEdit = _HouseBankAccount.CompanyCode AND HouseBank = _HouseBankAccount.HouseBank AND HouseBankAccount = _HouseBankAccount.HouseBankAccount  -- association [0..1]
LEFT OUTER JOIN I_Reconciliationaccttype AS _Reconciliationaccttype ON ReconciliationAccountType = _Reconciliationaccttype.ReconciliationAccountType  -- association [0..1]
LEFT OUTER JOIN I_InterestCalculationCode AS _InterestCalculationCode ON InterestCalculationCode = _InterestCalculationCode.InterestCalculationCode  -- association [0..1]
LEFT OUTER JOIN I_AcctgDocItmDspSqncRule AS _AcctgDocItmDspSqncRule ON AcctgDocItmDisplaySequenceRule = _AcctgDocItmDspSqncRule.AcctgDocItmDisplaySequenceRule  -- association [0..1]
LEFT OUTER JOIN I_GLAccountToleranceGroup AS _GLAccountToleranceGroup ON CompanyCodeForEdit = _GLAccountToleranceGroup.CompanyCode AND APARToleranceGroup = _GLAccountToleranceGroup.APARToleranceGroup  -- association [0..1]
LEFT OUTER JOIN I_JointVentureRecovery AS _JointVentureRecovery ON JointVentureRecoveryCode = _JointVentureRecovery.JointVentureRecoveryCode AND CompanyCodeForEdit = _JointVentureRecovery.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_FieldStatusGroup AS _FieldStatusGroup ON fieldstatusvariant = _FieldStatusGroup.FieldStatusVariant AND FieldStatusGroup = _FieldStatusGroup.FieldStatusGroup  -- association [0..1]
LEFT OUTER JOIN I_MultiCurrencyAccounting AS _MultiCurrencyAccounting ON MultiCurrencyAccountingCode = _MultiCurrencyAccounting.MultiCurrencyAccountingCode  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _GLAccountCurrency ON GLAccountCurrency = _GLAccountCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_TaxCategory AS _TaxCategory ON CompanyCodeForEdit = _TaxCategory.CompanyCode AND TaxCategory = _TaxCategory.TaxCategory  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _AlternativeGLAccount ON CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts AND AlternativeGLAccount = _AlternativeGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_GLAcctInDefaultLanguageText AS _GLAcctTxtInMaintLang ON ChartOfAccounts = _GLAcctTxtInMaintLang.ChartOfAccounts AND GLAccount = _GLAcctTxtInMaintLang.GLAccount AND MaintenanceLanguage = _GLAcctTxtInMaintLang.Language  -- association [0..1]
LEFT OUTER JOIN I_FieldStatusVariant AS _FieldStatusVariant ON fieldstatusvariant = _FieldStatusVariant.FieldStatusVariant  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON CountryChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_GLAccount AS _GLAccount ON CompanyCode = _GLAccount.CompanyCode AND GLAccount = _GLAccount.GLAccount  -- association [0..1]
;