KVSKBAItemReferenceManagement
Procedures
ReferenceLookupPriceInformationItem(Record KVSKBAPriceInformation, Record Item Reference, Boolean) :
Summary: Performs item reference lookup for price information items with dialog option.
procedure ReferenceLookupPriceInformationItem(var PriceInformation: Record "KVSKBAPriceInformation"; var ReturnedItemReference: Record "Item Reference"; ShowDialog: Boolean):
Parameters:
PriceInformation: Price information record to search item reference forReturnedItemReference: Variable to store the found item referenceShowDialog: Boolean indicating whether to show selection dialog
Remarks: Uses standard item reference management to find or select item references based on price information data including customer-specific references
Events
OnAfterPriceInformationItemItemRefNotFound(Record KVSKBAPriceInformation, Record Item, Record Item Variant) :
Summary: Integration event that allows customization after price information item reference is not found.
[IntegrationEvent(false, false)]
local procedure OnAfterPriceInformationItemItemRefNotFound(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; Item: Record "Item"; ItemVariant: Record "Item Variant"):
Parameters:
KVSKBAPriceInformation: Price information record being processedItem: Item record for fallback descriptionItemVariant: Item variant record for fallback description
Remarks: Use this event to implement custom logic when item reference is not found for price information
OnAfterPriceInformationItemReferenceFound(Record KVSKBAPriceInformation, Record Item Reference) :
Summary: Integration event that allows customization after price information item reference is found.
[IntegrationEvent(false, false)]
local procedure OnAfterPriceInformationItemReferenceFound(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; ItemReference: Record "Item Reference"):
Parameters:
KVSKBAPriceInformation: Price information record being updatedItemReference: Item reference record that was found
Remarks: Use this event to perform additional processing after item reference data has been assigned to price information
OnAfterValidatePriceInformationReferenceNo(Record KVSKBAPriceInformation, Record Item Reference, Record Item Reference) :
Summary: Integration event that allows customization after validating price information reference number.
[IntegrationEvent(false, false)]
local procedure OnAfterValidatePriceInformationReferenceNo(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; ItemReference: Record "Item Reference"; ReturnedItemReference: Record "Item Reference"):
Parameters:
KVSKBAPriceInformation: Price information record that was validatedItemReference: Original item reference recordReturnedItemReference: Item reference record used for validation
Remarks: Use this event to perform additional actions after price information reference validation is complete
OnBeforeEnterPriceInformationItemReference(Record KVSKBAPriceInformation, Record Item Reference, Boolean, Boolean) :
Summary: Integration event that allows customization before entering price information item reference.
[IntegrationEvent(false, false)]
local procedure OnBeforeEnterPriceInformationItemReference(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var ItemReference: Record "Item Reference"; var Found: Boolean; var IsHandled: Boolean):
Parameters:
KVSKBAPriceInformation: Price information record being processedItemReference: Item reference record variableFound: Variable indicating whether item reference was foundIsHandled: Variable indicating whether a subscriber has handled the operation
Remarks: Set IsHandled to true to skip standard item reference entry logic and implement custom behavior
OnBeforeFindItemReferenceForPriceInformation(Record KVSKBAPriceInformation, Record Item Reference, Boolean, Boolean) :
Summary: Integration event that allows customization before finding item reference for price information.
[IntegrationEvent(false, false)]
local procedure OnBeforeFindItemReferenceForPriceInformation(KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var ItemReference: Record "Item Reference"; var Found: Boolean; var IsHandled: Boolean):
Parameters:
KVSKBAPriceInformation: Price information record to search forItemReference: Item reference record variableFound: Variable indicating whether item reference was foundIsHandled: Variable indicating whether a subscriber has handled the search
Remarks: Set IsHandled to true to skip standard item reference search logic and provide custom search implementation
OnBeforePriceInformationReferenceNoLookup(Record KVSKBAPriceInformation, Boolean) :
Summary: Integration event that allows customization before price information reference number lookup.
[IntegrationEvent(false, false)]
local procedure OnBeforePriceInformationReferenceNoLookup(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var IsHandled: Boolean):
Parameters:
KVSKBAPriceInformation: Price information record for which lookup is being performedIsHandled: Variable indicating whether a subscriber has handled the lookup
Remarks: Set IsHandled to true to skip standard reference number lookup and implement custom lookup logic
OnBeforeReferenceLookupPriceInformationItem(Record KVSKBAPriceInformation, Record Item Reference, Boolean, Boolean) :
Summary: Integration event that allows customization before reference lookup for price information item.
[IntegrationEvent(false, false)]
local procedure OnBeforeReferenceLookupPriceInformationItem(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var ItemReference: Record "Item Reference"; ShowDialog: Boolean; var IsHandled: Boolean):
Parameters:
KVSKBAPriceInformation: Price information record being processedItemReference: Item reference record variableShowDialog: Boolean indicating whether to show selection dialogIsHandled: Variable indicating whether a subscriber has handled the lookup
Remarks: Set IsHandled to true to skip standard reference lookup and implement custom lookup behavior
OnEnterPriceInformationItemReferenceCaseElseType(Record KVSKBAPriceInformation, Record Item Reference, Boolean) :
Summary: Integration event that allows customization for non-item types during price information item reference entry.
[IntegrationEvent(false, false)]
local procedure OnEnterPriceInformationItemReferenceCaseElseType(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; var ItemReference: Record "Item Reference"; var Found: Boolean):
Parameters:
KVSKBAPriceInformation: Price information record being processedItemReference: Item reference record variableFound: Variable indicating whether reference was found
Remarks: Use this event to handle custom price information types that are not standard items
OnPriceInformationReferenceNoLookupLookupOnAfterSetFilters(Record Item Reference, Record KVSKBAPriceInformation) :
Summary: Integration event that allows customization of item reference filters during price information reference lookup.
[IntegrationEvent(false, false)]
local procedure OnPriceInformationReferenceNoLookupLookupOnAfterSetFilters(var ItemReference: Record "Item Reference"; KVSKBAPriceInformation: Record "KVSKBAPriceInformation"):
Parameters:
ItemReference: Item reference record with applied filtersKVSKBAPriceInformation: Price information record providing filter context
Remarks: Use this event to add additional filters to item reference lookup based on price information context
OnValidatePriceInformationReferenceNoOnAfterAssignNo(Record KVSKBAPriceInformation, Record Item Reference) :
Summary: Integration event that allows customization after assigning item reference data during validation.
[IntegrationEvent(false, false)]
local procedure OnValidatePriceInformationReferenceNoOnAfterAssignNo(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; ReturnedItemReference: Record "Item Reference"):
Parameters:
KVSKBAPriceInformation: Price information record that was updatedReturnedItemReference: Item reference record used for assignment
Remarks: Use this event to perform additional actions after item reference data has been assigned to price information
OnValidatePriceInformationReferenceNoOnBeforeAssignNo(Record KVSKBAPriceInformation, Record Item Reference) :
Summary: Integration event that allows customization before assigning item reference data during validation.
[IntegrationEvent(false, false)]
local procedure OnValidatePriceInformationReferenceNoOnBeforeAssignNo(var KVSKBAPriceInformation: Record "KVSKBAPriceInformation"; ReturnedItemReference: Record "Item Reference"):
Parameters:
KVSKBAPriceInformation: Price information record to be updatedReturnedItemReference: Item reference record to be used for assignment
Remarks: Use this event to modify item reference data before it is assigned to price information