Tuesday 1 December 2015

Add field on Purchase order confirmation report AX 2012


Add field on Purchase order confirmation report in Dynamics AX 2012


There is requirement to add field on PO lines and same for the confirmation report in Microsoft Dynamics AX. It’s not the straight away to add field on the SSRS report. It requires to add field on other objects (table/view/query).


On PurchPurchaseOrder report it uses the PurchLineALLVersions view to get the details of the PO on the PurchPurchaseOrderDP. So follow the below steps to add field on PurchLineAllVersions view.


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgscLc6T6siqcrBYcgAcB_iiMKLO-snBZheOKTsIVLpmHMbO7-1rvghw7RZ0YOXB6Vu1pMqxixIg7KNXv6G5jzsiEdqeQ7_BotJ7cajzyO6moL37QBqAwldiunyFpWc0Al6DbwviNe_pIc/s400/POconfirm.png


  1. Add field on the PurchLine Table
  2. Add field on the PurchLineHistory Table
  3. Now, Refresh or Restore the queries used for PurchLineArchivedVersions and PurchLineNotArchivedVersions as this have dynamics field property to “Yes” our new fields should be added automatically on this queries and Verify the field is added on the query.
  4. Now, Restore the views PurchLineArchivedVersions and  PurchLineNotArchivedVersions.
  5. Add field on PurchLineAllVersion, here you have to add field manually as the dynamics field property is set.
  6. That’s it, now use the field on the PurchPurchaseOrderDP to have on report. You also have to add field on tmp table.


This helped you..!! Then comment below..:)

2 comments:

  1. Hi Darshan,

    I followed the same technique to add a field into PurchLine which I want to use for PO confirmation. When I am changing the value of this field and again confirm it, this field value in previous confirmation is lost. It remains only in new confirmation journal line. Not getting how to retain the previous value in previously confirmed PO journal line.

    ReplyDelete
  2. in my case, all the modification that i made are work on Proforma PO. but when the user "confirm" the PO the modification are 'Blank'.

    ReplyDelete