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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Create Purchase Orders from Production Orders AX2012

(0) ShareShare
ReportReport
Posted on by 46

Hi All,

I want to create purchase orders from production orders (the same logic as the create production from salesLines).

pastedimage1628259994149v2.png

by know I just need to write the selected production record and write the ProductionOrderNumber + "-" + incrementalNumberSequence (example P1-1, P1-2,P1-3 and so on)

So I have a new button the prodTableListPage that calls the PurchCreateOrder form from a display MenuItem. But when I click the initizalization method does not read the Args of the caller (that should be the ProdTableListPage I guess.

pastedimage1628258979243v1.png

I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Create Purchase Orders from Production Orders AX2012

    Hi,

    Can't you simply setup a BOM with a BOM item that links to a supplier and that creates the PO for you once you start processing this order?

    Best regards,

    Ludwig

  • CBNestor Profile Picture
    46 on at
    RE: Create Purchase Orders from Production Orders AX2012

    Hi Ludwig,

    thanks for reply,

    mmm yes and no :). We are trying to emulate and old system ax3.0 into the ax2012. and the old system does not work with auto increment order number sequence. Only the Sales Order are incremental numbers. The purchase orders and production orders number has the same as the Sales orders. example: Sales S1 with five saleslines. the first sales line production is S1, the second S1R1 third S1R2 and so on and also if the bom has sub boms will be S1R1-1 S1R1-2. the First purchase for production S1 will be S1-1 for S1R1-1 for sub production S1R1-1-1 and so on. 

    and the supplier for each item is almost never the same.

    Without the Number sequence in purchase this feature cannot be used. Unless there is a way to program this a special number sequence to work this way. but I haven't thought about it, don't know how complex would it be.

    by the way a purchase order with bom link vendor will create a relation/link in the database for the production where is taken? because we use like to relate all purchase made to a specific production and make future statistics.

    the whole Idea is to keep every purchase link to its main production number. But I am open ears. thanks beforehand.

  • Suggested answer
    CBNestor Profile Picture
    46 on at
    RE: Create Purchase Orders from Production Orders AX2012

    Finally found a way.

    works with manual or continuous number sequence. also keeps the reference of the production order in the purchTable. almost the same logic as creating a production from a salesline.

    pastedimage1632465528382v1.pngpastedimage1632466032341v2.png

    they key is playing with passing by the prodTable record through new arguments between PurchTable form datasource Create() method , purchTableForm class and PurchCreateOrder form Run() method

    pastedimage1632466312357v3.pngpastedimage1632466440232v4.png

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 724 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 580 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 554

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans