Table of Contents

Table "Assembly Header"

ID 900
Namespace: Microsoft.Assembly.Document

Properties

Name Value
Caption Assembly Header
DataCaptionFields 2,3
DrillDownPageID Page Microsoft.Assembly.Document."Assembly List"
LookupPageID Page Microsoft.Assembly.Document."Assembly List"
DataClassification CustomerContent
Permissions TableData "Assembly Line" = d

Fields

Name Type Description
"Document Type" Enum Microsoft.Assembly.Document."Assembly Document Type"

Specifies the type of assembly document the record represents in assemble-to-order scenarios.

"No." Code[20]

Specifies the number of the involved entry or record, according to the specified number series.

Description Text[100]

Specifies the description of the assembly item.

"Search Description" Code[100]
"Description 2" Text[50]

Specifies information in addition to the description.

"Creation Date" Date
"Last Date Modified" Date
"Item No." Code[20]

Specifies the number of the item that is being assembled with the assembly order.

"Variant Code" Code[10]

Specifies the variant of the item on the line.

"Inventory Posting Group" Code[20]
"Gen. Prod. Posting Group" Code[20]
"Gen. Bus. Posting Group" Code[20]

Specifies the code for the General Business Posting Group that applies to the entry.

Comment Boolean
"Location Code" Code[10]

Specifies the location to which you want to post output of the assembly item.

"Shortcut Dimension 1 Code" Code[20]

Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Shortcut Dimension 2 Code" Code[20]

Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Posting Date" Date

Specifies the date on which the assembly order is posted.

"Due Date" Date

Specifies the date when the assembled item is due to be available for use.

"Starting Date" Date

Specifies the date when the assembly order is expected to start.

"Ending Date" Date

Specifies the date when the assembly order is expected to finish.

"Bin Code" Code[20]

Specifies the bin the assembly item is posted to as output and from where it is taken to storage or shipped if it is assembled to a sales order.

Quantity Decimal

Specifies how many units of the assembly item that you expect to assemble with the assembly order.

"Quantity (Base)" Decimal
"Remaining Quantity" Decimal

Specifies how many units of the assembly item remain to be posted as assembled output.

"Remaining Quantity (Base)" Decimal
"Assembled Quantity" Decimal

Specifies how many units of the assembly item are posted as assembled output.

"Assembled Quantity (Base)" Decimal
"Quantity to Assemble" Decimal

Specifies how many of the assembly item units you want to partially post. To post the full quantity on the assembly order, leave the field unchanged.

"Quantity to Assemble (Base)" Decimal
"Reserved Quantity" Decimal

Specifies how many units of the assembly item are reserved for this assembly order header.

"Reserved Qty. (Base)" Decimal
"Planning Flexibility" Enum Microsoft.Inventory.Tracking."Reservation Planning Flexibility"

Specifies whether the supply represented by the assembly order is considered by the planning system when calculating action messages.

"MPS Order" Boolean
"Assemble to Order" Boolean

Specifies if the assembly order is linked to a sales order, which indicates that the item is assembled to order.

"Posting No." Code[20]
"Unit Cost" Decimal

Specifies the cost of one unit of the item or resource on the line.

"Cost Amount" Decimal

Specifies the total unit cost of the assembly order.

"Rolled-up Assembly Cost" Decimal
"Indirect Cost %" Decimal

Specifies the percentage of the item's last purchase cost that includes indirect costs, such as freight that is associated with the purchase of the item.

"Overhead Rate" Decimal

Specifies the indirect cost of the assembly item as an absolute amount.

"Unit of Measure Code" Code[10]

Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted.

"Qty. per Unit of Measure" Decimal
"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"No. Series" Code[20]
"Posting No. Series" Code[20]
Status Option

Specifies if the document is open, waiting to be approved, invoiced for prepayment, or released to the next stage of processing.

"Dimension Set ID" Integer
"Assigned User ID" Code[50]

