However, we would like to get the tax amount before invoice for adjustment or validations purpose. Hence below standard code can help us to overcome the temp table problem.
Ax2.5 - Ax2009 :-
TaxLedgerJournalCalculate::
Ax2012 :-
LedgerJournalEngine.taxAmountJournal(_ledgerJournalTrans);