Posted  05 May 2009 - 10:43:11

Category: Navision

NAV: Define the variable under 'Global C/AL symbols'.

When using a function from another codeunit in Navision you get the error message:

You have specified an unknown variable.
Define the variable under 'Global C/AL symbols'.

Normally this is the case, you don't have the function defined. In some cases (mine) this happens because your function in the other codeunit is not declared as public. Here is how you do it:

  1. Open the code of the codeunit where the external function resides.
  2. Go to View / Globals.
  3. Click Functions
  4. Select the function and press "Shift + F4" to bring up the properties.
  5. Set "Local" to "No".
  6. Close all code windows and open the calling codeunits code again and try calling the external function again.

Marked as helpful by 13 users


1/10/2017 1:39:34 PM  JP  wrote:

Its Very help full its Really Work. - Thank Yoy

10/7/2015 11:17:42 PM  Lewis  wrote:

It was helpful

8/22/2011 12:22:53 PM  preczeo  wrote:

what the spep 1....Ecternal function? othe steps are ok..Plz explin

© SolutionCottage 2008-2011 9/26/2017 10:05:00 AM