Codeunit 5130107 M365 Job Dimension Mgt.
Codeunit 5130107 M365 Job Dimension Mgt.
Methods
CreateDimForJob
procedure CreateDimForJob(var job: Record Job; firstTabletype: Integer; firstNo: Code[20]; secondTabletype: Integer; secondNo: Code[20])
Parameters / Return Value
job
Record "Job"
firstTabletype
Integer
firstNo
Code[20]
secondTabletype
Integer
secondNo
Code[20]
CreateDimForJobStructure
procedure CreateDimForJobStructure(forType: Integer; forNumber: Code[20]; var jobStructHead: Record "M365 Job Structure Header")
Parameters / Return Value
forType
Integer
forNumber
Code[20]
jobStructHead
Record "M365 Job Structure Header"
CreateDimForJobStructLine
procedure CreateDimForJobStructLine(firstTableId: Integer; firstNumber: Code[20]; secondTableId: Integer; secondNumber: Code[20];thirdTableId: Integer; thirdNumber: Code[20]; fourthTableId: Integer; fourthNumber: Code[20];fifthTableId: Integer; fifthNumber: Code[20]; sixTableId: Integer; sixNumber: Code[20]; var jobStructLine: Record "M365 Job Structure Line")
Parameters / Return Value
firstTableId
Integer
firstNumber
Code[20]
secondTableId
Integer
secondNumber
Code[20]
thirdTableId
Integer
thirdNumber
Code[20]
fourthTableId
Integer
fourthNumber
Code[20]
fifthTableId
Integer
fifthNumber
Code[20]
sixTableId
Integer
sixNumber
Code[20]
jobStructLine
Record "M365 Job Structure Line"
CreateDimForProdOrder
procedure CreateDimForProdOrder(tabNum: Integer; firstNo: Code[20]; var rec: Record "Production Order")
Parameters / Return Value
tabNum
Integer
firstNo
Code[20]
rec
Record "Production Order"
CreateDimForServHead
procedure CreateDimForServHead(firstTableId: Integer; firstNumber: Code[20]; secondTableId: Integer; secondNumber: Code[20]; thirdTableId: Integer; thirdNumber: Code[20]; fourthTableId: Integer; fourthNumber: Code[20]; fifthTableId: Integer; fifthNumber: Code[20]; sixTableId: Integer; sixNumber: Code[20]; var servHead: Record "Service Header")
Parameters / Return Value
firstTableId
Integer
firstNumber
Code[20]
secondTableId
Integer
secondNumber
Code[20]
thirdTableId
Integer
thirdNumber
Code[20]
fourthTableId
Integer
fourthNumber
Code[20]
fifthTableId
Integer
fifthNumber
Code[20]
sixTableId
Integer
sixNumber
Code[20]
servHead
Record "Service Header"
CreateDimForSalesHead
procedure CreateDimForSalesHead(firstTableId: Integer; firstNumber: Code[20]; secondTableId: Integer; secondNumber: Code[20]; thirdTableId: Integer; thirdNumber: Code[20]; fourthTableId: Integer; fourthNumber: Code[20]; fifthTableId: Integer; fifthNumber: Code[20]; sixTableId: Integer; sixNumber: Code[20]; var salesHead: Record "Sales Header")
Parameters / Return Value
firstTableId
Integer
firstNumber
Code[20]
secondTableId
Integer
secondNumber
Code[20]
thirdTableId
Integer
thirdNumber
Code[20]
fourthTableId
Integer
fourthNumber
Code[20]
fifthTableId
Integer
fifthNumber
Code[20]
sixTableId
Integer
sixNumber
Code[20]
salesHead
Record "Sales Header"
CreateDimForPurchHead
procedure CreateDimForPurchHead(firstTableId: Integer; firstNumber: Code[20]; secondTableId: Integer; secondNumber: Code[20]; thirdTableId: Integer; thirdNumber: Code[20]; forthTableId: Integer; forthNumber: Code[20]; fifthTableId: Integer; fifthNumber: Code[20]; var purchHead: Record "Purchase Header")
Parameters / Return Value
firstTableId
Integer
firstNumber
Code[20]
secondTableId
Integer
secondNumber
Code[20]
thirdTableId
Integer
thirdNumber
Code[20]
forthTableId
Integer
forthNumber
Code[20]
fifthTableId
Integer
fifthNumber
Code[20]
purchHead
Record "Purchase Header"
GetNewDimValue
procedure GetNewDimValue(dimCode: Code[20]; numberOfPlacesIndex: Integer; forNumber: Code[20]): Code[20]
Parameters / Return Value
dimCode
Code[20]
numberOfPlacesIndex
Integer
forNumber
Code[20]
Returns
Code[20]
UpdateAllLineDim
procedure UpdateAllLineDim(forTableNo: Integer; forNumber: Code[20]; docType: Option; docNo: Code[20]; var oldDefaultDim: Record "Default Dimension")
Parameters / Return Value
forTableNo
Integer
forNumber
Code[20]
docType
Option
docNo
Code[20]
oldDefaultDim
Record "Default Dimension"
CreateDimValueForJob
procedure CreateDimValueForJob(var job: Record Job)
Parameters / Return Value
- job
Record "Job"
CreateDefaultDim
procedure CreateDefaultDim(tableId: Integer; firstNo: Code[20]; dimCode: Code[20]; dimValueCode: Code[20])
Parameters / Return Value
tableId
Integer
firstNo
Code[20]
dimCode
Code[20]
dimValueCode
Code[20]
CreateDimValue
procedure CreateDimValue(dimCode: Code[20]; dimValueCode: Code[20]; dimValueName: Text[50])
Parameters / Return Value
dimCode
Code[20]
dimValueCode
Code[20]
dimValueName
Text[50]
Events
OnAssignTableCreateDim
Obsolete
Pending: Avoid using this event, use OnAssignTableCreateDimList (22.0)local procedure OnAssignTableCreateDim(var jobStructureLine: Record "M365 Job Structure Line"; var noArray: array[10] of Code[20]; var tableIdl: array[10] of Integer)
Parameters / Return Value
jobStructureLine
Record "M365 Job Structure Line"
noArray
Code[20]
tableIdl
Integer
OnAssignTableCreateDimList
local procedure OnAssignTableCreateDimList(var jobStructureLine: Record "M365 Job Structure Line"; DimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters / Return Value
jobStructureLine
Record "M365 Job Structure Line"
DimSource
List[Dictionary]
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.