Codeunit 5520 Get Unplanned Demand

Base Application, Microsoft.Inventory.Requisition

Source AL, 777 lines

src/Layers/W1/BaseApp/Inventory/Requisition/GetUnplannedDemand.Codeunit.allines 16 to 31 of 777, Copyright (c) Microsoft Corporation. MIT

codeunit 5520 "Get Unplanned Demand"{#if not CLEAN28    Permissions = TableData Microsoft.Manufacturing.Document."Production Order" = r,                  TableData Microsoft.Manufacturing.Document."Prod. Order Component" = r,                  TableData Microsoft.Manufacturing.Document."Prod. Order Capacity Need" = r;#endif    TableNo = "Unplanned Demand";    trigger OnRun()#if not CLEAN27    var        ProdOrderComp: Record Microsoft.Manufacturing.Document."Prod. Order Component";#endif    begin        if IncludeMetDemandForSpecificSalesOrderNo <> '' then

All 777 lines

Events 29 in 29

[IntegrationEvent] OnBeforeGetSalesLineNeededQty(SalesLine: Record "Sales Line"; var NeededQty: Decimal; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeOpenPlanningWindow(var RecordCounter: Integer; var ProdOrderComp: Record "Prod. Order Component")17-29
Pending, tag 27.0, obsolete since 27: Replaced by event OnBeforeOpenWindow
[IntegrationEvent] OnBeforeClosePlanningWindow(UnplannedDemand: Record "Unplanned Demand"; var Window: Dialog; NoOfRecords: Integer)17-29
[IntegrationEvent] OnBeforeGetUnplannedSalesLine(var UnplannedDemand: Record "Unplanned Demand"; var SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnBeforeGetUnplannedProdOrderComp(var UnplannedDemand: Record "Unplanned Demand"; var ProdOrderComponent: Record "Prod. Order Component")17-29
Pending, tag 27.0, obsolete since 27: Moved to codeunit ProdOrderLinePlanning
[IntegrationEvent] OnBeforeGetUnplannedAsmLine(var UnplannedDemand: Record "Unplanned Demand"; var AssemblyLine: Record "Assembly Line")17-29
Pending, tag 27.0, obsolete since 27: Moved to codeunit AssemblyLinePlanning
[IntegrationEvent] OnBeforeGetUnplannedJobPlanningLine(var UnplannedDemand: Record "Unplanned Demand"; var JobPlanningLine: Record "Job Planning Line")17-29

All 33 events in 17-29

Public procedures 4 in 29

SetIncludeMetDemandForSpecificSalesOrderNo(SalesOrderNo: Code[20])17-29
SetIncludeMetDemandForSpecificJobNo(JobNo: Code[20])new in 25
InsertUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand"; DemandType: Enum "Unplanned Demand Type"; DemandSubtype: Integer; DemandOrderNo: Code[20]; DemandStatus: Integer)new in 25
UpdateWindow()new in 25

All 16 procedures in 17-29

Changes 6 in 28

List17181920212223242526272829
Procedures693
Events52152123
internal RunOnBeforeGetUnplannedServLine(var UnplannedDemand: Record "Unplanned Demand"; var ServiceLine: Record "Service Line")25 to 27
gone
internal RunOnGetUnplannedServLineOnAfterInsertUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand")25 to 27
gone
internal RunOnInsertServLineOnBeforeInsert(var UnplannedDemand: Record "Unplanned Demand"; ServiceLine: Record "Service Line")25 to 27
gone
[IntegrationEvent] OnBeforeGetUnplannedServLine(var UnplannedDemand: Record "Unplanned Demand"; var ServiceLine: Record "Service Line")gone after 27
gone
[IntegrationEvent] OnGetUnplannedServLineOnAfterInsertUnplannedDemand(var UnplannedDemand: Record "Unplanned Demand")gone after 27
gone
[IntegrationEvent] OnInsertServLineOnBeforeInsert(var UnplannedDemand: Record "Unplanned Demand"; ServiceLine: Record "Service Line")18 to 27
gone

All 48 changes in 17-29