Hi everybody,
Im having a problem validating a field from a table from a codeunit:
The code is
serlines.SETFILTER(Document no, 'ps-60006');
if serlines.FINDFIRST THEN BEGIN
Serlines.VALIDATE(Serlines.Shortcut dimension 1 code, 'SAT');
Serlines.MODIFY;
END;
Anyone can see the problem?, im begginer and i'm going crazy...
Thanks in advance,
Regards,Jon.
Sorry by doble post, please drop this question...
0
Answers
I dont know what your table SerLines is, but usually other tables (Sales Header,...) have a
DimMgmt.ValidateShortcutDim in them handling the validation with the preset dimension values.
You might wanna look into that to understand whats going on.
Table 36 - Sales Header - Global Dimension 1 Code - OnValidate
Thanks a lot!
Regards,Jon.