RE: Creating Monthly $0 Budget Entries in BUDGETTRANSACTIONLINE
Andre,
That did work but after further analysis and attempting to fix the SQL and make it perform better I found that there were many missing accounts. So I went back to reworking the stored procedure. It actually ended up being informative because of the nature of the AX fragmented database.
The base SQL Query now includes the MainAccount table over a range of expense accounts tied to the DIMENSIONATTRIBUTEVALUECOMBINATION. I joined the DIMENSIONATTRIBUTEVALUECOMBINATIONSTATUS table to get rid of non postable combinations.
That created a range of valid postable (isValid) department account combinations.
I joined the LEDGERPERIOD table for the appropriate fiscal year and created a record for each combination for the fiscal year.
Then it was simple to add in the BUDGETTRANSACTIONCUBE period budget amounts for periods that had a budget. Records not updated would remain at 0.
Finally I created a query against the GL header and detail tables to add in the actual amounts and export the payment lines for detail analysis.
The most interesting thing I found from the other solution is that it created a new DIMENSIONATTRIBUTECOMBINATION record for the unapproved budget combo.
We are good! It runs nice and fast for a side benefit.
Thanks for the assistance, Hope this helps others with the same dilema.
Konrad