Skip to content

KVSMEDWarehouseLib#

Procedures#

GetPickParametersForDocumentLine(Code[10], Code[20], Code[10], Code[10], Code[10], Enum Item Reference Type, Code[20], Code[50], Enum KVSMEDPickMethod, Boolean, DateFormula, DateFormula) :#

procedure GetPickParametersForDocumentLine(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; PostingCode: Code[10]; UoMCode: Code[10]; ReferenceType: Enum "Item Reference Type"; ReferenceTypeNo: Code[20]; ReferenceNo: Code[50]; var PickMethod: Enum "KVSMEDPickMethod"; var SingleLotPicking: Boolean; var OutboundExpireFormula: DateFormula; var InboundExpireFormula: DateFormula): 

CalculateWarehouseContentDetails(Code[10], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Boolean, Record KVSMEDWarehouseContentDetail) :#

Summary: This function calculates whse content detail entries for a location and an item/variant-combination based on delivered parameters and deliver these entries in a temporary table.

procedure CalculateWarehouseContentDetails(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpirationAllowedFrom: Date; UseVariantFilter: Boolean; SkipNotAvailableLines: Boolean; CalculateAllQtyFields: Boolean; var TempWarehouseContentDetail: Record "KVSMEDWarehouseContentDetail" temporary): 

Parameters:

  • LocationCode: This parameter is used for filtering the whse. content detail table to a location code
  • ItemNo: This parameter is used for filtering the whse. content detail table to a item number
  • VariantCode: If this parameter is not blank then it's used for filtering the whse. content detail table to a variant code
  • SerialNo: This parameter is used for filtering the whse. content detail table to a serial number
  • LotNo: This parameter is used for filtering the whse. content detail table to a lot number
  • PostingCode: This parameter ist used for filtering the whse. content detail table to a posting code
  • SingleLotQtyBase: Used to return only position with equal or bigger available qty. as the qty. in this parameter
  • ExpirationAllowedFrom: Used for filtering the whse. content detail table with expiration date which is equal or bigger than this parameter
  • UseVariantFilter: Set the filter on variant code field in whse. content detail table also if parameter VariantCode is blank
  • SkipNotAvailableLines: Used to return only positions with available qty. bigger than zero
  • CalculateAllQtyFields: Steers if all qty. fields should be calculated for user view or only the necessary fields for calculation in processes and functions
  • TempWarehouseContentDetail: Temporary whse. content detail table which contains the results after calculation

CalculateBinContentDetails(Code[10], Code[20], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Boolean, Record KVSMEDBinContentDetail) :#

Summary: This function calculates bin content details based on calculation parameters

procedure CalculateBinContentDetails(LocationCode: Code[10]; BinCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpirationAllowedFrom: Date; OnlyAvailableLines: Boolean; UseVariantFilter: Boolean; OnlyInventoryBins: Boolean; var TempKVSMEDBinContentDetail: Record "KVSMEDBinContentDetail" temporary): 

Parameters:

  • LocationCode:
  • BinCode:
  • ItemNo:
  • VariantCode:
  • SerialNo:
  • LotNo:
  • PostingCode:
  • SingleLotQtyBase:
  • ExpirationAllowedFrom:
  • OnlyAvailableLines:
  • UseVariantFilter:
  • OnlyInventoryBins:
  • TempKVSMEDBinContentDetail: Calculated result

RunInventoryOverview(Code[10], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean) :#

procedure RunInventoryOverview(LocationCode: Code[10]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpAlowedFromDate: Date; OnlyAvailableLine: Boolean; UseVariantFilter: Boolean): 

RunBinInventoryOverview(Code[10], Code[20], Code[20], Code[10], Code[50], Code[50], Code[10], Decimal, Date, Boolean, Boolean, Enum KVSMEDBinInvntOverviewViewMode, Record KVSMEDBinContentDetail) :#

Summary: Opens the KVSMEDBinInventoryOverview page with the specified parameter. Returns the selected KVSMEDBinContentDetail records in view mode "Item Tracking" and "LookUp".

