Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking POP30310 (Receipt Line History) and the GL Account number (POP30390?)

Status
Not open for further replies.

MBresnan

Technical User
Jun 23, 2010
47
US
I'm trying to tie together receiving data from the Receipt Line History table, and the GL account where the expense posts from Purchasing Distribution History table. essentially giving PO number, PO line/item desc, amount ordered, amount received, cost, and the GL account where what has been received posted. I tried to link tables POP30310(POP Receipt Number/receipt line number as key fields) and POP30390 (POP Receipt Number/Sequence Number as key fields). A lot of times, this works just fine, but it seems the sequence number doesn't necessarily match the receipt line number, so i guess it's coincidence when it does work. in one example i found, receipt line to sequence number relationships followed this pattern: 1:1 2:2 3:4 4:5 offset:3, so i was getting the correct data for lines 1 & 2, but bad data for everything after that.

Does anyone know the proper table to which i should be linking? or am i simply using the wrong field key fields?
 
If you found situations where you were able to link on the SEQNUMBR, I believe those are purely coincidental - there is no link possible like this because GP does not store the GL distributions individually for each receipt line. For example, if you have the following 5 lines on a receipt:

ITEM A - GL account 123 - $100
ITEM B - GL account 123 - $200
ITEM C - GL account 234 - $150
ITEM D - GL account 234 - $250
ITEM E - GL account 234 - $350

You will have the following distributions for the receipt:

Account 123 - debit $300
Account 234 - debit $750
Account 345 - credit $1050 (this would be something like accrued purchases, or payables, depending on the receipt type)

You would need to test this, but you might be able to simply use the INVINDX in the POP30310 table - that will give you the account that will be debited for each line. Now sometimes, when those are wrong, users will manually need to add additional lines to the distributions to correct this, not sure if that happens in your environment.


Victoria Yudin
Dynamics GP MVP 2005 - 2012
Use Crystal Reports and SSRS with GP:
blog:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top