The figure displays the functional sequence for editing records. You see the participating functions, the states the mask takes and the triggers set off. The triggering function is the Select function iwf_edt_lis (edit). If you edit several records at once, all triggers will be passed several times. If you install your own userexits at the Edit_, Pre_ or Post_Action trigger, for instance to perform special queries or checks within the functional sequence, you can evaluate the default parameter pr1 automatically passed by triggers. It informs about the current internal work mode of the mask (here U for Update or Q for Query) and the current line number.
You can also shift a mask into Update mode of Mask-Edit state by double-clicking on a record. The functionality is automatically installed at the Sel_Action trigger in created default masks by the standard mask userexit cch_sel_dtv. The userexit evaluates the double-click and automatically calls iwf_edt_lis. In the edit line the write cursor will be positioned in the field under the mouse pointer.
If you defined an event in your application that edits data via iwf_edt_lis, this operation is possible in each active mask, as opposed to mask-specific items or buttons defined for that. In order to lock the edit function for individual masks you can install cch_nop_upd at the Edit_Action trigger of these masks. This userexit prevents all update operations.