Thursday, April 7, 2022

Irritating error after posting transaction

 

Today I encounter irritating error after posting document. it happens when there is only 1 order document (due to some filters based on company's requirement). 

The Sales Header does not exist ...



The proposed solution:
Use CurrForm.CLOSE once posting is done so that the error will not prompt anymore.
However, if the order document is more than 1 order, just bypass CurrForm.CLOSE