Report 5130118 M365 Job Create Prod. Order

Report 5130118 M365 Job Create Prod. Order

LanguageCaption
de-DEFertigungsauftrag aus Disposition erstellen
es-ESCreación de proyecto Orden de Prod. DC
en-USProject Create Prod. Order DC
it-CHDc ordine prod.
it-ITDc ordine prod.

Methods

CreateProdOrderHeader

procedure CreateProdOrderHeader(jobStructDispoTemp: Record "M365 Job Structure Disposition" temporary; var forProdOrderHeader: Record "Production Order"; forProdOrderStatus: Option " Simulated",Planned,"Firm Planned",Released,Finished)

Parameters / Return Value

  • jobStructDispoTemp Record "M365 Job Structure Disposition"

  • forProdOrderHeader Record "Production Order"

  • forProdOrderStatus Option

    " Simulated" (0) , Planned (1) , "Firm Planned" (2) , Released (3) , Finished (4)


CreateProdOrderLine

procedure CreateProdOrderLine(jobStructDispoTemp: Record "M365 Job Structure Disposition"; planningLevel: Integer; forProdOrderHeader: Record "Production Order"; firstProdOrder: Boolean)

Parameters / Return Value

  • jobStructDispoTemp Record "M365 Job Structure Disposition"

  • planningLevel Integer

  • forProdOrderHeader Record "Production Order"

  • firstProdOrder Boolean


SetDefaults

procedure SetDefaults(forOrderType: Option ProjectOrder,ItemOrder; forDirect: Option Forward,Backward; doCreateStockOrders: Boolean)

Parameters / Return Value

  • forOrderType Option

    ProjectOrder (0) , ItemOrder (1)

  • forDirect Option

    Forward (0) , Backward (1)

  • doCreateStockOrders Boolean


RebuildOperationNos

procedure RebuildOperationNos(var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

AddLine

procedure AddLine(jobStructureDispositionTemp: Record "M365 Job Structure Disposition" temporary)

Parameters / Return Value

  • jobStructureDispositionTemp Record "M365 Job Structure Disposition"

Events

OnAfterGetJobStructureDisposition

local procedure OnAfterGetJobStructureDisposition(var prodOrderLine: Record "Prod. Order Line"; jobStructureNo: Code[20]; jobStructureEntryNo: Integer)

Parameters / Return Value

  • prodOrderLine Record "Prod. Order Line"

  • jobStructureNo Code[20]

  • jobStructureEntryNo Integer


OnBeforModifyProdOrderRtngLine

local procedure OnBeforModifyProdOrderRtngLine(var prodOrderRtngLine: Record "Prod. Order Routing Line"; var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • prodOrderRtngLine Record "Prod. Order Routing Line"

  • jobStructLine Record "M365 Job Structure Line"


OnAfterModifyProdOrderComp

local procedure OnAfterModifyProdOrderComp(var prodOrderLine: Record "Prod. Order Line"; var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • prodOrderLine Record "Prod. Order Line"

  • jobStructLine Record "M365 Job Structure Line"


OnBeforModifyProdOrderLine

local procedure OnBeforModifyProdOrderLine(var jobStructLine: Record "M365 Job Structure Line"; var prodOrderRtngLine: Record "Prod. Order Routing Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

  • prodOrderRtngLine Record "Prod. Order Routing Line"


OnBeforInsertProdOrderLine

local procedure OnBeforInsertProdOrderLine(var prodOrderLine: Record "Prod. Order Line"; var jobStructLineStatus: Record "M365 Job Structure Line")

Parameters / Return Value

  • prodOrderLine Record "Prod. Order Line"

  • jobStructLineStatus Record "M365 Job Structure Line"


OnBeforeModifyProdOrderLine

local procedure OnBeforeModifyProdOrderLine(var prodOrderLine: Record "Prod. Order Line"; jobStructLineStatus: Record "M365 Job Structure Line")

This event is triggered before modifying a new production order line created.

Parameters / Return Value

  • prodOrderLine Record "Prod. Order Line"

    The production order line record that will be modified.

  • jobStructLineStatus Record "M365 Job Structure Line"

    The job structure line record associated with the production order line.


OnBeforModifyProdOrderRtngLineSec

local procedure OnBeforModifyProdOrderRtngLineSec(var prodOrderRtngLine: Record "Prod. Order Routing Line"; var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • prodOrderRtngLine Record "Prod. Order Routing Line"

  • jobStructLine Record "M365 Job Structure Line"


OnBeforeOnAfterGetRecord

local procedure OnBeforeOnAfterGetRecord(var jobStructDisp: Record "M365 Job Structure Disposition"; var handled: Boolean)

Parameters / Return Value

  • jobStructDisp Record "M365 Job Structure Disposition"

  • handled Boolean


OnAfterSetFilterforRouting

local procedure OnAfterSetFilterforRouting(var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

OnAfterSetFilterForComponent

local procedure OnAfterSetFilterForComponent(var jobStructLine: Record "M365 Job Structure Line")

Parameters / Return Value

  • jobStructLine Record "M365 Job Structure Line"

OnBeforeModifyProdOrderHeader

local procedure OnBeforeModifyProdOrderHeader(var prodOrderHeader: Record "Production Order"; var jobStructDispoTemp: Record "M365 Job Structure Disposition" temporary)

Parameters / Return Value

  • prodOrderHeader Record "Production Order"

  • jobStructDispoTemp Record "M365 Job Structure Disposition"



EOS Labs -