No. series problem

vg2809
Member Posts: 14
Without the help of this forum, it would have been difficult to solve some of the problems encountered, like , file processing etc.
As an inexperienced person, I find the belowmentioned problem, unsolvable .
While adding records to journal file, I use "NoSeriesMgt(TryGetNextNo(journalBatch."No. Series",TODAY) to get the document no., based on the series and date ( TODAY ). But the no needs to be incremented and I
modify the noseries line with the document no. and date .
If I dont modify, the no is not incremented . If I modify, posting fails with incorrect document no. Can anybody help . Thanks
As an inexperienced person, I find the belowmentioned problem, unsolvable .
While adding records to journal file, I use "NoSeriesMgt(TryGetNextNo(journalBatch."No. Series",TODAY) to get the document no., based on the series and date ( TODAY ). But the no needs to be incremented and I
modify the noseries line with the document no. and date .
If I dont modify, the no is not incremented . If I modify, posting fails with incorrect document no. Can anybody help . Thanks
0
Comments
-
Have you tried it with
NoSeriesMgt.GetNextNo(JournalBatch."No. Series", TODAY, TRUE); ?
The last Parameter says: Modify (Increase) NOS or not.
Regards,
Frank0 -
I did try separately with TRUE as well as FALSE .
TRUE increases the no. to next .
FALSE only gets the same no.
The problem with TRUE is that since it increases the no. posting fails .
The problem with FALSE is that the solution works ONLY for one voucher.
At a time I want to update many vouchers, in which case, since the no.
is not incremented, all the vouchers have the same no . Posting goes thru
OK. But the no. cannot be the same .0 -
You can check function SetupNewLine in Table 81.
take the first document no with NoSeriesMgt.TryGetNextNo and for the others you can just increment the document no.0
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