Table
SMAServiceOrderLine
Service order line
Holds the lines of a service order. The key is the service order ID plus a line number. Each line has a transaction type (hour, expense, item or fee), quantity, prices, dates and project details. It also links to the service object, task, agreement and worker, and includes fields used for India.
- Table name
SMAServiceOrderLine- Module
Service management- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
ServiceOrderIdx- Replacement key
ServiceOrderIdx- Key fields
ServiceOrderId, ServiceOrderLineNum- Model
Foundation
Fields (77)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ServiceOrderIdService order the line belongs to. | StringSMAServiceOrderId | Yes | SMAServiceOrderTable.ServiceOrderId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntityTaxSMAServiceOrderLineTransTaxInformationEntity |
ServiceOrderLineNumLine number within the service order. | RealLineNum | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntityTaxSMAServiceOrderLineTransTaxInformationEntity | |
ActivityIdDispatch activity linked to the line. | String (50)smmActivityId | No | smmActivities.ActivityNumber | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ActivityNumberActivity number of the linked project activity. | String (50)ProjActivityNumber | No | smmActivities.ActivityNumber | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
AgreementIdService agreement the line belongs to. | StringSMAAgreementId | No | SMAAgreementTable.AgreementId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
AgreementLineNumLine number on the service agreement. | IntegerSMAAgreementLineNum | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
AssessableValue_INAmount in transaction currency, used for India.low confidence | RealAmountCur | No | None | |
CompanyLocation_INCompany location record, used for India. | Int64LogisticsLocationRecId | No | None | |
CurrencyIdCostCurrency used for the cost price. | String (3)CurrencyCode | No | Currency.CurrencyCode | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
CustomerLocation_INRecord ID of a related customer location, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
CustomerTaxInformation_INRecord ID of related customer tax information, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
CustomsTariffCodeTable_INRecord ID of a customs tariff code, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | SMAServiceOrderLineBiEntity | |
DateCalculatedDate the line was calculated. | DateSMADateCalculated | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DateExecutionPosting date of the line. | DateSMADateExecution | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DateRangeFromStart of the date range for the line. | DateSMADateRangeFrom | Yes | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DateRangeToEnd of the date range for the line. | DateSMADateRangeTo | Yes | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DefaultDimensionDefault financial dimension set for the line. | Int64InventSiteSMAItemLinkedDimensionValueSet | No | DimensionAttributeValueSet.RecId | SMAServiceOrderLineEntity |
DescriptionShort description of the line. | String (60)Description | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DescriptionServiceLonger text describing the service. | String (1000)SMADescription | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
DirectSettlement_INDirect settlement option (None, RG23A, RG23C or PLA), used for India. | EnumDirectSettlement_IN (enum) | No | None | |
DSA_INYes/No flag with no label, used for India. Meaning not clear.low confidence | EnumNoYes (enum) | No | None | |
ExciseRecordType_INExcise record type (None, RG23A, RG23C or RG23D), used for India. | EnumExciseRecordType_IN (enum) | No | None | |
ExciseTariffCodes_INRecord ID of an excise tariff code, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
ExciseType_INExcise type (None, Manufacturer or Trader), used for India. | EnumExciseType_IN (enum) | No | None | |
Exempt_INYes/No flag with no label, probably an exemption marker, used for India.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
HSNCodeTable_INRecord ID of an HSN code, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
InventDimIdInventory dimension record for the line. | String (20)InventDimId | No | InventDim.inventDimId | SMAServiceOrderLineBiEntity |
InvoiceIdInvoice linked to the line. | String (50)InvoiceId | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
IsSalesPriceModifiedYes/No flag, possibly showing that the sales price was changed. The metadata gives no label.low confidence | EnumNoYes (enum) | No | SMAServiceOrderLineBiEntity | |
ITCCategory_INInput tax credit category (Input, Capital Goods or Others), used for India. | EnumITCCategory_IN (enum) | No | None | |
ItemIdItem on the line. | String (20)ItemId | No | InventTable.ItemId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
LedgerDimensionOffset ledger account for the line. | Int64LedgerDimensionAccount | No | DimensionAttributeValueCombination.RecId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
MaximumRetailPrice_INMaximum retail price, used for India. | RealMaximumRetailPrice_IN | No | None | |
OffsetAccountTypeExpenseType of the offset account, such as ledger, customer, vendor or project. | EnumLedgerJournalACType (enum) | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
OriginHow the line was created: by the system, a user or the web. | EnumSMAServiceOrderOrigin (enum) | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
PackedExtensionsPacked container holding extension data. | ContainerSysExtensionSerializerPackedContainer | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PostalAddress_INLocation record for the postal address, used for India. | Int64LogisticsLocationRecId | No | None | |
ProjCategoryIdProject category of the line. | String (30)ProjCategoryId | Yes | ProjCategory.CategoryId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjCostPriceCost price of the line. | RealProjCostPriceCost | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
ProjCurrencyCodeCurrency used for the sales price. | String (3)ProjSalesCurrencyCode | No | Currency.CurrencyCode | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjIdProject linked to the line. | String (20)ProjId | No | ProjTable.ProjId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjLinePropertyIdProject line property of the line. | StringProjLinePropertyId | Yes | ProjLineProperty.LinePropertyId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjSalesPriceSales price of the line. | RealProjSalesPriceCost | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
ProjTaxGroupSales tax group of the line. | StringProjTaxGroup | No | TaxGroupHeading.TaxGroup | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjTaxItemGroupItem sales tax group of the line. | StringProjTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjTransIdID of the related project transaction (cost, hour or item). | String (20)ProjTransIdBase | No | ProjCostTrans.TransIdProjEmplTrans.TransIdProjItemTrans.ProjTransIdProjRevenueTrans.TransId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ProjTransTxtDescription text for the project transaction. | String (60)TransTxt | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
QtyQuantity on the line. | RealSMAQuantity | Yes | SMAServiceOrderLineBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | SMAServiceOrderLineBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | SMAServiceOrderLineBiEntity | |
SalesTaxFormTypes_INSales tax form type record, used for India. | Int64SalesTaxFormTypesRecId_IN | No | None | |
ServiceAccountingCodeTable_INRecord ID of a service accounting code, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
ServiceCodeTable_INRecord ID of a service code, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
ServiceObjectIdService object the line relates to. | String (20)SMAServiceObjectId | No | SMAServiceObjectTable.ServiceObjectId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ServiceObjectRelationIdService object relation linked to the line. | String (20)SMAServiceObjectRelationId | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
ServiceOrderStatusStatus of the line: Created, Posted or Canceled. | EnumSMAServiceOrderStatus (enum) | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
ServiceTaskIdService task linked to the line. | StringSMAServiceTaskId | No | SMAServiceTask.ServiceTaskId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
ServiceTimeEndBeforeLatest time by which the service should end. | TimeSMAEndBeforeTime | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
ServiceTimeStartAfterEarliest time at which the service should start. | TimeSMAStartAfter | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
SignOffShows whether the line has been signed off. | EnumSMASignOffNoYes (enum) | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
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 | |
TaxGroupExpenseSales tax group for the expense. | StringTaxGroupJournal | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
TaxInventVATCommodityCodeId_INVAT commodity code, used for India. | StringTaxInventVATCommodityCodeId_IN | No | None | |
TaxItemGroupExpenseItem sales tax group for the expense. | StringTaxGroupJournal | No | TaxItemGroupHeading.TaxItemGroup | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
TCSGroup_INWithholding tax group for tax collected at source, used for India. | StringTaxWithholdGroup | No | None | |
TDSGroup_INWithholding tax group for tax deducted at source, used for India. | StringTaxWithholdGroup | No | None | |
TimeSheetEndTimeTime the service work finished. | TimeSMAServiceFinishedTime | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
TimeSheetStartTimeTime the service work started. | TimeSMAServiceStartedTime | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
TransactionTypeKind of line: Hour, Expense, Item or Fee. | EnumSMATransactionType (enum) | No | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity | |
UnitUnit of measure for the quantity. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
VendorLocation_INRecord ID of a vendor location, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
VendorTaxInformation_INRecord ID of related vendor tax information, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
WarehouseLocation_INRecord ID of a warehouse location, used for India. The target is not stated.low confidence | Int64RefRecId | No | None | |
WorkerWorker who carried out the line. | Int64SMAWorker | No | HcmWorker.RecId | SMAServiceOrderLineEntitySMAServiceOrderLineBiEntity |
Indexes (4)
ServiceOrderIdxPrimary indexReplacement keyServiceOrderId,ServiceOrderLineNumUnique, alternate key.
ServiceObjectIdxNot unique.
ServiceTaskIdxNot unique.
ServiceIdStatusTransTypeServiceOrderId,ServiceOrderStatus,TransactionTypeNot unique.
Relations (25)
Each relation joins SMAServiceOrderLine to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyIdCost = Currency.CurrencyCodeMany SMAServiceOrderLine records → zero or one Currency record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany SMAServiceOrderLine records → zero or one DimensionAttributeValueSet record
DispatchActivity→smmActivitiesJoin on
ActivityId = smmActivities.ActivityNumberMany SMAServiceOrderLine records → zero or one smmActivities record
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany SMAServiceOrderLine records → zero or one HcmWorker record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SMAServiceOrderLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany SMAServiceOrderLine records → zero or one InventTable record
LedgerDimension→DimensionAttributeValueCombinationJoin on
LedgerDimension = DimensionAttributeValueCombination.RecIdMany SMAServiceOrderLine records → zero or one DimensionAttributeValueCombination record
ProjCategory→ProjCategoryJoin on
ProjCategoryId = ProjCategory.CategoryIdMany SMAServiceOrderLine records → exactly one ProjCategory record
ProjCostTrans→ProjCostTransJoin on
ProjId = ProjCostTrans.ProjId,TransactionType = SMATransactionType::Expense,ProjTransId = ProjCostTrans.TransIdMany SMAServiceOrderLine records → zero or one ProjCostTrans record
ProjectActivity→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumberMany SMAServiceOrderLine records → zero or one smmActivities record
ProjectSalesCurrency→CurrencyJoin on
ProjCurrencyCode = Currency.CurrencyCodeMany SMAServiceOrderLine records → zero or one Currency record
ProjectTaxGroupHeading→TaxGroupHeadingJoin on
ProjTaxGroup = TaxGroupHeading.TaxGroupMany SMAServiceOrderLine records → zero or one TaxGroupHeading record
ProjectTaxItemGroupHeading→TaxItemGroupHeadingJoin on
ProjTaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany SMAServiceOrderLine records → zero or one TaxItemGroupHeading record
ProjEmplTrans→ProjEmplTransJoin on
ProjId = ProjEmplTrans.ProjId,TransactionType = SMATransactionType::Hour,ProjTransId = ProjEmplTrans.TransIdMany SMAServiceOrderLine records → zero or one ProjEmplTrans record
ProjItemTrans→ProjItemTransJoin on
ProjId = ProjItemTrans.ProjId,TransactionType = SMATransactionType::Item,ProjTransId = ProjItemTrans.ProjTransIdMany SMAServiceOrderLine records → zero or one ProjItemTrans record
ProjLineProperty→ProjLinePropertyJoin on
ProjLinePropertyId = ProjLineProperty.LinePropertyIdMany SMAServiceOrderLine records → exactly one ProjLineProperty record
ProjRevenueTrans→ProjRevenueTransJoin on
ProjId = ProjRevenueTrans.ProjId,TransactionType = SMATransactionType::Fee,ProjTransId = ProjRevenueTrans.TransIdMany SMAServiceOrderLine records → zero or one ProjRevenueTrans record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SMAServiceOrderLine records → zero or one ProjTable record
SMAAgreementTable→SMAAgreementTableJoin on
AgreementId = SMAAgreementTable.AgreementIdMany SMAServiceOrderLine records → zero or one SMAAgreementTable record
SMAServiceObjectRelation→SMAServiceObjectRelationJoin on
ServiceObjectRelationId = SMAServiceObjectRelation.ServiceObjectRelationIdMany SMAServiceOrderLine records → zero or one SMAServiceObjectRelation record
SMAServiceObjectTable→SMAServiceObjectTableJoin on
ServiceObjectId = SMAServiceObjectTable.ServiceObjectIdMany SMAServiceOrderLine records → zero or one SMAServiceObjectTable record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
ServiceOrderId = SMAServiceOrderTable.ServiceOrderIdMany SMAServiceOrderLine records → exactly one SMAServiceOrderTable record
SMAServiceTask→SMAServiceTaskJoin on
ServiceTaskId = SMAServiceTask.ServiceTaskIdMany SMAServiceOrderLine records → zero or one SMAServiceTask record
TaxItemGroupExpense→TaxItemGroupHeadingJoin on
TaxItemGroupExpense = TaxItemGroupHeading.TaxItemGroupMany SMAServiceOrderLine records → zero or one TaxItemGroupHeading record
Unit→UnitOfMeasureJoin on
Unit = UnitOfMeasure.SymbolMany SMAServiceOrderLine records → zero or one UnitOfMeasure record
Get this data out
Tables are not exposed directly. These public entities read from SMAServiceOrderLine; use one of them in Power BI, Power Platform or a data management project.
SMAServiceOrderLineEntity· 43 fields from this tableSMAServiceOrderLineBiEntity· 48 fields from this tableTaxSMAServiceOrderLineTransTaxInformationEntity· 2 fields from this table
Need help with SMAServiceOrderLine in a report, an integration or a migration? Talk to Dr Dynamics.