Item Vendor Table 99

voyager99
Member Posts: 15
Hi there, I need some help 
In the table 99 I have a lot of entries each item with starting date and differential vendors.
I just want to get the best "Direct Unit Cost" and display it in my Item Card.
Example:
Vendor Unit Startingdate EK-Preis
10000 KG 01.01.2002 4,602
10000 KG 01.04.2004 5
10000 KG 01.07.2004 5
10000 KG 01.10.2004 5
20000 KG 01.01.2002 4,193
20000 KG 01.04.2004 3,7
20000 KG 01.07.2004 3,75
20000 KG 01.10.2004 4,25
20000 KG 01.01.2005 2,5
20000 KG 05.01.2005 1,8
30000 KG 01.01.2002 4,039
30000 KG 01.04.2004 3,95
30000 KG 01.07.2004 4,6
30000 KG 01.10.2004 4,6
30000 KG 24.12.2004 1,95
I am filtering on the Startingdate 0D, WORKDATE
But now i have to get the latest cost each vendor, (FIND('+') :?: )
And of all the latest cost each vendor, the cheapest ! (BLUE entries)
The cheapest with workdate 17.12.04 is the RED one.
Is there anyone, who have a solution :?:
thanks

In the table 99 I have a lot of entries each item with starting date and differential vendors.
I just want to get the best "Direct Unit Cost" and display it in my Item Card.
Example:
Vendor Unit Startingdate EK-Preis
10000 KG 01.01.2002 4,602
10000 KG 01.04.2004 5
10000 KG 01.07.2004 5
10000 KG 01.10.2004 5
20000 KG 01.01.2002 4,193
20000 KG 01.04.2004 3,7
20000 KG 01.07.2004 3,75
20000 KG 01.10.2004 4,25
20000 KG 01.01.2005 2,5
20000 KG 05.01.2005 1,8
30000 KG 01.01.2002 4,039
30000 KG 01.04.2004 3,95
30000 KG 01.07.2004 4,6
30000 KG 01.10.2004 4,6
30000 KG 24.12.2004 1,95
I am filtering on the Startingdate 0D, WORKDATE
But now i have to get the latest cost each vendor, (FIND('+') :?: )
And of all the latest cost each vendor, the cheapest ! (BLUE entries)
The cheapest with workdate 17.12.04 is the RED one.
Is there anyone, who have a solution :?:
thanks
0
Comments
-
Have you tried to use 'SETCURRENTKEY' on this table variable
and then selecting a key that starts with the "Starting Date" field?
RegardsNow, let's see what we can see.
...
Everybody on-line.
...
Looking good!0 -
Hi GoMaD
yes, I´m using the SETCURRENTKEY.
Trouble makes the differential vendor and Starting Date !
Greetings0 -
Have you tried creating your own key ? Like "Item No.,Unit Price".
What about using function MIN as part of FlowField calculation. Adding a flowfiled to Item table with following formula shows minimum direct unit cost for an item regardless of Vendor or Starting Date:Min("Purchase Price"."Direct Unit Cost" WHERE (Item No.=FIELD(No.)))
Now just play with filters to limit by date/vendor - you can add your own flow filters for Vendor and/or Price Date and include them in formula...®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯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