Great Plains (Gp 2013) Vendor Maintenance

I am looking for the GP table for the Vendor Maintenance Screen.  Trying to run a report that show the default accounts set up on the vendor card. Thanks
pstreAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve EndowMicrosoft MVP - Dynamics GPCommented:
Hi,

The information from the Vendor Maintenance window is mostly stored in PM00200.  (Additional addresses are stored in PM00300)

The default accounts are in PM00200 in the fields starting with PMAPINDX, PMCSHIDX, etc. and contain the account index number.  You'll need to decipher the field names and match them to the default vendor accounts listed in the account window.

You can join the account index values to GL00105, which has the ACTNUMST value.

Let me know if that helps and if you have any additional questions.

Thanks,

Steve Endow
Microsoft MVP - Dynamics GP
Dynamics GP Certified IT Professional
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pstreAuthor Commented:
Thanks..I don't know how to join tables.  Could you help me out with a SQL statement?  THANKS!!
0
Steve EndowMicrosoft MVP - Dynamics GPCommented:
Hi,

In this particular case, if you want to view multiple (or all) default  accounts for each vendor, the join is a little tricky because each account index field requires a separate JOIN.  I believe there is a fancier way of doing this, but here is the low-tech approach.  

Basically you need a join statement for each account index.  You use LEFT OUTER JOIN in case there is no default account specified for the vendor, or an invalid account index is specified (such as 0).  I just created the query for the first four accounts (you can ignore PMCSHIDX, as that is apparently not used, at least not in GP 2013 where I wrote the query).


SELECT VENDORID, RTRIM(gl1.ACTNUMST) AS AcctPay, RTRIM(gl2.ACTNUMST) AS DiscAvail, RTRIM(gl3.ACTNUMST) AS DiscTaken, RTRIM(gl4.ACTNUMST) AS FinCharges 
FROM PM00200 v
LEFT OUTER JOIN GL00105 gl1 ON v.PMAPINDX = gl1.ACTINDX
LEFT OUTER JOIN GL00105 gl2 ON v.PMDAVIDX = gl2.ACTINDX
LEFT OUTER JOIN GL00105 gl3 ON v.PMDTKIDX = gl3.ACTINDX
LEFT OUTER JOIN GL00105 gl4 ON v.PMFINIDX = gl4.ACTINDX

Open in new window



Let me know if that makes sense and if you have any additional questions.

Thanks,

Steve Endow
Microsoft MVP - Dynamics GP
Dynamics GP Certified IT Professional
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

pstreAuthor Commented:
Thanks.. I ran the statement and got some "Nulls"  What does this mean.
0
sfazalCommented:
means no account specified at the vendor level.
0
pstreAuthor Commented:
Thank you so much!  This was so helpful!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.