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

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

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

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

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?

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

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: http://victoriayudin.com

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