procedure RunBinInventoryOverview(LocationCode: Code[10]; BinCode: Code[20]; ItemNo: Code[20]; VariantCode: Code[10]; SerialNo: Code[50]; LotNo: Code[50]; PostingCode: Code[10]; SingleLotQtyBase: Decimal; ExpAllowedFromDate: Date; OnlyInventoryBins: Boolean; OnlyAvailableLines: Boolean; KVSMEDBinInvntOverviewViewMode: Enum "KVSMEDBinInvntOverviewViewMode"; var TempKVSMEDBinContentDetailResult: Record "KVSMEDBinContentDetail" temporary): 

Parameters:

  • LocationCode:
  • BinCode:
  • ItemNo:
  • VariantCode:
  • SerialNo:
  • LotNo:
  • PostingCode:
  • SingleLotQtyBase:
  • ExpAllowedFromDate:
  • OnlyInventoryBins:
  • OnlyAvailableLines:
  • KVSMEDBinInvntOverviewViewMode:
  • TempKVSMEDBinContentDetailResult: Selected KVSMEDBinContentDetail result record

Events#

OnAfterSalesLine2WhseShipmentLine(Record Sales Line, Record Warehouse Shipment Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSalesLine2WhseShipmentLine(SalesLinePar: Record "Sales Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnAfterSalesLine2WhseShipmentLine', '', false, false)]
local procedure DoSomethingOnAfterSalesLine2WhseShipmentLine(SalesLinePar: Record "Sales Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line")
begin
end;

OnAfterPurchLine2WhseShipmentLine(Record Purchase Line, Record Warehouse Shipment Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterPurchLine2WhseShipmentLine(PurchLinePar: Record "Purchase Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnAfterPurchLine2WhseShipmentLine', '', false, false)]
local procedure DoSomethingOnAfterPurchLine2WhseShipmentLine(PurchLinePar: Record "Purchase Line"; var WhseShipmentLineVar: Record "Warehouse Shipment Line")
begin
end;

OnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Record Job, Record Job Planning Line, Code[20], Code[10]) :#

Summary: This event is fired after the pick document lines for a job have been created. It allows for additional custom code to be inserted that will run after the creation of the pick document lines.

[IntegrationEvent(false, false)]
local procedure OnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Job: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnCreateNewJobPickDocumentOnAfterCreatePickDocLines', '', false, false)]
local procedure DoSomethingOnCreateNewJobPickDocumentOnAfterCreatePickDocLines(Job: Record "Job"; var JobPlanningLine: Record "Job Planning Line"; PickDocumentNo: Code[20]; PickFromLocationCode: Code[10])
begin
end;

Parameters:

  • Job: The job for which the pick document lines were created.
  • JobPlanningLine: The job planning line of the job for which the pick document lines were created.
  • PickDocumentNo: The number of the created pick document.
  • PickLocationCode: The Location code from where the pick is happening.

OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(Record Warehouse Activity Line, Record Job Planning Line) :#

Summary: This event is triggered before the 'Take' action warehouse activity line is inserted during the writing of pick document lines for a job planning line.

[IntegrationEvent(false, false)]
local procedure OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake', '', false, false)]
local procedure DoSomethingOnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityTake(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line")
begin
end;

Parameters:

  • WarehouseActivityLine: The warehouse activity line record that is being manipulated.
  • JobPlanningLine: The production order component record that the pick document line is based on.

OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(Record Warehouse Activity Line, Record Job Planning Line) :#

Summary: This event is triggered before the 'Place' action warehouse activity line is inserted during the writing of pick document lines for a job planning line.

[IntegrationEvent(false, false)]
local procedure OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSMEDWarehouseLib", 'OnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace', '', false, false)]
local procedure DoSomethingOnWriteJobPickDocLineOnBeforeInsertWhseActivityLineWithActivityPlace(var WarehouseActivityLine: Record "Warehouse Activity Line"; var JobPlanningLine: Record "Job Planning Line")
begin
end;

Parameters:

  • WarehouseActivityLine: The warehouse activity line record that is being manipulated.
  • JobPlanningLine: The production order component record that the pick document line is based on.