Items by Location Report

MMSNavUSR
Member Posts: 19
I am attempting to create a report that will list items by location. I would like to filter the report by "Location Code" and "Item Category Code". I am having great difficulty as I cannot find a table, or reference that I can use to determine items by location; additionally, I am having issues forcing filter on "Location Code" and "Item Category Code" rather than by "Item No." -- any leads and or assistance will be greatly appreciated.
0
Comments
-
Have you taken a look at the Inventory Valuation report then checking on By Location checkbox on the options tab?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex,
Thank you for your response. I was unable to find the report you refered to; however, I was able to find a report "Physical Inventory Count Sheet" #10151 that refered to a table "Stockkeeping Unit" #5700... I rebuilt my report to include this form.. and I discovered an interesting error... I am unable to print the text from "Description" or "Description 2" to my report... the text from "Item No." comes in just fine.
Just for reference, this is being used as a label... I am needing the Item # and Description fields (Description + Description 2 or Search Description (Custom)). I have already created a working version but needed it to be specific to our individual locations (so as to produce less waste).0 -
on the Item Journal Line dataitem you're going to need to add code to get the item table information.
Something Like..
Create Global Variable:
Name=Item
Data Type=Record
SubType=Item
OnAfterGetRecord()
IF "Item No." <> '' THEN
Item.GET("Item No.")
ELSE
CLEAR(Item);
Now you should be able to add fields to your section(s)
with sourceexp of Item.Description+' '+Item."Description 2" (if you want to combine)
PS..how can you NOT find Inventory Valuation report. It's a staple of the system.
For help with reports check the Application Designers Guide that comes with the product cd.
Else you can download & printout the "5" version here:
http://www.microsoft.com/downloads/en/d ... laylang=en
w1w1adg.pdf0 -
Savatage,
That worked great... Thanks a ton! I now have a stack of barcoded labels printed off from a specified location including the "Item no." and "Search Description".
I would like to take this a step further... When loading the report the "Sort" options come up... is there a way to preset which options are available? It is currently showing "Location Code", "Item No.", and "Variant Code" we would not use "Item No." or "Variant Code" in our printing procedure. Additionally I would like to be able to sort by "Item Category Code" but it is not a column in the "Stockkepping Unit" table (it is found in the "Item" table).0 -
The order in which the information appears is determined by the sorting order defined by the current key.
If more than one key is defined for the table, you can switch between the sorting orders that these keys define.
Click on the link above, then click on the w1w1adg.pdf download. once Open click Ctrl-F (Find) Type in Sorting & (F3) to see how valuable a doc this is.
Also as valuable if not more is the Search here on Mibuso.
search.php
Almost any question you can think of has probably been asked a few times before.0 -
Wow, how much fun we can all have if we are steered in the right direction!
I am closing in on making this the perfect label... I have been able to add the ability to sort by "Location Code" in addition to "Item Category Code: and again I have run into an issue with data not being available to me. I am utilizing two tables to gather the data: "Item" and "Stockkeeping Unit" I am trying to add the "Location Code" to my label... the location code is a sort filter and is in a separate table than I am doing the C/AL coding in...
Addr[ColumnNo][1] := '*' + FORMAT(Item."No.") + '*';
Addr[ColumnNo][2] := FORMAT(Item."No.");
Addr[ColumnNo][3] := Item."Search Description";
Addr[ColumnNo][4] := 'LOCATION ID: ' + "Stockkeeping Unit"."Location Code" + ' PRINTED: ' + FORMAT(TODAY,0,4);
"Stockkeeping Unit"."Location Code" is returning null... Each of the labels should have the same "Location Code" depending on what the usr selections upon loading the report.
Any ideas, thoughts or direction will be greatly appreciated.0 -
MMSNavUSR wrote:"Stockkeeping Unit"."Location Code" is returning null... Each of the labels should have the same "Location Code" depending on what the usr selections upon loading the report.
What do you mean by "depending on what the user is selections upon loading the report"
Is there a request form where they are selecting or entering the location code?
Are you entering a a "location filter" on a dataitem? which?0 -
You're going in the wrong direction I think...
Take a look at the report Inventory Valuation (Report ID 10139). It's a standard report in Navision. On the options tab, check on Breakdown by Variant and Breakdown by Location.
No custom coding should be necessary.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Savatage wrote:What do you mean by "depending on what the user is selections upon loading the report"
Is there a request form where they are selecting or entering the location code?
Are you entering a a "location filter" on a dataitem? which?
Yes, There is a request form with two tabs:
1. "Item" Consisting of required field/filter "Item Category Code"
2. "Stockkeeping Unit" Consisting of rquired field/filter "Location Code"
The purpose of this excersize is to create an easily manageable label solution allowing me/others to print per location within a selected "Item Category"
For example: for location "1" I need labels for "WIDGETS"... in our system that category may have 10,000 items of which location 1 only caries 2500.
On my label I am including when the label was printed, and what location it was printed for... for tracking when we need to update the labels.
My report works and I printed over 2,000 labels yesterday... I had to manually add the "Location Code" I would like for it to be automatic.0 -
So you want to get one of the values used as a filter in the report.
Try GETFILTER
http://msdn.microsoft.com/en-us/library/dd355306.aspx
Usually looks something like this - you can see it working in many reports.
OnPreReport()
FilterString := "Stockkeeping Unit".GETFILTERS;
Then the text variable Filterstring will hod the value you are looking for.
and you can use it as the sourceexp of a textbox to print on the report.0 -
Thanks! Worked like a charm.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