Table

TrvExpTable

Expense reports

Holds expense report headers. A report is identified by its number and legal entity. It links to the employee, customer, vendor, project, dimensions and source document, and it shows the approval status and who generated it.

Table name
TrvExpTable
Module
Expense
Table group
WorksheetHeader
Table type
Regular
Data per company
No
Configuration key
Trv
Primary index
RecId
Replacement key
ExpNoIdx
Key fields
ExpNumber, LegalEntity
Model
Foundation

Fields (37)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ExpNumberNumber that identifies the expense report.String (20)
TrvExpNumber
YesTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 9 more
LegalEntityLegal entity the report belongs to.Int64
LegalEntity
NoCompanyInfo.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 12 more
AntiCorruptionApproverFlagYes/No flag for the anti-corruption statement on the approver side.low confidenceEnum
NoYes (enum)
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
AntiCorruptionSubmitterFlagYes/No flag for the anti-corruption statement on the submitter side.low confidenceEnum
NoYes (enum)
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
ApprovalStatusStatus of the report, such as draft, submitted, approved or rejected.Enum
TrvAppStatus (enum)
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoTrvExpTableBiEntity
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoTrvCopilotAutomationReportEntityTrvCopilotAutomationReportEntityTrvExpMobileReportEntityand 6 more
CreatedTransactionIdA system number for the database transaction that created the record. System field.Int64
CreatedTransactionId
NoTrvExpTableBiEntity
CreatingWorkerEmployee who created the report.Int64
TrvHcmWorkerRecId
YesHcmWorker.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 4 more
CustAccountCustomer account linked to the report.String (20)
CustAccount
NoCustTable.AccountNumTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
DefaultDimensionDefault financial dimension values for the report.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 2 more
DestinationTravel location linked to the report.String (255)
TrvDestination
NoTrvDestinations.DestinationTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
FinalApproverWorker who gave the final approval.Int64
HcmWorkerRecId
NoHcmWorker.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
FinTagFinancial tag linked to the report.Int64
FinTagRecId
NoFinTag.RecIdNone
InterCompanyLELegal entity for which the expenses are reported.String
TrvLegalEntity
YesCompanyInfo.DataAreaTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
InvoiceIdInvoice ID of the expense.String (20)
TrvExpInvoiceId
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoTrvExpTableBiEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoTrvExpTableBiEntity
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field.Int64
ModifiedTransactionId
NoTrvExpTableBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PaymentDateDate of the payment.Date
TrvDateStd
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
PaymentVoucherVoucher that identifies the payment.String (200)
PaymId
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
PostedDateDate the report was posted.Date
TrvDateStd
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
PreApprovalNumberNumber of the pre-approval for the expense.String (20)
TrvPreApprovalNumber
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
ProjIdProject linked to the report.String (20)
ProjId
NoProjTable.ProjIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntityand 2 more
ProjStatusIdProject line property set on the report.String
ProjLinePropertyId
NoProjLineProperty.LinePropertyIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntityand 2 more
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoTrvExpTableBiEntityTrvExpMobileReportApprovalEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoTrvExpTableBiEntity
ReferenceDataAreaIdCompany the report belongs to.String
DataAreaId
NoCompanyInfo.DataAreaTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
SourceDocumentHeaderRecord ID of the linked source document header.Int64
RefRecId
NoSourceDocumentHeader.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
SourceDocumentLineRecord ID of the linked source document line.Int64
RefRecId
NoSourceDocumentLine.RecIdTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
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
TrvExpGeneratedBySource that created the report: a user, the Expense Agent or a mobile user.Enum
TrvExpGeneratedBy (enum)
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntity
Txt1Description of the report.String (1000)
ItemFreeTxt
NoTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more
Txt2Purpose of the report, taken from the list of expense purposes.String (60)
TrvTravelTxtEDT
NoTrvTravelTxt.TxtTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 4 more
VendAccountVendor account linked to the report.String (20)
VendAccount
NoVendTable.AccountNumTrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more

Indexes (7)

Relations (16)

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

  • CompanyInfo → CompanyInfo

    Join on ReferenceDataAreaId = CompanyInfo.DataArea

    Many TrvExpTable records → zero or one CompanyInfo record

  • CustTable → CustTable

    Join on ReferenceDataAreaId = CustTable.dataAreaId, CustAccount = CustTable.AccountNum

    Many TrvExpTable records → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many TrvExpTable records → zero or one DimensionAttributeValueSet record

  • ExpensePurpose → TrvTravelTxt

    Join on Txt2 = TrvTravelTxt.Txt, ReferenceDataAreaId = TrvTravelTxt.dataAreaId

    Many TrvExpTable records → zero or one TrvTravelTxt record

  • LegalEntity → CompanyInfo

    Join on LegalEntity = CompanyInfo.RecId

    Many TrvExpTable records → exactly one CompanyInfo record

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Zero or one TrvExpTable record → zero or one SourceDocumentHeader record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many TrvExpTable records → zero or one SourceDocumentLine record

  • TrvDestinations → TrvDestinations

    Join on ReferenceDataAreaId = TrvDestinations.dataAreaId, Destination = TrvDestinations.Destination

    Many TrvExpTable records → zero or one TrvDestinations record

  • TrvHcmWorker → HcmWorker

    Join on CreatingWorker = HcmWorker.RecId

    Many TrvExpTable records → exactly one HcmWorker record

  • VendTable → VendTable

    Join on ReferenceDataAreaId = VendTable.dataAreaId, VendAccount = VendTable.AccountNum

    Many TrvExpTable records → zero or one VendTable record

  • InterCompanyLE → CompanyInfo

    Join on InterCompanyLE = CompanyInfo.DataArea

    Many TrvExpTable records → zero or one CompanyInfo record

  • FinalApprover → HcmWorker

    Join on FinalApprover = HcmWorker.RecId

    Many TrvExpTable records → exactly one HcmWorker record

  • TrvExpTable_self → TrvExpTable

    Join on ExpNumber = TrvExpTable.ExpNumber

    Cardinality not set in the metadata.

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many TrvExpTable records → zero or one FinTag record

  • ProjLineProperty → ProjLineProperty

    Join on InterCompanyLE = ProjLineProperty.dataAreaId, ProjStatusId = ProjLineProperty.LinePropertyId

    Many TrvExpTable records → zero or one ProjLineProperty record

  • ProjTable_ProjId → ProjTable

    Join on InterCompanyLE = ProjTable.dataAreaId, ProjId = ProjTable.ProjId

    Many TrvExpTable records → zero or one ProjTable record

Get this data out

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

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

Email sales@drdynamics.co.uk