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 AX (Archived)

AX 2012 R2: Purchase requisition number on Purchase order header

(0) ShareShare
ReportReport
Posted on by 115

Hi All,

I am required to show purchase requisition number on purchase order list page with a searchable option which means it should not be a display method. Workflow is enabled to create PO from PR once gets approved, I added new field PurchReqId in PurchTable table to store purchase requisition number. Could you please guide me with the best way to achieve this requirement.

I found there is no relation between PurchTable and PurchReqTable tables, there is a relation between purchLine and purchReqLine tables.

I found a method PurchAutoCreate_PurchReq\setPurchTable where I can set PurchReqId in PurchTable from purchReqLine table.

I need your suggestions, is this the only place to set this new added field or I would need to do mapping anywhere else in other classes or tables?

*This post is locked for comments

I have the same question (0)
  • lally Profile Picture
    8 on at

    Before you decide to customize , you need to understand the  relations ship between Purchase requisition and Purchase order .

    It might be one to one or one to many or many to one or many to many .

    I mean one purchase requisition can be created as multiple purchase orders .

    Same way multiple purchase requisitions can be created as one PO.

    That is the reason by design , MS has give the link between purchase requisition line to Purchas line .

    Are you sure that you have the one to one relation only , then only go with your customization.

    I believe that you need to discuss with users one more time , before you start development.

  • Suggested answer
    Fredrik Sætre Profile Picture
    12,644 on at

    Since there is a 1:n relationship between purchase requisitions and purchase orders you should not have a field on the header level for this. There is a field on the line level for referencing the requisitions: PurchLine.PurchReqId

    You could always  aggregate these into one field, but that is not a good operating procedure.

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    You may want to consider updating the relevant  PO number back to the PR line(s).

    As mentioned above the system challenge is a  1:N, PR : PO relationship[.

    The operational challenge is that when goods arrive you don't know for whom, and several POs might also be received for different users for the same item. Ax does not have an MR to trigger the inventory issue. So you need to id the recipient, PR number, or a user specific delivery address on the PO.

    We invariably need to customise for out clients to create  MRs as part of the PR process. There different approaches to this, but now we are into consultancy.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans