KVSFCYSourceLocation#
Fields#
| Name | Type | Note |
|---|---|---|
| Code | Code[20] | |
| Source Type | Enum (KVSFCYSourceLocationSourceType) | |
| Source Code | Code[20] | |
| Type | Enum (KVSFCYSourceLocationType) | |
| Starting Date | Date | |
| Ending Date | Date | |
| Location Type | Enum (KVSFCYLocationType) | |
| Location Code | Code[10] |
Procedures#
CheckDate() :#
Summary: Validates that the starting date is not after the ending date for the source location record. This procedure ensures logical date consistency by checking that the starting date comes before or equals the ending date when both dates are specified. An error is raised if the starting date is after the ending date. Used to maintain data integrity for date ranges in source location configurations.
procedure CheckDate():
Events#
OnBeforeCheckCombination(Record KVSFCYSourceLocation, Boolean) :#
Summary: Event before checking combination for source location.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckCombination(SourceLocation: Record "KVSFCYSourceLocation"; var Handled: Boolean):
[EventSubscriber(ObjectType::Table, Table::"KVSFCYSourceLocation", 'OnBeforeCheckCombination', '', false, false)]
local procedure DoSomethingOnBeforeCheckCombination(SourceLocation: Record "KVSFCYSourceLocation"; var Handled: Boolean)
begin
end;
Parameters:
SourceLocation: Source location record.Handled: Set to true if handled.