web
You’re offline. This is a read only version of the page.
close
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 121

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

I have the same question (0)
  • RyanSinfield Profile Picture
    121 on at

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

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

    >>>> 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

  • Suggested answer
    RyanSinfield Profile Picture
    121 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans