Problem with G\L Entry's Dimension Posting
Naromi
Member Posts: 21
Hi, I have to make a dataport that imports data in table 81 Gen. Journal Line and launch an automatic posting by calling codeunit 12 Gen. Jnl.-Post Line, so i had a problem with posting dimensions, codeunit 12.run only posts global dimension, so i ve i put my dimensions into a record and call directly the posting function RunWithCheck but there is a problem when there is two G\L entries who had the same dimension because of the key of table 355, this error doesn't occur by the way we r making a manual validation and i don't know why??
Is the codeunit 12 that i m really supposed to call for validation?? how can i resolve this problem??
Is the codeunit 12 that i m really supposed to call for validation?? how can i resolve this problem??
0
Comments
-
You can post G/L journals in code without inserting into the database.
Have a look in function 80 or 90. This is exactly where such postings happen.
This also works for Dimensions.0 -
Hi Mark, thanks for your reply, unfotunatly i must insert data into database because there is a possiblity to descativate automatic posting then the user had to validate his self G/L entries data0
-
Have you tried making your journal dimension table temporary before calling CU12?0
-
No , not yet, but i don't undestand very well what ur meaning, can u tell me more about it plz0
-
Will take 10 pages to explain how it works, if you dont read the code in cu80/90 as Mark said. Or find an experienced developer to explain it to you. You need to read some code on how the dimensions are filled like in the postitemjnlline function in cu80.0
-
Ok , I see, sorry :^o i didn't think that it was so complex, however i called cu13 and he posts dimensions correclty, 13 calls RunWithoutCheck when 12 is calling runWithCheck and everything goes fine [-o<0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
