Skip to content

KVSFCYItemAvailFormsMgmt#

Procedures#

CalcDelScheduleDemandQty(Record Item) : Decimal#

Summary: Calculates the total outstanding demand quantity from delivery schedules for a specified item. Processes actual delivery schedule entries within the item's filtered date range, location, and variant constraints. For each delivery schedule, verifies that the header is not blocked before loading schedule lines into a buffer. Accumulates the net demand by summing scheduled quantities minus already shipped quantities across all applicable delivery schedule lines. Maintains an internal buffer of delivery schedule lines for subsequent detailed analysis or display operations, supporting comprehensive item availability calculations in delivery planning workflows.

procedure CalcDelScheduleDemandQty(var Item: Record "Item"): Decimal

Parameters:

  • Item: Item record with applied filters for date range, location, and variant to constrain delivery schedule demand calculation.

Returns: Total outstanding delivery schedule demand quantity as Decimal - sum of unshipped quantities across all applicable delivery schedules.

ShowItemAvailFromJobPlanningLine(Record Job Planning Line, Option) :#

Summary: Displays item availability analysis forms based on job planning line context with interactive modification capabilities. Validates that the job planning line contains an item-type entry with a valid item number, then retrieves the item record and applies contextual filtering based on location, variant, and planning date from the job planning line. Presents different availability views (Period, Variant, Location, Event, BOM) based on the specified availability type, allowing users to interactively select alternative values which are automatically validated back to the job planning line. Supports comprehensive job planning workflows by providing real-time availability insights and enabling dynamic adjustments to planning parameters directly from availability analysis interfaces.

procedure ShowItemAvailFromJobPlanningLine(var JobPlanningLineVar: Record "Job Planning Line"; AvailabilityType: Option): 

Parameters:

  • JobPlanningLineVar: Job planning line record containing item context and planning parameters, modified with user selections from availability forms.
  • AvailabilityType: Option specifying the type of availability analysis to display - Date, Variant, Location, Event, or BOM level analysis.

CalcPurchDelScheduleDemandQty(Record Item) : Decimal#

Summary: Calculates the total outstanding supply quantity from purchase delivery schedules for a specified item. Processes actual purchase delivery schedule entries within the item's filtered date range, location, and variant constraints. For each purchase delivery schedule, verifies that the header is not blocked before loading schedule lines into a buffer. Accumulates the net supply by summing scheduled quantities minus already received quantities across all applicable purchase delivery schedule lines. Maintains an internal buffer of purchase delivery schedule lines for subsequent detailed analysis or display operations, supporting comprehensive item availability calculations in procurement planning workflows.

procedure CalcPurchDelScheduleDemandQty(var Item: Record "Item"): Decimal

Parameters:

  • Item: Item record with applied filters for date range, location, and variant to constrain purchase delivery schedule supply calculation.

Returns: Total outstanding purchase delivery schedule supply quantity as Decimal - sum of unreceived quantities across all applicable purchase delivery schedules.