web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Is it possible to assign a voucher number (VCHRNMBR/VCHNUMWK) for a bill which is synced using Enter/Match Invoice to GP using eConnect.

(0) ShareShare
ReportReport
Posted on by

Hi,

I am sending bills for Purchase Orders to GP using eConnect (taPopEnterMatchInvHdr).

For those bills is it possible that we assign a voucher number?

I am only able to get the voucher number after posting the bills.

For a normal transaction entry, I usually get the nextVoucherNumber and assign the voucher number to the bill even before posting the bill.

I would like to have the same for PO linked bills.

I would like to assign the voucher number while syncing the PO linked bills to GP.

Kindly, suggest me.

Thanks in advance..!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Can some one please suggest!

  • Community Member Profile Picture
    on at

    I tried setting the value for VCHRNMBR in POP10300 table. But still when we post the batch, GP do not seem to consider the VCHRNMBR I set it here.

  • Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    what exactly you are trying to achieve? your question is not clear. With which eConnect node you are linking your VCHRNMBR? What is exactly bill, which GP document you are calling bill? from where you get the next voucher number that you assigned to the bill?

  • Community Member Profile Picture
    on at

    I am using taPopEnterMatchInvLine_ItemsTaPopEnterMatchInvLine to match the invoice lines.

    when we post the batch, we get the PM20000 table updated with a new row for invoice and we see VCHRNMBR here.

    I would like to set this voucher number before posting the purchasing batch.

    I use the stored procedure: taGetPMNextVoucherNumber to get the next Voucher number.

    For a Purchasing Transaction Entry, we use taPMTransactionInsert and here we can set VCHNUMWK (that is the nextvoucherNumber which I get from GP)

    I would like to achieve the same for POP Invoice as well.

  • Suggested answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    This is what I get from your post, you are creating purchase receipt invoices through eConnect and wants to create the payables at the same time. You are correctly using taGetPMNextVoucherNumbe all you have to do is to extend your calling script and create voucher same time when you are creating receiving invoice.

  • Verified answer
    Vaidy Mohan Profile Picture
    351 on at

    When you post a POP matching invoice, it posts a PM invoice with an auto-generated voucher number at runtime. I don't think you have a control over this process. The VCHRNMBR field in POP10300/POP30300 table is merely a link field which will get updated with the voucher number once a corresponding PM invoice is created in PM20000 table.

    Because voucher number is referred in several control related tables within Payables/POP modules, it's not wise to write triggers to overwrite the auto-generated value.

    I'd recommend to store your voucher number value somewhere else, if it is not something you can do away.

    Hope this helps.

  • Community Member Profile Picture
    on at

    Thanks a lot for the response Vaidy Mohan..!

    It is now confirmed that assigning voucher number for POP invoices is not in our control.

  • Community Member Profile Picture
    on at

    Thanks a lot for your response Almas..!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
talty09 Profile Picture

talty09 2

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#3
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans