when the function is called.

basic0220
Member Posts: 43
HI Guys.
I'm trying to edit Codeunit 231 (Gen. Jnl.-Post)
it's for replicating the Preview G/L entries.
BTW I'm using Nav 2018 11.0.19394
I'm getting this error message then i'm trying to write
"IF NOT CODE THEN BEGIN"

I don't quite understand this error
thank you for who's gonna answer
I'm trying to edit Codeunit 231 (Gen. Jnl.-Post)
it's for replicating the Preview G/L entries.
BTW I'm using Nav 2018 11.0.19394
I'm getting this error message then i'm trying to write
"IF NOT CODE THEN BEGIN"

I don't quite understand this error
thank you for who's gonna answer
0
Answers
-
code function have parameter , you need to pass that parameter.
please share your code function screenshot0 -
NavSolution wrote: »code function have parameter , you need to pass that parameter.
please share your code function screenshot0 -
IF condition work with Boolean Return value TRUE or FALSE0
-
The requireed parameter is GenJnlLine. So the line needs to be
If Not Code(GenJnlLine) Then BEGIN1 -
solution:
step1: create new function same as code , name it Code123(Any) -Just copy code function and paste it and change name.
step2:goto code123 locals ,in Return Tab select return type Boolean.
step3:use this code-If Not Code123(GenJnlLine) Then BEGIN0 -
you should probably use GenJnlPostBatch.RUN instead of Code1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions