Find Out if No. Series are in use ...
 
            
                
                    elTorito                
                
                    Member Posts: 191                
            
                        
            
                    Exists any way for look if the No. Series in the G/L are in use?
We have a lot of No. Series where i thinks that are not in used. But I'm not sure. I have try Delete No. Series for look if they make an error that could not delete it because are in use, but, alle the No. Series can be delete without ask if are in used or not.
Okay. Its Only a Reference Table. Buit perhaps anybody knows a little Tipp for find it out if are a No Serie in use or not.
Thanks.
                We have a lot of No. Series where i thinks that are not in used. But I'm not sure. I have try Delete No. Series for look if they make an error that could not delete it because are in use, but, alle the No. Series can be delete without ask if are in used or not.
Okay. Its Only a Reference Table. Buit perhaps anybody knows a little Tipp for find it out if are a No Serie in use or not.
Thanks.
(Oo)=*=(oO)
0                
            Comments
- 
            Well.. You could look at the No. series and at the fields "Last date used" and "Last No. used". If these are both blank... well.. maybe it hasn't been used! Best regards Best regards
 Tommy0
- 
            Or you could make a small job that goes through all fields related to the no. series table. (Using the system table called "Field")
 Then using RecordRef and FieldRef you could check if they are all used.
 I guess you should ignore tables that end with Entry - otherwise it would take ages 8)Regards
 Peter0
- 
            Couldn't help it. (Needed a short break :oops: )Variables: Name DataType Subtype Field Record Field NoSeries Record No. Series RecRef RecordRef FldRef FieldRef OnRun() Field.SETRANGE(Field.RelationTableNo,DATABASE::"No. Series"); IF Field.FIND('-') THEN REPEAT RecRef.OPEN(Field.TableNo); IF STRPOS(RecRef.NAME,'Entry') = 0 THEN IF RecRef.FIND('-') THEN REPEAT FldRef := RecRef.FIELD(Field."No."); IF NoSeries.GET(FldRef.VALUE) THEN NoSeries.MARK(TRUE); UNTIL RecRef.NEXT = 0; UNTIL Field.NEXT = 0; MESSAGE('Any record NOT marked is NOT referenced from any field with a table relation to it.'); FORM.RUN(0,NoSeries);Regards
 Peter0
- 
            Get back to work dude! Best regards Best regards
 Tommy0
- 
            Tommy Schou wrote:Well.. You could look at the No. series and at the fields "Last date used" and "Last No. used". If these are both blank... well.. maybe it hasn't been used! 
 Hmm Well. But if i Make New Item oder New Vendor ... and Set Manually No. then the Date and LastNr Getted, will don't change.(Oo)=*=(oO)0
- 
            pdj wrote:Or you could make a small job that goes through all fields related to the no. series table. (Using the system table called "Field")
 Then using RecordRef and FieldRef you could check if they are all used.
 I guess you should ignore tables that end with Entry - otherwise it would take ages 8)
 Hmmpf. ... I can't find System Table "Field" :?: :roll:
 What Id's have the System Tables ?
 Thanks
 Peter(Oo)=*=(oO)0
- 
            You cannot see it in Object Designer. Make a list form on table 2000000041 (Field).0
- 
            law wrote:You cannot see it in Object Designer. Make a list form on table 2000000041 (Field).
 Thanks. Now I'm Trying with the Code from Peter.
 I create a new No. Serie but it doesn't seem to Mark it.
 But it's a good base, perhaps i must experiment a little bit.
 Thanks you.
 Peter(Oo)=*=(oO)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
- 322 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


