getNextAppLevelEventID function

Finds the last application level event ID in the local temp-table storing the audit event records and return the next value.

Returns: CHARACTER

Parameters: None