Skip to Content
0
Former Member
Oct 07, 2009 at 03:40 PM

Point In Time Journal in main report

47 Views

I use the Dynamics GP v10 database. The system keeps item inventory on hand quantities based on initial on hand values that were in the item quantities table then keeps a journal of changes since that point in a table specific to the transactions. The transactions are based on locations.

IV00101 - Item master (Basic setup of the item and default location)

IV00102 - Item Quantities (Item quantities based on the totals for each location, not bins)

IV30300 - Item Transaction History Line Records (the item quantity transactions by line item and coorelating location).

Now, what I am doing in crystal is to select the correct transaction and location is below. Item number is a parameter. I additionally have the transaction date as a parameter as well.

{IV00102.LOCNCODE} = {IV00101.LOCNCODE} and

{IV30300.ITEMNMBR} = {?Item Number} and

not ({IV00101.ITEMTYPE} in [2, 4, 5, 6])

I have found that when the old consultants converted from the old database to Great Plains, for about 100 items they incorrectly set the initial on hand value held on IV00102. So when the system uses the journal in IV30300 to adjust the on hand value in IV00102, it is wrong unless I evaluate for what the wrong beginning balance is. What this means is that I can not use the journal itself to determine on hand. Now somewhere in the system it presents a balance which is the on hand, but I have not found anywhere in the system where a static beginning inventory balance number exists but that it rolls backwards or something. So that was a pain but now it is working so I can put in one item number and a date to determine the on hand at the time of an order at any given time in the past.

So that sets the stage. Here is the problem. I have to then use this in a main report where all sales line items are analyzed for on hand at time of sale. So each line item, up to 4000 or more per month. This takes a considerable time to process a journal history for every line item. Also, because I have to make this journal process a sub report to do analysis on the returned number I use variables to pass the number through to the main report. To make that work correctly, I have to run this at the group level because the sub report must run first to be passed to a variable and used for record level processing. But, that only works when I am looking at one day's worth of sales. If I am trying to process an entire month, it does not work as the sub report does not regenerate data for each record which has different dates.

So, comes down to this. Anyone know how to make the database itself create a view of all data and present a running balance for all items, which would require 1. resetting balance figures at each change of item number and 2. adjusting for improperly set begging On hand balance numbers.

If that is not possible, then how do I use the sub so it passes the data up for use in the active report on the line intended and not the line below?