Skip to content

KVSFCYDispatchUnitLib#

Procedures#

CreateTransferforDispatchUnitFromProdOrder(Record KVSFCYEDMonitoringLineBuffer, Record Transfer Header) :#

Summary: Creates transfer orders for dispatch units from production order monitoring data with validation and processing. This procedure orchestrates the complete workflow for transferring dispatch units by processing engineering design monitoring line buffer entries, filtering out empty dispatch unit codes, validating project-specific restrictions, and creating corresponding transfer documents. It handles both component-corresponding dispatch units and standard dispatch units, manages quantity transfers, marks records for processing, and coordinates with the transfer creation system to generate proper transfer headers and lines. The procedure includes comprehensive validation to prevent project-spanning dispatch units and ensures proper quantity allocation before transfer execution.

procedure CreateTransferforDispatchUnitFromProdOrder(var EDMonitorLineVar: Record "KVSFCYEDMonitoringLineBuffer"; var TransHeaderVar: Record "Transfer Header"): 

Parameters:

  • EDMonitorLineVar: The engineering design monitoring line buffer containing dispatch unit transfer requirements and production order references to be processed into transfer documents.
  • TransHeaderVar: Returns the created transfer header record with complete transfer document information including document number, routing, and processing status.

ShowLogUnitList(Record KVSFCYEDMonitoringLineBuffer) :#

Summary: Displays the appropriate dispatch unit list page based on engineering design monitoring line buffer context. This procedure determines the correct dispatch unit view to present to the user by analyzing the production order component configuration and job-specific dispatch unit settings. It supports both project-specific and standard dispatch unit scenarios, opening the dispatch unit list page with appropriate filtering based on the production order context. For job-specific dispatch units, it displays all dispatch units for the production order, while for standard dispatch units, it filters the list to show only dispatch units associated with the specific production order status and number from the monitoring line buffer.

procedure ShowLogUnitList(edMonitoringLineBufferPar: Record "KVSFCYEDMonitoringLineBuffer"): 

Parameters:

  • edMonitoringLineBufferPar: The engineering design monitoring line buffer record containing production order references and dispatch unit configuration that determines the filtering and display context for the dispatch unit list.

GetDispatchUnitFromEDMonitorLine(Record KVSFCYDocumentDispatchUnit, Record KVSFCYEDMonitoringLineBuffer) : Boolean#

Summary: Retrieves the appropriate dispatch unit record based on engineering design monitoring line buffer configuration. This procedure analyzes the monitoring line buffer to determine the correct dispatch unit retrieval strategy, supporting job-specific dispatch units, component-corresponding dispatch units, and standard dispatch units. For job-specific scenarios, it searches by job reference with empty production order identifiers. For component- corresponding scenarios, it delegates to production order component processing to retrieve the associated dispatch unit. For standard scenarios, it directly retrieves the dispatch unit using production order status and number. The procedure handles the complex dispatch unit type hierarchy and provides a unified interface for dispatch unit lookup across different engineering design monitoring contexts, ensuring proper dispatch unit association with production order workflows and job planning integration.

procedure GetDispatchUnitFromEDMonitorLine(var DispatchUnitProdOrderVar: Record "KVSFCYDocumentDispatchUnit"; var EDMonitoringLineBufferVar: Record "KVSFCYEDMonitoringLineBuffer"): Boolean

Parameters:

  • DispatchUnitProdOrderVar: Returns the retrieved dispatch unit production order record with complete dispatch unit information and production order associations.
  • EDMonitoringLineBufferVar: The engineering design monitoring line buffer containing configuration data and references that determine the dispatch unit retrieval strategy and filtering parameters.

Returns: True if a matching dispatch unit record was found and retrieved successfully; False if no matching dispatch unit could be located based on the monitoring line buffer configuration.

InitQtyToTransferInDispatch(Record KVSFCYEDMonitoringLineBuffer) :#

Summary: Initializes the quantity to transfer in dispatch units based on component availability and current dispatch unit allocations. This procedure calculates and sets the available transfer quantity for component-corresponding dispatch units by analyzing production order component consumption status and existing dispatch unit quantity allocations. It retrieves the associated dispatch unit record and production order component, then validates quantity availability through component consumption analysis and dispatch unit quantity calculations. The procedure ensures that transfer quantities do not exceed available component quantities by accounting for already posted consumption and existing dispatch unit allocations. This supports accurate transfer planning in engineering design workflows by providing realistic quantity constraints based on actual production order component availability and dispatch unit transfer requirements.

procedure InitQtyToTransferInDispatch(var EDMonitoringLineBufferVar: Record "KVSFCYEDMonitoringLineBuffer"): 

Parameters:

  • EDMonitoringLineBufferVar: The engineering design monitoring line buffer record to update with calculated transfer quantity, containing component and dispatch unit configuration data for quantity calculation and validation.