KVSFCYEDIVDAFunctions#
Procedures#
NormaliseDocumentNoVDA(Text[30], Boolean, Integer) :#
Summary: Normalizes document numbers for VDA EDI format compliance with configurable filtering and length restrictions. This procedure standardizes document numbers to meet VDA (Verband der Automobilindustrie) EDI specifications by optionally filtering to numeric characters only and enforcing maximum length constraints. For numeric-only normalization, it extracts all numeric characters while preserving their sequence. For length enforcement, it applies right-truncation to retain the most significant characters when document numbers exceed the specified maximum length. The procedure ensures document number compatibility with automotive industry EDI standards while maintaining document identification integrity through controlled normalization that preserves essential identification characteristics for reliable document matching and processing workflows.
procedure NormaliseDocumentNoVDA(var DocumentNoVar: Text[30]; OnlyNumericPar: Boolean; MaxLengthPar: Integer):
Parameters:
DocumentNoVar: The document number to normalize, modified in place with applied normalization rules including character filtering and length constraints based on VDA EDI format requirements.OnlyNumericPar: When true, filters the document number to contain only numeric characters (0-9), removing all alphabetic and special characters to ensure numeric-only format compliance.MaxLengthPar: Maximum allowed length for the normalized document number; when greater than 0, truncates from the left to preserve the rightmost characters within the specified length limit.