How to show a error message if Vendor Invoices submitted with out entering financial accounting distributions AX2012

Hi All,

Need to show up a message if users trying to submit the Vendor Invoice with out entering accouting distributions in AX2012.

Is there a way to achieve this, please let me know.

Thank you.

Hi ,

Please let me know if anyone have an idea, how to prevent the form with out entering accouting distributions.

I tried below method but no luck

  1. Created ValidateWrite method and

  2. Changed property of the field under AOT ->Forms → Data Sources ->Table ->Field ->Properties Set Mandatory to Yes.

Without accouting distributions i am able to create vendor invoice, actually it suppose to throw a message right.



Hi Maruthi,

Accounting distribution is automatically created based on item posting setup and financial dimension on PO line? What exactly is the business requirement. In my opinion, changing anything on accounting distribution related class will not be a good idea.


Hi Pranav,

Thanks for the response. what actually I am looking is, if user creates vendor invoices using procurement category and going to financial dimensions to enter ledger accounts, incase user skip this step and saving the transaction without any error. I would like to popup a message to display Financial dimensions has to be filled so that users will enter values in Financial dimensions.