You cannot only use macros for events, but also for function calls at menu items or buttons. This is especially important if you want to additionally provide standard edit functions in masks in the edit menu or via edit buttons. They must be called using the userexit evt_cal_mac when the items or buttons are created. The macro name has to be passed as parameter.