-
Notifications
You must be signed in to change notification settings - Fork 4
/
zcx_dynscreen_syntax_error.clas.abap
52 lines (40 loc) · 1.84 KB
/
zcx_dynscreen_syntax_error.clas.abap
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
CLASS zcx_dynscreen_syntax_error DEFINITION PUBLIC INHERITING FROM zcx_dynscreen_dyna_chk_base FINAL CREATE PUBLIC.
PUBLIC SECTION.
CONSTANTS:
BEGIN OF zcx_dynscreen_syntax_error,
msgid TYPE symsgid VALUE 'Z_DYNSCREEN',
msgno TYPE symsgno VALUE '000',
attr1 TYPE scx_attrname VALUE 'SYNTAX_ERROR+000(50)' ##MG_MIS_ATT,
attr2 TYPE scx_attrname VALUE 'SYNTAX_ERROR+050(50)' ##MG_MIS_ATT,
attr3 TYPE scx_attrname VALUE 'SYNTAX_ERROR+100(50)' ##MG_MIS_ATT,
attr4 TYPE scx_attrname VALUE 'SYNTAX_ERROR+150(50)' ##MG_MIS_ATT,
END OF zcx_dynscreen_syntax_error.
DATA:
syntax_error TYPE c LENGTH 200 READ-ONLY.
METHODS:
constructor IMPORTING syn_check TYPE REF TO cl_abap_syntax_check_norm,
get_syntax_check RETURNING VALUE(ro_syntax_check) TYPE REF TO cl_abap_syntax_check_norm.
PROTECTED SECTION.
DATA:
mo_syntax_check TYPE REF TO cl_abap_syntax_check_norm.
PRIVATE SECTION.
ENDCLASS.
CLASS zcx_dynscreen_syntax_error IMPLEMENTATION.
METHOD constructor ##ADT_SUPPRESS_GENERATION.
* ---------------------------------------------------------------------
super->constructor( ).
* ---------------------------------------------------------------------
CLEAR me->textid.
* ---------------------------------------------------------------------
mo_syntax_check = syn_check.
me->syntax_error = mo_syntax_check->message.
* ---------------------------------------------------------------------
if_t100_message~t100key = zcx_dynscreen_syntax_error.
* ---------------------------------------------------------------------
ENDMETHOD.
METHOD get_syntax_check.
* ---------------------------------------------------------------------
ro_syntax_check = mo_syntax_check.
* ---------------------------------------------------------------------
ENDMETHOD.
ENDCLASS.