Here's why:
* "Shall" is an auxiliary verb that indicates a future action.
* In this case, "shall" is used to express a strong obligation or determination to attend the function.
While "will" is more commonly used to indicate future actions, "shall" can be used in more formal contexts or to emphasize a sense of obligation or determination.