BudgetTransactionPost.run Method [AX 2012]

Contains the logic that is used to post a budget transaction.

public void run()

Run On

Called

ExceptionCondition
Error

The budget transaction header failed validation or the user is blocked.

–or–

The budget transaction header failed validation.

–or–

At least one budget transaction line failed validation.

–or–

There were no budget transaction lines to post.

–or–

An error occurred.

Deadlock

A deadlock error occurred after the number of retries that is specified by the OCCRetryCount variable.

UpdateConflictNotRecovered

An unrecoverable update conflict occurred outside the scope of another transaction.

UpdateConflict

An unrecoverable update conflict occurred inside the scope of another transaction.

The process includes the following procedure:

  • Set the InUseBy value to true for the current user.

  • Check that the header is valid.

  • Check that all the lines are valid.

  • Check budget availability for all the lines.

  • Update the value of the PostedStatus parameter to Posted.

Community Additions

ADD
Show: