-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathevents.sublime-snippet
72 lines (65 loc) · 1.94 KB
/
events.sublime-snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<snippet>
<content><![CDATA[
****************************************
* LOAD OF PROGRAM *
****************************************
LOAD-OF-PROGRAM.
"before dynpro is displayed
****************************************
* INITIALIZATION *
****************************************
INITIALIZATION.
"initial values of selection screen
****************************************
* AT SELECTION SCREEN ON... *
****************************************
AT SELECTION-SCREEN ON [p_field1].
"handle check of [p_field1] here
****************************************
* AT SELECTION-SCREEN *
****************************************
AT SELECTION-SCREEN.
"global field check on F8 key
* IF sy-ucomm = 'ONLI'.
* IF [p_field1] IS INITIAL.
* MESSAGE e000(xt) WITH '[p_field1] is obligatory!'.
* ENDIF.
* ENDIF.
****************************************
* AT SELECTION SCREEN OUTPUT *
****************************************
AT SELECTION-SCREEN OUTPUT.
"modify appearance of selection screen here
* LOOP AT SCREEN.
* IF screen-group1 = 'NOD'.
* screen-active = '0'.
* MODIFY SCREEN.
* ENDIF.
* ENDLOOP.
****************************************
* AT USER-COMMAND *
****************************************
AT USER-COMMAND.
"handle user command here
* g_ucomm = sy-ucomm.
* CASE g_ucomm.
* WHEN 'BACK'.
* LEAVE TO SCREEN 0.
* WHEN 'EXIT'.
* LEAVE PROGRAM.
* ENDCASE.
****************************************
* TOP OF PAGE *
****************************************
TOP-OF-PAGE.
"heading of the list
****************************************
* START OF SELECTION *
****************************************
START-OF-SELECTION.
"main part of program
]]></content>
<tabTrigger>events</tabTrigger>
<scope>source.abp</scope>
<description>Set of Events</description>
</snippet>