Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Trigger PO print/release procedure programmatically

(0) ShareShare
ReportReport
Posted on by 117

Some of our POs are now being created and sent to suppliers using a third-party system. We still need these to be created in Dynamics GP for accounting purposes, however because they have already been released to the suppliers, we want to create these POs at the "released" stage. When I create a PO with eConnect POPTransactionType and set the POSTATUS of the taPoHdr and taPoLine objects to 2 (released), it does not appear to run through the process that it would go through when releasing the PO through the GUI by printing it.

Is there any way I can simulate the printing process programmatically so that Dynamics GP runs through the required procedures and updates the relevant inventory quantities, PO statuses, etc.?

I have tried using SQL Server Profiler to narrow down exact steps that GP takes, but the list is so long and there appear to be so many things affected by the process of printing the PO that I would much rather use any existing method of invocation instead of writing my own code to achieve the same end and possibly introduce bugs.

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    RyanSinfield Profile Picture
    RyanSinfield 117 on at
    RE: Trigger PO print/release procedure programmatically

    This wasn't working because although I had set POLNESTA on each taPoLine, I'd neglected to set POLNESTASpecified to true. Setting this effectively simulated the printing process.

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,006 User Group Leader on at
    RE: Trigger PO print/release procedure programmatically

    >>>> Alternatively, is there a way to invoke the "Print Purchasing Documents" procedure to print batches of purchase orders with eConnect?

    No , I don't see any option through eConnect that can invoke the Print Purchasing Document procedure.

    But from below window you can change it. Check the Process button functionality, it will help you.

    3365.po.png

  • RyanSinfield Profile Picture
    RyanSinfield 117 on at
    RE: Trigger PO print/release procedure programmatically

    Alternatively, is there a way to invoke the "Print Purchasing Documents" procedure to print batches of purchase orders with eConnect?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans