Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Supply Chain Management
Lawson S3 Supply Chain
Tying ITEM to ACCT-UNIT
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Rich Cowie
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5255
People Online:
Visitors:
479
Members:
0
Total:
479
Online Now:
New Topics
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Supply Chain Management
Lawson S3 Supply Chain
Tying ITEM to ACCT-UNIT
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
38 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
mfc
New Member
Posts: 3
9/7/2010 8:45 PM
I am new to both this forum and to Lawson so please be gentle :laugh: My employer would like to separate out OR inventory from the general population both logically and physically. I have been tasked to do both. I use SQL Analyzer (and more recently LinqPad) to query from a test environment refreshed monthly. My goal is to link ITEMMAST.ITEM to (potentially) MMDIST.ACCT_UNIT by way of the POLINE table. I used the lawson.insight 8.0.x Entity Relationship Diagram for PO provided by this site to navigate my way. I would like to identify all ITEM's associated with a particular ACCT_UNIT of LEVEL_DEPTH 2. Unfortunately, my multi-table query returned only 23 rows, far less than the 5k rows expected. I'm hoping for clues to construct a query that will return all rows associated with our Surgery Dept. I can provide more info as needed. Thank you for any response.
David Williams
Veteran Member
Posts: 1127
9/8/2010 2:42 PM
Split
You should just be able to query against MMDIST to get everything you need.
mfc
New Member
Posts: 3
9/8/2010 8:17 PM
Split
Thank you for your reply, I appreciate it. I was hoping for a more detailed instruction, I am learning as I go. As I understand it, the MMDIST table keeps a record of material distribution from warehouse to business unit and ties the issued item to the General Ledger. It is sort of a "middle tier" between the GL and inventory. As I understand it, there are 2 paths to move (issue) inventory (at least in my facility), through a purchase order (PO, or POLINE) or a requisition (REQLINE). I think I need to query both avenues to fully populate my dataset. My final goal is to generate a dataset composed of ITEM, DESCRIPTION, and ACCT_UNIT for all units used exclusively by our Perioperative accounting unit. I've composed 2 queries, the first linking MMD -> PLI -> ITL -> ITM and the second query from MMD ->RLN->ITM to capture the full breadth of the dataset. Am I on the right track? Thanks again.
mfc
New Member
Posts: 3
9/10/2010 7:33 PM
Split
Problem solved, I had the structure correct but was using an incorrect filter from our GL table. For your consideration: [code] SELECT DISTINCT CONVERT(bigint, ITM.ITEM) AS ITEM, ITM.DESCRIPTION, ITL.LOCATION, MMD.ACCT_UNIT FROM PROD.MMDIST MMD JOIN PROD.POLINE ON MMD.DOC_NUMBER = PROD.POLINE.PO_NUMBER JOIN PROD.ITEMLOC ITL ON PROD.POLINE.ITEM = ITL.ITEM JOIN PROD.ITEMMAST ITM ON ITM.ITEM = ITL.ITEM WHERE MMD.ACCT_UNIT LIKE '203030%' AND ITL.LOCATION = 'SPDS' UNION SELECT DISTINCT CONVERT(bigint, ITM.ITEM) AS ITEM, ITM.DESCRIPTION, ITL.LOCATION, MMD.ACCT_UNIT FROM PROD.MMDIST AS MMD JOIN PROD.REQLINE RLN ON MMD.DOC_NBR_NUM = RLN.REQ_NUMBER AND MMD.LINE_NBR = RLN.LINE_NBR JOIN PROD.ITEMMAST ITM ON RLN.ITEM = ITM.ITEM JOIN PROD.ITEMLOC ITL ON RLN.ITEM = ITL.ITEM WHERE MMD.ACCT_UNIT LIKE '203030%' AND ITL.LOCATION = 'SPDS' ORDER BY ITEM [/code] Now all I have to do is cross reference the output with items used by the general population to reduce the dataset to those items used exclusively by the OR. Case Closed.
Please
login
to post a reply.