InstallationMicrosoft Dynamics NAV Changes

Microsoft Dynamics NAV Changes

NAV 4 Changes

Error Messages Handling in MS Dynamics NAV 4.0 (All Versions) 
In SCL - Execution Context codeunit for NAV5.0, the GETLASTERRORTEXT function is used for handling error messages automatically, but in NAV4.0 this function does not exist. Therefore, a new public CauseError procedure in code unit 11123305 SCL - Execution Context, has been created to handle error messages manually. This procedure should be used instead of the standard ERROR function in order to get cause errors and rollback transactions in NAV4.0. Also in order to handle standard NAV errors, this procedure can be used in combination with such standard MS Dynamics NAV functions as GET, INSERT, MODIFY, SETCURRENTKEY and so forth. The CauseError procedure has two parameters:
  1. FunctionName [Text 30] - The name of the function that has caused the error;
  2. ErrorMessage [Text 1024] - The text of an error message.
MS Dynamics NAV 4.0 SP3 with Pebblestone Fashion Module 8.21
These are additional changes on the changes described in chapter 'Changed Objects Overview'.
The changes implement a check and excludes response documents, which contain at least one line with a prepacks, from MS Dynamics NAV. This is needed since Sana Commerce does not support prepacks on NAV 4.0 SP3.
 
Object Type ID Object Name Description CalcFormula
Table 36 Sales Header
Field 'SclDocumentContainsPrepacks' (11123309, Flowfield, Boolean) added
Exist("Sales Line" WHERE (Document Type=FIELD(Document Type),Document No.=FIELD(No.),PfsPrepack Code=FILTER(<>'')))
Table 110
Sales Shipment  
Header  
Field 'SclDocumentContainsPrepacks' (11123309, Flowfield, Boolean) added
Exist("Sales Shipment Line" WHERE (Document No.=FIELD(No.),PfsPrepack Code=FILTER(<>'')))
Table 112
Sales Invoice  
Header  
Field 'SclDocumentContainsPrepacks' (11123309, Flowfield, Boolean) added
Exist("Sales Invoice Line" WHERE (Document No.=FIELD(No.),PfsPrepack Code=FILTER(<>'')))
Table 114
Sales Cr.Memo  
Header  
Field 'SclDocumentContainsPrepacks' (11123309, Flowfield, Boolean) added
Exist("Sales Cr.Memo Line" WHERE (Document No.=FIELD(No.),PfsPrepack Code=FILTER(<>'')))
Table 6660
Return Receipt  
Header  
Field 'SclDocumentContainsPrepacks' (11123309, Flowfield, Boolean) added
Exist("Return Receipt Line" WHERE (Document No.=FIELD(No.),PfsPrepack Code=FILTER(<>'')))
 
InstallationMicrosoft Dynamics NAV Changes