KVSFCYItemTrackingDocMgtSubsc#
Events#
OnBeforeRetrieveDocumentItemTracking(Record Tracking Specification, Code[20], Integer, Option, Boolean) :#
Summary: Integration event that is raised before retrieving document item tracking information from source documents, providing an extension point for implementing custom item tracking retrieval logic or handling additional source document types beyond standard processing for Sales Headers and related job planning line scenarios.
[IntegrationEvent(false, false)]
local procedure OnBeforeRetrieveDocumentItemTracking(var TempTrackingSpecBuffer: Record "Tracking Specification" temporary; SourceID: Code[20]; SourceType: Integer; SourceSubType: Option; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYItemTrackingDocMgtSubsc", 'OnBeforeRetrieveDocumentItemTracking', '', false, false)]
local procedure DoSomethingOnBeforeRetrieveDocumentItemTracking(var TempTrackingSpecBuffer: Record "Tracking Specification" temporary; SourceID: Code[20]; SourceType: Integer; SourceSubType: Option; var IsHandled: Boolean)
begin
end;
Parameters:
TempTrackingSpecBuffer: Temporary Tracking Specification record (passed by reference) that will receive the retrieved item tracking information, allowing extensions to populate tracking data for custom document types or business scenarios.SourceID: Code[20] value containing the source document identifier (document number) for which item tracking information should be retrieved, providing context for document-specific tracking lookup operations.SourceType: Integer value specifying the source table ID (e.g., Database::"Sales Header") that identifies the type of source document being processed, enabling table-specific tracking retrieval logic.SourceSubType: Option value containing the source document subtype (e.g., document type for Sales Header), providing additional context for document-specific item tracking processing and filtering logic.IsHandled: Boolean variable (passed by reference) that should be set to true by the extension if it has completely handled the document item tracking retrieval operation, preventing execution of standard tracking retrieval logic.