Adding Items to Phys. Inventory Journal
slimer
Member Posts: 6
Hello,
I'm writting a C# code to update a Phys. Inventory Journal via a text file. The problems is when I tried to create a line with a Items that is not calculated by Navision and is really in stock.
I tried this code, assuming SereiInventari is a Service of the published Phys. Inventory Journal page:
But, even I specify the Phys_Inventori field (with his specified to true) the create function ever says the same: "El campo Phys. Inventory de la tabla Item Journal Line debe ser igual a 'Yes'. El valor actual es 'No'." (free translation: The Item Journal Line table's Psys. Inventory field must be equals to 'Yes'. The current values is 'No').
Any idea to help me?
Thanks in advance,
slimer
I'm writting a C# code to update a Phys. Inventory Journal via a text file. The problems is when I tried to create a line with a Items that is not calculated by Navision and is really in stock.
I tried this code, assuming SereiInventari is a Service of the published Phys. Inventory Journal page:
article.Location_Code = botiga 'botiga is the catalan name for Shop
article.Item_No = dtarti.Rows(0)(0) 'The Item number has been tested before
article.Variant_Code = dtarti.Rows(0)(1) 'The variant code has been tested before
article.Qty_Phys_Inventory = Decimal.Parse(camps(1).Substring(camps(1).LastIndexOf(":") + 1)) 'In the case I'm trying is 1.
article.Qty_Phys_InventorySpecified = True
article.Phys_Inventory = True 'There is the field required by the message
article.Phys_InventorySpecified = True '
article.Document_No = cbDoc.Text 'The number of the document already exists.
article.Qty_Calculated = 0 'I'm noy sure if it is mandatory
article.Qty_CalculatedSpecified = True
ServeiInventari.Create("INVENTARI", article)
But, even I specify the Phys_Inventori field (with his specified to true) the create function ever says the same: "El campo Phys. Inventory de la tabla Item Journal Line debe ser igual a 'Yes'. El valor actual es 'No'." (free translation: The Item Journal Line table's Psys. Inventory field must be equals to 'Yes'. The current values is 'No').
Any idea to help me?
Thanks in advance,
slimer
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
- 611 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