Table

LedgerInterCompany

Intercompany accounting

Sets up intercompany accounting between a pair of companies. The key is the originating and destination company. It stores the ledger accounts for each side, the journal to use, and which company posts items such as cash discount and exchange gain or loss.

Table name
LedgerInterCompany
Module
General ledger
Table group
Group
Table type
Regular
Data per company
No
Configuration key
LedgerAdvIntercompanyAccounting
Primary index
CompanyIdx
Replacement key
None
Key fields
OriginatingCompany, DestinationCompany
Model
Foundation

Fields (31)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
OriginatingCompanyCompany that starts the intercompany transaction.String
SelectableDataArea
YesLedgerInterCompanyAccountEntity
DestinationCompanyCompany that receives the intercompany transaction. It also identifies the company of the journal name.String
SelectableDataArea
YesLedgerJournalName.dataAreaIdLedgerInterCompanyAccountEntity
AssetDestinationClearingCreditLedgerDimensionClearing credit account for fixed assets in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetDestinationClearingDebitLedgerDimensionClearing debit account for fixed assets in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetDestinationCreditLedgerDimensionCredit account for fixed assets in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetDestinationDebitLedgerDimensionDebit account for fixed assets in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetOriginatingClearingCreditLedgerDimensionClearing credit account for fixed assets in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetOriginatingClearingDebitLedgerDimensionClearing debit account for fixed assets in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetOriginatingCreditLedgerDimensionCredit account for fixed assets in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
AssetOriginatingDebitLedgerDimensionDebit account for fixed assets in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
CompanyCompany (legal entity) identifier for the record.low confidenceString
SelectableDataArea
NoNone
CreditLedgerDimensionCredit account, stored as a dimension combination.low confidenceInt64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
CustCashDiscPostOptionFor customers, sets whether cash discount is posted in the invoice company or the payment company.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity
CustCurrencyExchPostOptionFor customers, sets whether currency exchange gain or loss is posted in the invoice company or the payment company.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity
CustPostFineOption_BRFor customers, sets which company posts the fine; used for Brazil.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity
CustPostFinInterestOption_BRFor customers, sets which company posts the interest; used for Brazil.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity
DebitLedgerDimensionDebit account, stored as a dimension combination.low confidenceInt64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdNone
DestinationCreditLedgerDimensionCredit account used in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdLedgerInterCompanyAccountEntity
DestinationDebitLedgerDimensionDebit account used in the destination company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdLedgerInterCompanyAccountEntity
JournalNameJournal name to use for the intercompany entries, taken from the destination company.String
LedgerJournalNameIdIntercompany
YesLedgerJournalName.JournalNameLedgerInterCompanyAccountEntity
OriginatingCreditLedgerDimensionCredit account used in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdLedgerInterCompanyAccountEntity
OriginatingDebitLedgerDimensionDebit account used in the originating company.Int64
LedgerDimensionDefaultAccount
NoDimensionAttributeValueCombination.RecIdLedgerInterCompanyAccountEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
VendCashDiscPostOptionFor vendors, sets whether cash discount is posted in the invoice company or the payment company.Enum
CustVendSettleCompanyPostOption (enum)
NoNone
VendCurrencyExchPostOptionFor vendors, sets whether currency exchange gain or loss is posted in the invoice company or the payment company.Enum
CustVendSettleCompanyPostOption (enum)
NoNone
VendPostFineOption_BRFor vendors, sets which company posts the fine; used for Brazil.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity
VendPostFinInterestOption_BRFor vendors, sets which company posts the interest; used for Brazil.Enum
CustVendSettleCompanyPostOption (enum)
NoLedgerInterCompanyAccountEntity

Indexes (5)

Relations (17)

Each relation joins LedgerInterCompany to another table on the fields shown.

  • OriginatingCreditLedgerDimension → DimensionAttributeValueCombination

    Join on OriginatingCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • OriginatingDebitLedgerDimension → DimensionAttributeValueCombination

    Join on OriginatingDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • DestinationCreditLedgerDimension → DimensionAttributeValueCombination

    Join on DestinationCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • DestinationDebitLedgerDimension → DimensionAttributeValueCombination

    Join on DestinationDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • JournalName → LedgerJournalName

    Join on DestinationCompany = LedgerJournalName.dataAreaId, JournalName = LedgerJournalName.JournalName

    Many LedgerInterCompany records → exactly one LedgerJournalName record

  • OriginatingCompany → DataArea

    Join on OriginatingCompany = DataArea.id, DataArea.isVirtual = null

    Zero or one LedgerInterCompany record → exactly one DataArea record

  • DestinationCompany → DataArea

    Join on DestinationCompany = DataArea.id, DataArea.isVirtual = null

    Zero or one LedgerInterCompany record → exactly one DataArea record

  • CreditLedgerDimension → DimensionAttributeValueCombination

    Join on CreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • DebitLedgerDimension → DimensionAttributeValueCombination

    Join on DebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetOriginatingCreditLedgerDimension → DimensionAttributeValueCombination

    Join on AssetOriginatingCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetOriginatingDebitLedgerDimension → DimensionAttributeValueCombination

    Join on AssetOriginatingDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetDestinationCreditLedgerDimension → DimensionAttributeValueCombination

    Join on AssetDestinationCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetDestinationDebitLedgerDimension → DimensionAttributeValueCombination

    Join on AssetDestinationDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetOriginatingClearingCreditLedgerDimension → DimensionAttributeValueCombination

    Join on AssetOriginatingClearingCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetOriginatingClearingDebitLedgerDimension → DimensionAttributeValueCombination

    Join on AssetOriginatingClearingDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetDestinationClearingCreditLedgerDimension → DimensionAttributeValueCombination

    Join on AssetDestinationClearingCreditLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

  • AssetDestinationClearingDebitLedgerDimension → DimensionAttributeValueCombination

    Join on AssetDestinationClearingDebitLedgerDimension = DimensionAttributeValueCombination.RecId

    Many LedgerInterCompany records → zero or one DimensionAttributeValueCombination record

Get this data out

Tables are not exposed directly. These public entities read from LedgerInterCompany; use one of them in Power BI, Power Platform or a data management project.

Need help with LedgerInterCompany in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk