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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ExpNumberNumber that identifies the expense report. | String (20)TrvExpNumber | Yes | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 9 more | |
LegalEntityLegal entity the report belongs to. | Int64LegalEntity | No | CompanyInfo.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 12 more |
AntiCorruptionApproverFlagYes/No flag for the anti-corruption statement on the approver side.low confidence | EnumNoYes (enum) | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
AntiCorruptionSubmitterFlagYes/No flag for the anti-corruption statement on the submitter side.low confidence | EnumNoYes (enum) | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
ApprovalStatusStatus of the report, such as draft, submitted, approved or rejected. | EnumTrvAppStatus (enum) | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | TrvExpTableBiEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | TrvCopilotAutomationReportEntityTrvCopilotAutomationReportEntityTrvExpMobileReportEntityand 6 more | |
CreatedTransactionIdA system number for the database transaction that created the record. System field. | Int64CreatedTransactionId | No | TrvExpTableBiEntity | |
CreatingWorkerEmployee who created the report. | Int64TrvHcmWorkerRecId | Yes | HcmWorker.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 4 more |
CustAccountCustomer account linked to the report. | String (20)CustAccount | No | CustTable.AccountNum | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
DefaultDimensionDefault financial dimension values for the report. | Int64LedgerDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 2 more |
DestinationTravel location linked to the report. | String (255)TrvDestination | No | TrvDestinations.Destination | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
FinalApproverWorker who gave the final approval. | Int64HcmWorkerRecId | No | HcmWorker.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
FinTagFinancial tag linked to the report. | Int64FinTagRecId | No | FinTag.RecId | None |
InterCompanyLELegal entity for which the expenses are reported. | StringTrvLegalEntity | Yes | CompanyInfo.DataArea | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
InvoiceIdInvoice ID of the expense. | String (20)TrvExpInvoiceId | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | TrvExpTableBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | TrvExpTableBiEntity | |
ModifiedTransactionIdA system number for the database transaction that last changed the record. System field. | Int64ModifiedTransactionId | No | TrvExpTableBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentDateDate of the payment. | DateTrvDateStd | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
PaymentVoucherVoucher that identifies the payment. | String (200)PaymId | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
PostedDateDate the report was posted. | DateTrvDateStd | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
PreApprovalNumberNumber of the pre-approval for the expense. | String (20)TrvPreApprovalNumber | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
ProjIdProject linked to the report. | String (20)ProjId | No | ProjTable.ProjId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntityand 2 more |
ProjStatusIdProject line property set on the report. | StringProjLinePropertyId | No | ProjLineProperty.LinePropertyId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntityand 2 more |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | TrvExpTableBiEntityTrvExpMobileReportApprovalEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | TrvExpTableBiEntity | |
ReferenceDataAreaIdCompany the report belongs to. | StringDataAreaId | No | CompanyInfo.DataArea | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
SourceDocumentHeaderRecord ID of the linked source document header. | Int64RefRecId | No | SourceDocumentHeader.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
SourceDocumentLineRecord ID of the linked source document line. | Int64RefRecId | No | SourceDocumentLine.RecId | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TrvExpGeneratedBySource that created the report: a user, the Expense Agent or a mobile user. | EnumTrvExpGeneratedBy (enum) | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpenseAgentReportEntity | |
Txt1Description of the report. | String (1000)ItemFreeTxt | No | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more | |
Txt2Purpose of the report, taken from the list of expense purposes. | String (60)TrvTravelTxtEDT | No | TrvTravelTxt.Txt | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 4 more |
VendAccountVendor account linked to the report. | String (20)VendAccount | No | VendTable.AccountNum | TrvCopilotAutomationReportEntityTrvExpMobileReportEntityTrvExpTableMobileEntityand 3 more |
Indexes (7)
ExpNoIdxReplacement keyUnique, alternate key.
EmpExpIdxLegalEntity,CreatingWorker,ExpNumberUnique, alternate key.
FK_DimensionAttributeValueSet_TrvExpTablNot unique.
TrvCreatingWorkerIdxNot unique.
SourceDocumentHeaderIdxSourceDocumentHeader,PartitionUnique.
CreatedTransactionIdIdxNot unique.
TrvAgentWorkerIdxCreatingWorker,TrvExpGeneratedBy,LegalEntityNot unique.
Relations (16)
Each relation joins TrvExpTable to another table on the fields shown.
CompanyInfo→CompanyInfoJoin on
ReferenceDataAreaId = CompanyInfo.DataAreaMany TrvExpTable records → zero or one CompanyInfo record
CustTable→CustTableJoin on
ReferenceDataAreaId = CustTable.dataAreaId,CustAccount = CustTable.AccountNumMany TrvExpTable records → zero or one CustTable record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany TrvExpTable records → zero or one DimensionAttributeValueSet record
ExpensePurpose→TrvTravelTxtJoin on
Txt2 = TrvTravelTxt.Txt,ReferenceDataAreaId = TrvTravelTxt.dataAreaIdMany TrvExpTable records → zero or one TrvTravelTxt record
LegalEntity→CompanyInfoJoin on
LegalEntity = CompanyInfo.RecIdMany TrvExpTable records → exactly one CompanyInfo record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdZero or one TrvExpTable record → zero or one SourceDocumentHeader record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdMany TrvExpTable records → zero or one SourceDocumentLine record
TrvDestinations→TrvDestinationsJoin on
ReferenceDataAreaId = TrvDestinations.dataAreaId,Destination = TrvDestinations.DestinationMany TrvExpTable records → zero or one TrvDestinations record
TrvHcmWorker→HcmWorkerJoin on
CreatingWorker = HcmWorker.RecIdMany TrvExpTable records → exactly one HcmWorker record
VendTable→VendTableJoin on
ReferenceDataAreaId = VendTable.dataAreaId,VendAccount = VendTable.AccountNumMany TrvExpTable records → zero or one VendTable record
InterCompanyLE→CompanyInfoJoin on
InterCompanyLE = CompanyInfo.DataAreaMany TrvExpTable records → zero or one CompanyInfo record
FinalApprover→HcmWorkerJoin on
FinalApprover = HcmWorker.RecIdMany TrvExpTable records → exactly one HcmWorker record
TrvExpTable_self→TrvExpTableJoin on
ExpNumber = TrvExpTable.ExpNumberCardinality not set in the metadata.
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany TrvExpTable records → zero or one FinTag record
ProjLineProperty→ProjLinePropertyJoin on
InterCompanyLE = ProjLineProperty.dataAreaId,ProjStatusId = ProjLineProperty.LinePropertyIdMany TrvExpTable records → zero or one ProjLineProperty record
ProjTable_ProjId→ProjTableJoin on
InterCompanyLE = ProjTable.dataAreaId,ProjId = ProjTable.ProjIdMany 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.
TrvCopilotAutomationReportEntity· 27 fields from this tableTrvExpMobileReportEntity· 27 fields from this tableTrvExpTableMobileEntity· 25 fields from this tableTrvExpenseAgentReportEntity· 27 fields from this tableTrvExpTableBiEntity· 31 fields from this tableTrvExpTransMobileV2Entity· 1 field from this tableTrvCopilotAutomationExpenseEntity· 2 fields from this tableTrvExpMobileExpenseEntity· 2 fields from this tableTrvExpMobileExpenseLineAttachedToReportEntity· 2 fields from this tableTrvExpMobileLineApprovalEntity· 2 fields from this tableTrvExpMobilePerDiemDataForReportApprovalEntity· 0 fields from this tableTrvExpMobileReceiptAttachedToExpenseLineEntity· 0 fields from this tableTrvExpMobileReportApprovalEntity· 26 fields from this tableTrvExpPaymentDetailsEntity· 2 fields from this tableTrvExpTransMobileEntity· 1 field from this tableTrvExpTransEntity· 1 field from this tableTrvExpenseAgentExpenseEntity· 2 fields from this table
Need help with TrvExpTable in a report, an integration or a migration? Talk to Dr Dynamics.