Skip to content

KVSKBAItemLib#

Procedures#

GetLineInfos(Record Production BOM Line, Code[20], Code[20]) :#

procedure GetLineInfos(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20]): 

ShowRoutingNo(Record Item) :#

Summary: Function show the routing card or routing bom version card, depending on Item."Routing No." If Item."Routing No." empty, a new routing is created.

procedure ShowRoutingNo(var Item: Record "Item"): 

Parameters:

  • Item:

ShowProductionBOMNo(Record Item) :#

Summary: Function show the production bom card or production version card If Item."Production BOM No." empty, a new "Production BOM Header" is created.

procedure ShowProductionBOMNo(var Item: Record "Item"): 

Parameters:

  • Item:

CheckSalesBlocked(Record Sales Line) :#

procedure CheckSalesBlocked(SalesLine: Record "Sales Line"): 

TestNoEntriesExist(Text[100], Record Item) :#

procedure TestNoEntriesExist(CurrentFieldName: Text[100]; Item: Record "Item"): 

IsVariantCodeMandatory(Code[20], Decimal) : Boolean#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: Returns if item variant is mandatory

[Obsolete('This procedure is no longer supported, please use procedure IsVariantCodeMandatory with Parameter RecRelatedVariant, so that you can see the origin of the request in the event OnBeforeIsVariantCodeMandator', '22.4')]
procedure IsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal): Boolean

Parameters:

  • ItemNo:
  • Quantity:

Returns:

IsVariantCodeMandatory(Code[20], Decimal, Variant) : Boolean#

Summary: Returns if item variant is mandatory

procedure IsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant): Boolean

Parameters:

  • ItemNo:
  • Quantity:
  • RecRelatedVariant:

Returns:

CheckItemVariantBlockedTab5407(Record Prod. Order Component) :#

procedure CheckItemVariantBlockedTab5407(ProdOrderComponent: Record "Prod. Order Component"): 

CheckItemVariantBlockedTab5741(Record Transfer Line) :#

procedure CheckItemVariantBlockedTab5741(TransferLine: Record "Transfer Line"): 

GetErrorTextByVariantMandatory(Code[20]) : Text[100]#

procedure GetErrorTextByVariantMandatory(ItemNo: Code[20]): Text[100]

Events#

OnBeforeCheckSalesBlocked(Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckSalesBlocked(SalesLine: Record "Sales Line"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckSalesBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckSalesBlocked(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;

OnBeforeCheckItemIfInInv(Record Item Journal Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemIfInInv(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemIfInInv', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemIfInInv(ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;

OnBeforeCheckItemVariantBlockedTablePurchaseLine(Record Purchase Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTablePurchaseLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTablePurchaseLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTablePurchaseLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;

OnBeforeCheckItemVariantBlockedTableSalesLine(Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckItemVariantBlockedTableSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeCheckItemVariantBlockedTableSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckItemVariantBlockedTableSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

OnBeforeGetLineInfosProductionBOMLineTypeCaseElse(Record Production BOM Line, Code[20], Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetLineInfosProductionBOMLineTypeCaseElse(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeGetLineInfosProductionBOMLineTypeCaseElse', '', false, false)]
local procedure DoSomethingOnBeforeGetLineInfosProductionBOMLineTypeCaseElse(ProductionBOMLine: Record "Production BOM Line"; var RoutingNo: Code[20]; var ProductionBOMNoLine: Code[20])
begin
end;

OnBeforeShowRoutingNo(Record Item, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeShowRoutingNo(var Item: Record "Item"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowRoutingNo', '', false, false)]
local procedure DoSomethingOnBeforeShowRoutingNo(var Item: Record "Item"; var Handled: Boolean)
begin
end;

OnBeforeShowRoutingNofromSKU(Record Stockkeeping Unit, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeShowRoutingNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowRoutingNofromSKU', '', false, false)]
local procedure DoSomethingOnBeforeShowRoutingNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean)
begin
end;

OnShowRoutingNofromSKUOnBeforeGenerateLongNoText(Record Stockkeeping Unit, Text[100], Text[1], Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnShowRoutingNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnShowRoutingNofromSKUOnBeforeGenerateLongNoText', '', false, false)]
local procedure DoSomethingOnShowRoutingNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean)
begin
end;

OnBeforeShowProductionBOMNo(Record Item, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeShowProductionBOMNo(var Item: Record "Item"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowProductionBOMNo', '', false, false)]
local procedure DoSomethingOnBeforeShowProductionBOMNo(var Item: Record "Item"; var Handled: Boolean)
begin
end;

OnBeforeShowProductionBOMNofromSKU(Record Stockkeeping Unit, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeShowProductionBOMNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeShowProductionBOMNofromSKU', '', false, false)]
local procedure DoSomethingOnBeforeShowProductionBOMNofromSKU(var SKU: Record "Stockkeeping Unit"; var IsHandled: Boolean)
begin
end;

OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(Record Stockkeeping Unit, Text[100], Text[1], Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText', '', false, false)]
local procedure DoSomethingOnShowProductionBOMNofromSKUOnBeforeGenerateLongNoText(SKU: Record "Stockkeeping Unit"; var LongNoText: Text[100]; var TextSeparator: Text[1]; var IsHandled: Boolean)
begin
end;

OnBeforeOnvalidateReorderingPolicy(Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeOnvalidateReorderingPolicy(var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeOnvalidateReorderingPolicy', '', false, false)]
local procedure DoSomethingOnBeforeOnvalidateReorderingPolicy(var Handled: Boolean)
begin
end;

OnCheckSalesBlockedCaseElseSalesLineType(Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedCaseElseSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedCaseElseSalesLineType', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedCaseElseSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;

OnCheckSalesBlockedCaseItemSalesLineType(Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedCaseItemSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedCaseItemSalesLineType', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedCaseItemSalesLineType(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;

OnCheckSalesBlockedOnBeforePreCheck(Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCheckSalesBlockedOnBeforePreCheck(SalesLine: Record "Sales Line"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckSalesBlockedOnBeforePreCheck', '', false, false)]
local procedure DoSomethingOnCheckSalesBlockedOnBeforePreCheck(SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;

OnCheckPurchaseBlockedOnBeforePreCheck(Record Purchase Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnCheckPurchaseBlockedOnBeforePreCheck(PurchaseLine: Record "Purchase Line"; var Handled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnCheckPurchaseBlockedOnBeforePreCheck', '', false, false)]
local procedure DoSomethingOnCheckPurchaseBlockedOnBeforePreCheck(PurchaseLine: Record "Purchase Line"; var Handled: Boolean)
begin
end;

OnBeforeIsVariantCodeMandatory(Code[20], Decimal, Variant, Boolean, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeIsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant; var VariantCodeIsMandatory: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemLib", 'OnBeforeIsVariantCodeMandatory', '', false, false)]
local procedure DoSomethingOnBeforeIsVariantCodeMandatory(ItemNo: Code[20]; Quantity: Decimal; RecRelatedVariant: Variant; var VariantCodeIsMandatory: Boolean; var IsHandled: Boolean)
begin
end;