Specifies the ID of the user who is responsible for the document.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

InitRecord

procedure InitRecord()

InitRemainingQty

procedure InitRemainingQty()

InitQtyToAssemble

procedure InitQtyToAssemble()

AssistEdit

procedure AssistEdit(OldAssemblyHeader: Record "Assembly Header"): Boolean

Parameters

Name Type Description
OldAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

Returns

Type Description
Boolean

SetHideValidationDialog

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)

Parameters

Name Type Description
NewHideValidationDialog Boolean

DeleteAssemblyLines

procedure DeleteAssemblyLines()

ShowReservation

procedure ShowReservation()

ShowReservationEntries

procedure ShowReservationEntries(Modal: Boolean)

Parameters

Name Type Description
Modal Boolean

AutoReserveAsmLine

procedure AutoReserveAsmLine(AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

SetTestReservationDateConflict

procedure SetTestReservationDateConflict(NewTestReservationDateConflict: Boolean)

Parameters

Name Type Description
NewTestReservationDateConflict Boolean

CreateDim

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

ValidateShortcutDimCode

procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

AssemblyOrderLineExist

procedure AssemblyOrderLineExist(): Boolean

Returns

Type Description
Boolean

GetRemainingQty

procedure GetRemainingQty(var RemainingQty: Decimal; var RemainingQtyBase: Decimal)

Parameters

Name Type Description
RemainingQty Decimal
RemainingQtyBase Decimal

GetReservationQty

procedure GetReservationQty(var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal): Decimal

Parameters

Name Type Description
QtyReserved Decimal
QtyReservedBase Decimal
QtyToReserve Decimal
QtyToReserveBase Decimal

Returns

Type Description
Decimal

GetSourceCaption

procedure GetSourceCaption(): Text[80]

Returns

Type Description
Text[80]

SetReservationEntry

procedure SetReservationEntry(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

SetReservationFilters

procedure SetReservationFilters(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

ReservEntryExist

procedure ReservEntryExist(): Boolean

Returns

Type Description
Boolean

SetItemToPlanFilters

procedure SetItemToPlanFilters(var Item2: Record Item; DocumentType: Enum "Assembly Document Type")

Parameters

Name Type Description
Item2 Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

FindItemToPlanLines

procedure FindItemToPlanLines(var Item2: Record Item; DocumentType: Enum "Assembly Document Type"): Boolean

Parameters

Name Type Description
Item2 Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

Returns

Type Description
Boolean

ItemToPlanLinesExist

procedure ItemToPlanLinesExist(var Item2: Record Item; DocumentType: Enum "Assembly Document Type"): Boolean

Parameters

Name Type Description
Item2 Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

Returns

Type Description
Boolean

FilterLinesForReservation

procedure FilterLinesForReservation(ReservationEntry: Record "Reservation Entry"; DocumentType: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
DocumentType Option
AvailabilityFilter Text
Positive Boolean

ShowStatistics

Obsolete

This element will become obsolete from version 27.0. the statistics action is refactored to use the RunObject property

[Obsolete(the statistics action is refactored to use the RunObject property,27.0)]
procedure ShowStatistics()

UpdateUnitCost

procedure UpdateUnitCost()

SetItemFilter

procedure SetItemFilter(var Item2: Record Item)

Parameters

Name Type Description
Item2 Table Microsoft.Inventory.Item.Item

ShowAssemblyList

procedure ShowAssemblyList()

RoundQty

procedure RoundQty(var Qty: Decimal)

Parameters

Name Type Description
Qty Decimal

CalcActualCosts

procedure CalcActualCosts(var ActCost: array[5] of Decimal)

Parameters

Name Type Description
ActCost array[5] of Decimal

CalcStartDateFromEndDate

procedure CalcStartDateFromEndDate(EndingDate: Date): Date

Parameters

Name Type Description
EndingDate Date

Returns

Type Description
Date

CalcEndDateFromStartDate

procedure CalcEndDateFromStartDate(StartingDate: Date): Date

Parameters

Name Type Description
StartingDate Date

Returns

Type Description
Date

CalcEndDateFromDueDate

procedure CalcEndDateFromDueDate(DueDate: Date): Date

Parameters

Name Type Description
DueDate Date

Returns

Type Description
Date

CalcDueDateFromEndDate

procedure CalcDueDateFromEndDate(EndingDate: Date): Date

Parameters

Name Type Description
EndingDate Date

Returns

Type Description
Date

ValidateDates

procedure ValidateDates(FieldNumToCalculateFrom: Integer; DoNotValidateButJustAssign: Boolean)

Parameters

Name Type Description
FieldNumToCalculateFrom Integer
DoNotValidateButJustAssign Boolean

ValidateDueDate

procedure ValidateDueDate(NewDueDate: Date; CallValidateOnOtherDates: Boolean)

Parameters

Name Type Description
NewDueDate Date
CallValidateOnOtherDates Boolean

ValidateEndDate

procedure ValidateEndDate(NewEndDate: Date; CallValidateOnOtherDates: Boolean)

Parameters

Name Type Description
NewEndDate Date
CallValidateOnOtherDates Boolean

ValidateStartDate

procedure ValidateStartDate(NewStartDate: Date; CallValidateOnOtherDates: Boolean)

Parameters

Name Type Description
NewStartDate Date
CallValidateOnOtherDates Boolean

GetDefaultBin

procedure GetDefaultBin()

GetFromAssemblyBin

procedure GetFromAssemblyBin(Location: Record Location; var BinCode: Code[20]): Boolean

Parameters

Name Type Description
Location Table Microsoft.Inventory.Location.Location
BinCode Code[20]

Returns

Type Description
Boolean

ValidateBinCode

procedure ValidateBinCode(NewBinCode: Code[20])

Parameters

Name Type Description
NewBinCode Code[20]

CreatePick

procedure CreatePick(ShowRequestPage: Boolean; AssignedUserID: Code[50]; SortingMethod: Option; SetBreakBulkFilter: Boolean; DoNotFillQtyToHandle: Boolean; PrintDocument: Boolean)

Parameters

Name Type Description
ShowRequestPage Boolean
AssignedUserID Code[50]
SortingMethod Option
SetBreakBulkFilter Boolean
DoNotFillQtyToHandle Boolean
PrintDocument Boolean

CreateInvtMovement

procedure CreateInvtMovement(MakeATOInvtMvmt: Boolean; PrintDocumentForATOMvmt: Boolean; ShowErrorForATOMvmt: Boolean; var ATOMovementsCreated: Integer; var ATOTotalMovementsToBeCreated: Integer)

Parameters

Name Type Description
MakeATOInvtMvmt Boolean
PrintDocumentForATOMvmt Boolean
ShowErrorForATOMvmt Boolean
ATOMovementsCreated Integer
ATOTotalMovementsToBeCreated Integer

CompletelyPicked

procedure CompletelyPicked(): Boolean

Returns

Type Description
Boolean

IsInbound

procedure IsInbound(): Boolean

Returns

Type Description
Boolean

OpenItemTrackingLines

procedure OpenItemTrackingLines()

ItemExists

procedure ItemExists(ItemNo: Code[20]): Boolean

Parameters

Name Type Description
ItemNo Code[20]

Returns

Type Description
Boolean

TestStatusOpen

procedure TestStatusOpen()

SuspendStatusCheck

procedure SuspendStatusCheck(Suspend: Boolean)

Parameters

Name Type Description
Suspend Boolean

IsStatusCheckSuspended

procedure IsStatusCheckSuspended(): Boolean

Returns

Type Description
Boolean

ShowTracking

procedure ShowTracking()

ShowAsmToOrder

procedure ShowAsmToOrder()

IsAsmToOrder

procedure IsAsmToOrder(): Boolean

Returns

Type Description
Boolean

CheckIsNotAsmToOrder

procedure CheckIsNotAsmToOrder()

CheckIsNotAsmToOrder

procedure CheckIsNotAsmToOrder(CallingFieldNo: Integer)

Parameters

Name Type Description
CallingFieldNo Integer

IsStandardCostItem

procedure IsStandardCostItem(): Boolean

Returns

Type Description
Boolean

ShowDueDateBeforeWorkDateMsg

procedure ShowDueDateBeforeWorkDateMsg()

AddBOMLine

procedure AddBOMLine(BOMComp: Record "BOM Component")

Parameters

Name Type Description
BOMComp Table Microsoft.Inventory.BOM."BOM Component"

UpdateWarningOnLines

procedure UpdateWarningOnLines()

SetWarningsOff

procedure SetWarningsOff()

SetWarningsOn

procedure SetWarningsOn()

CalcTotalCost

procedure CalcTotalCost(var ExpCost: array[5] of Decimal): Decimal

Parameters

Name Type Description
ExpCost array[5] of Decimal

Returns

Type Description
Decimal

RowID1

procedure RowID1(): Text[250]

Returns

Type Description
Text[250]

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim()

AssemblyLinesExist

procedure AssemblyLinesExist(): Boolean

Returns

Type Description
Boolean

ChangeGenBusPostingGroupAssemblyLines

procedure ChangeGenBusPostingGroupAssemblyLines()

GetHideValidationDialog

procedure GetHideValidationDialog(): Boolean

Returns

Type Description
Boolean

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var AssemblyHeader: Record "Assembly Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; CallingFieldNo: Integer)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
CallingFieldNo Integer

OnAfterCalcEndDateFromStartDate

[IntegrationEvent(False,False)]
local procedure OnAfterCalcEndDateFromStartDate(var AssemblyHeader: Record "Assembly Header"; var Result: Date)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Result Date

OnAfterCalcStartDateFromEndDate

[IntegrationEvent(False,False)]
local procedure OnAfterCalcStartDateFromEndDate(var AssemblyHeader: Record "Assembly Header"; var Result: Date)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Result Date

OnAfterGetNoSeriesCode

[IntegrationEvent(False,False)]
local procedure OnAfterGetNoSeriesCode(AssemblyHeader: Record "Assembly Header"; var Result: Code[20])

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Result Code[20]

OnAfterGetSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetSKU(AssemblyHeader: Record "Assembly Header"; var Result: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Result Boolean

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var AssemblyHeader: Record "Assembly Header"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterFilterLinesForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesForReservation(var AssemblyHeader: Record "Assembly Header"; ReservEntry: Record "Reservation Entry"; DocumentType: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
DocumentType Option
AvailabilityFilter Text
Positive Boolean

OnAfterInitQtyToAssemble

[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToAssemble(var AssemblyHeader: Record "Assembly Header"; CallingFieldNo: Integer)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CallingFieldNo Integer

OnAfterInitRecord

[IntegrationEvent(False,False)]
local procedure OnAfterInitRecord(var AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterInitRemaining

[IntegrationEvent(False,False)]
local procedure OnAfterInitRemaining(var AssemblyHeader: Record "Assembly Header"; CallingFieldNo: Integer)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CallingFieldNo Integer

OnAfterRoundQty

[IntegrationEvent(False,False)]
local procedure OnAfterRoundQty(AssemblyHeader: Record "Assembly Header"; var Qty: Decimal)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Qty Decimal

OnAfterSetItemToPlanFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetItemToPlanFilters(var AssemblyHeader: Record "Assembly Header"; var Item: Record Item; AssemblyDocumentType: Enum "Assembly Document Type")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Item Table Microsoft.Inventory.Item.Item
AssemblyDocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

OnAfterSetReservationFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterShowDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeDoValidateDates

[IntegrationEvent(False,False)]
local procedure OnBeforeDoValidateDates(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; FieldNumToCalculateFrom: Integer; NewDueDate: Date; NewEndDate: Date; NewStartDate: Date; var ValidateConfirmed: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumToCalculateFrom Integer
NewDueDate Date
NewEndDate Date
NewStartDate Date
ValidateConfirmed Boolean

OnBeforeOpenItemTrackingLines

[IntegrationEvent(False,False)]
local procedure OnBeforeOpenItemTrackingLines(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeShowDueDateBeforeWorkDateMsg

[IntegrationEvent(False,False)]
local procedure OnBeforeShowDueDateBeforeWorkDateMsg(AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeValidateDueDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDueDate(var AssemblyHeader: Record "Assembly Header"; NewDueDate: Date)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
NewDueDate Date

OnBeforeReplaceLinesFromBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeReplaceLinesFromBOM(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; var ReturnValue: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ReturnValue Boolean
IsHandled Boolean

OnBeforeRunWhseSourceCreateDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeRunWhseSourceCreateDocument(var AssemblyHeader: Record "Assembly Header"; ShowRequestPage: Boolean; AssignedUserID: Code[50]; SortingMethod: Option; SetBreakBulkFilter: Boolean; DoNotFillQtyToHandle: Boolean; PrintDocument: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ShowRequestPage Boolean
AssignedUserID Code[50]
SortingMethod Option
SetBreakBulkFilter Boolean
DoNotFillQtyToHandle Boolean
PrintDocument Boolean
IsHandled Boolean

OnBeforeCreateInvtMovement

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateInvtMovement(var AssemblyHeader: Record "Assembly Header"; MakeATOInvtMvmt: Boolean; PrintDocumentForATOMvmt: Boolean; ShowErrorForATOMvmt: Boolean; var ATOMovementsCreated: Integer; var ATOTotalMovementsToBeCreated: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
MakeATOInvtMvmt Boolean
PrintDocumentForATOMvmt Boolean
ShowErrorForATOMvmt Boolean
ATOMovementsCreated Integer
ATOTotalMovementsToBeCreated Integer
IsHandled Boolean

OnValidateItemNoOnAfterGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnValidateItemNoOnAfterGetDefaultBin(var AssemblyHeader: Record "Assembly Header"; Item: Record Item)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Item Table Microsoft.Inventory.Item.Item

OnValidateItemNoOnBeforeValidateDates

[IntegrationEvent(False,False)]
local procedure OnValidateItemNoOnBeforeValidateDates(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnValidateLocationCodeOnBeforeValidateDates

[IntegrationEvent(False,False)]
local procedure OnValidateLocationCodeOnBeforeValidateDates(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnValiateQuantityOnAfterCalcBaseQty

[IntegrationEvent(False,False)]
local procedure OnValiateQuantityOnAfterCalcBaseQty(var AssemblyHeader: Record "Assembly Header"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CurrentFieldNo Integer

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeValidateQuantityBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityBase(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; FieldNumber: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumber Integer
IsHandled Boolean

OnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantity(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; FieldNumber: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumber Integer
IsHandled Boolean

OnValidateVariantCodeOnBeforeUpdateAssemblyLines

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnBeforeUpdateAssemblyLines(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; CurrentFieldNo: Integer; CurrentFieldNum: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CurrentFieldNo Integer
CurrentFieldNum Integer
IsHandled Boolean

OnValidateVariantCodeOnBeforeValidateDates

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnBeforeValidateDates(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeUpdateAssemblyLinesAndVerifyReserveQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAssemblyLinesAndVerifyReserveQuantity(var AssemblyHeader: Record "Assembly Header"; var xAssemblyHeader: Record "Assembly Header"; CallingFieldNo: Integer; CurrentFieldNum: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CallingFieldNo Integer
CurrentFieldNum Integer
IsHandled Boolean

OnBeforeCalcBaseQty

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBaseQty(var AssemblyHeader: Record "Assembly Header"; Qty: Decimal; FromFieldName: Text; ToFieldName: Text; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Qty Decimal
FromFieldName Text
ToFieldName Text
Result Decimal
IsHandled Boolean

OnBeforeCalcStartDateFromEndDate

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcStartDateFromEndDate(var AssemblyHeader: Record "Assembly Header"; var Result: Date; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Result Date
IsHandled Boolean

OnBeforeCalcEndDateFromStartDate

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcEndDateFromStartDate(var AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnBeforeCheckIsNotAsmToOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIsNotAsmToOrder(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean; xAssemblyHeader: Record "Assembly Header"; CurrentFieldNo: Integer; CallingFieldNo: Integer)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CurrentFieldNo Integer
CallingFieldNo Integer

OnBeforeShowReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeValidateDates

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDates(var AssemblyHeader: Record "Assembly Header"; FieldNumToCalculateFrom: Integer; var DoNotValidateButJustAssign: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumToCalculateFrom Integer
DoNotValidateButJustAssign Boolean
IsHandled Boolean

OnUpdateAllLineDimOnBeforeConfirmUpdatedDimension

[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnBeforeConfirmUpdatedDimension(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean; xAssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnAfterGetDefaultBin(var AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterRunWhseSourceCreateDocument

[IntegrationEvent(False,False)]
local procedure OnAfterRunWhseSourceCreateDocument(var AssemblyHeader: Record "Assembly Header"; ShowRequestPage: Boolean; AssignedUserID: Code[50]; SortingMethod: Option; SetBreakBulkFilter: Boolean; DoNotFillQtyToHandle: Boolean; PrintDocument: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ShowRequestPage Boolean
AssignedUserID Code[50]
SortingMethod Option
SetBreakBulkFilter Boolean
DoNotFillQtyToHandle Boolean
PrintDocument Boolean

OnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var AssemblyHeader: Record "Assembly Header"; CurrentFieldNo: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
CurrentFieldNo Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
IsHandled Boolean

OnAfterValidateDates

[IntegrationEvent(False,False)]
local procedure OnAfterValidateDates(var AssemblyHeader: Record "Assembly Header"; FieldNumToCalculateFrom: Integer; var DoNotValidateButJustAssign: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
FieldNumToCalculateFrom Integer
DoNotValidateButJustAssign Boolean

OnBeforeAssemblyLinesExist

[IntegrationEvent(False,False)]
local procedure OnBeforeAssemblyLinesExist(var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean; var Result: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean
Result Boolean

OnBeforeChangeGenBusPostingGroupAssemblyLines

[IntegrationEvent(False,False)]
local procedure OnBeforeChangeGenBusPostingGroupAssemblyLines(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

ChangeGenBusPostingGroupAssemblyLinesOnBeforeConfirm

[IntegrationEvent(False,False)]
local procedure ChangeGenBusPostingGroupAssemblyLinesOnBeforeConfirm(var AssemblyHeader: Record "Assembly Header"; xAssemblyHeader: Record "Assembly Header"; HideValidationDialog: Boolean; var Confirmed: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
xAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
HideValidationDialog Boolean
Confirmed Boolean
IsHandled Boolean

OnConfirmDeletionOnBeforeAssemblyLineLoop

[IntegrationEvent(False,False)]
local procedure OnConfirmDeletionOnBeforeAssemblyLineLoop(var AssemblyLine: Record "Assembly Line"; var Confirmed: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Confirmed Boolean

OnAfterSetDescriptionsFromItem

[IntegrationEvent(False,False)]
local procedure OnAfterSetDescriptionsFromItem(var AssemblyHeader: Record "Assembly Header"; Item: Record Item)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Item Table Microsoft.Inventory.Item.Item

OnValidateVariantCodeOnAfterUpdateDescriptions

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnAfterUpdateDescriptions(var AssemblyHeader: Record "Assembly Header"; ItemVariant: Record "Item Variant")

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

See also