×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Getting a Month End Qty from ImInvTrx file

Getting a Month End Qty from ImInvTrx file

Getting a Month End Qty from ImInvTrx file

(OP)
I am attempting to create a Month end inventory snapshot for an Inventory management System, I am building. I am attempting to get the end of month quantity for each item in the ImInvTrx, but I am finding duplicate records, same item_no, trx_dt, trx_time, line_no, and doc_type. This is a problem, as my SQL cannot pull an quantity, unless I can specify the exact row. I can preproces the ImInvTrx, and select distinct records, but am I missing another field that will uniquely identify a record by date,time, etc.

RE: Getting a Month End Qty from ImInvTrx file

This is doable, but you need to take some steps in Macola to make it easy.  Do you freeze inventory at month end?  If so you can get this quantity directly from the iminvloc_sql table.  Alternatively, you can create beginning balance records in Macola as a part of your month end process, this creates (If I recall correctly) type H records in the iminvtrx_sql table, one per item location record.

If neither of these are practical, I'd go with your original approach but in the case of duplicates, take the record with the higher A4GLIdentity column.

Software Sales, Training, Implementation and Support for Macola, Synergy, and Crystal Reports.  Check out our Macola tools:
www.gainfocus.biz/exceladdin.html

RE: Getting a Month End Qty from ImInvTrx file

You can write a report using the IMINVTRX to get a point in time inventory.  I have used the current onhand inventory, and then use the transaction history back to the cutoff date using the opposite effect to get back to the inventory at the given point in time. (subtract receipts, add back issues, ignore allocations and orders, and so on for each transaction type) I have also scheduled nightly data wharehouse ETL's of the item location file with the Item_No and Qty_On_Hand.  Maybe twice there were items that would not reconcile, and ended up tracing back to a bad workstation.  

RE: Getting a Month End Qty from ImInvTrx file

I STRONGLY recommend the "Beginning Balance Records" as Don suggests.

If you build the reports as NEmacGuy and I have done, those records  (source = 'B') AND (doc_type = 'H') provide a monthly number to reconcile against.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close