NAS Posting

Betrachter84
Member Posts: 62
hi
im running purchase and direct order shipments posting with nas. Usually this works well, but sometimes the system loggs an error saying a dialog variable can't be used with NAS. This error appears whil posting a receipt with serial no's.
I've "cleaned" codeunits 80,90 and 6500 by adding IF GUIALLOWED THEN ... in front of every dialog variable. Somewhere i must have missed one.
Has somebody done the same thing and could tell me which codeunits i need to clean as well?
Thanks for any tips!
im running purchase and direct order shipments posting with nas. Usually this works well, but sometimes the system loggs an error saying a dialog variable can't be used with NAS. This error appears whil posting a receipt with serial no's.
I've "cleaned" codeunits 80,90 and 6500 by adding IF GUIALLOWED THEN ... in front of every dialog variable. Somewhere i must have missed one.
Has somebody done the same thing and could tell me which codeunits i need to clean as well?
Thanks for any tips!
0
Comments
-
If I remmember correctly, somewhere in the code the form variable is used to call functions from the form, even when the form is not displayed. I think it was using the form for entering Item Tracking.0
-
exactly, the form variable was another problem. i had to copy the whole code from the form into the item tracking codeunit to make it work. before it throwed an error that it can't use form variables with nas, what makes sense in my opinion.
it mus be somewhere else though...0 -
I have also replaced the USERID in the posting codeunits with a function from a single instance codeunit. I replace USERID with UserMgt.GetUserID and before starting the posting task I use UserMgt.SetUserID("Job Queue Entry"."User ID") and after the posting finishes I call UserMgt.SetUserID('')
GetUserID() : Code[20]
IF InstanceUserID = '' THEN
EXIT(USERID)
ELSE
EXIT(InstanceUserID);
SetUserID(NewUserID : Code[20])
InstanceUserID := NewUserID;________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
Is inventory directly posted and valued? (not the revaluate report)
That also shows a dialog, codeunit is 58950 -
thegunzo wrote:I have also replaced the USERID in the posting codeunits with a function from a single instance codeunit. I replace USERID with UserMgt.GetUserID and before starting the posting task I use UserMgt.SetUserID("Job Queue Entry"."User ID") and after the posting finishes I call UserMgt.SetUserID('')
GetUserID() : Code[20]
IF InstanceUserID = '' THEN
EXIT(USERID)
ELSE
EXIT(InstanceUserID);
SetUserID(NewUserID : Code[20])
InstanceUserID := NewUserID;
but this wouldn't solve the error i described above, correct? that's just in order to not posting with the NAS userid?0 -
Sog wrote:Is inventory directly posted and valued? (not the revaluate report)
That also shows a dialog, codeunit is 5895
yes inventory valuation is done always at the time of posting. so 5895 could be it actually, i'll try!
Thanks!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