Table
SMAPreServiceOrderLine
Pre-ServiceOrder Lines
Holds pre-service order lines for a service agreement. The key is the agreement, the line number and the date calculated. Each line can point to a project, service object, service task, time window and worker.
- Table name
SMAPreServiceOrderLine- Module
Service management- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
AgreementIdx- Replacement key
AgreementIdx- Key fields
AgreementId, AgreementLineNum, DateCalculated- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AgreementIdThe service agreement the line belongs to. | StringSMAAgreementId | Yes | SMAAgreementTable.AgreementId | None |
AgreementLineNumLine number on the service agreement. | IntegerSMAAgreementLineNum | Yes | None | |
DateCalculatedDate for which the line was calculated. | DateSMADateCalculated | Yes | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateRangeFromStart date of the date range. | DateSMADateRangeFrom | No | None | |
DateRangeToEnd date of the date range. | DateSMADateRangeTo | No | None | |
GroupBySets how service orders are combined. Values are By service agreement, By service task, By employee and By service object. | EnumSMAGroupServiceOrder (enum) | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjIdThe project linked to the line. Points to a project. | String (20)SMAProjId | No | ProjTable.ProjId | None |
ProjTransIdProject transaction ID linked to the line. | String (20)ProjTransIdBase | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ScopeIdID of the scope linked to the line. | StringSMAScopeId | No | None | |
ServiceObjectIdThe service object the line refers to. | String (20)SMAServiceObjectId | No | SMAServiceObjectTable.ServiceObjectId | None |
ServiceObjectRelationIdService object relation the line refers to. | String (20)SMAServiceObjectRelationId | No | None | |
ServiceOrderIdThe service order linked to the line. | StringSMAServiceOrderId | No | SMAServiceOrderTable.ServiceOrderId | None |
ServiceTaskIdThe service task the line refers to. | StringSMAServiceTaskId | No | SMAServiceTask.ServiceTaskId | None |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TimeAgreementIdThe time window the line refers to. | StringSMATimeAgreementId | No | SMATimeAgreement.TimeAgreementId | None |
WorkerThe worker linked to the line. Points to a worker record. | Int64SMAWorker | No | HcmWorker.RecId | None |
Indexes (3)
ScopeIdxScopeId,ServiceOrderId,GroupBy,DateCalculatedNot unique.
AgreementIdxPrimary indexReplacement keyAgreementId,AgreementLineNum,DateCalculatedUnique, alternate key.
AgreementRangeIdxAgreementId,DateRangeFrom,DateRangeToNot unique.
Relations (9)
Each relation joins SMAPreServiceOrderLine to another table on the fields shown.
HcmWorker→HcmWorkerJoin on
Worker = HcmWorker.RecIdMany SMAPreServiceOrderLine records → zero or one HcmWorker record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SMAPreServiceOrderLine records → zero or one ProjTable record
SMAAgreementTable→SMAAgreementTableJoin on
AgreementId = SMAAgreementTable.AgreementIdMany SMAPreServiceOrderLine records → exactly one SMAAgreementTable record
SMAServiceObjectRelation→SMAServiceObjectRelationJoin on
ServiceObjectRelationId = SMAServiceObjectRelation.ServiceObjectRelationIdMany SMAPreServiceOrderLine records → zero or one SMAServiceObjectRelation record
SMAServiceObjectTable→SMAServiceObjectTableJoin on
ServiceObjectId = SMAServiceObjectTable.ServiceObjectIdMany SMAPreServiceOrderLine records → zero or one SMAServiceObjectTable record
SMAServiceOrderLine→SMAServiceOrderLineJoin on
DateCalculated = SMAServiceOrderLine.DateCalculated,AgreementLineNum = SMAServiceOrderLine.AgreementLineNum,AgreementId = SMAServiceOrderLine.AgreementIdOne or more SMAPreServiceOrderLine records → exactly one SMAServiceOrderLine record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
ServiceOrderId = SMAServiceOrderTable.ServiceOrderIdMany SMAPreServiceOrderLine records → zero or one SMAServiceOrderTable record
SMAServiceTask→SMAServiceTaskJoin on
ServiceTaskId = SMAServiceTask.ServiceTaskIdMany SMAPreServiceOrderLine records → zero or one SMAServiceTask record
SMATimeAgreement→SMATimeAgreementJoin on
TimeAgreementId = SMATimeAgreement.TimeAgreementIdMany SMAPreServiceOrderLine records → zero or one SMATimeAgreement record
Get this data out
No public entity reads from SMAPreServiceOrderLine. Its data is only reachable through the application, a custom entity or a database export.
Need help with SMAPreServiceOrderLine in a report, an integration or a migration? Talk to Dr Dynamics.