Skip to content

Commit 9667f7c

Browse files
ibnbrlarshp
authored andcommitted
Refactor: scimessages CHECK 22 (#880)
1 parent 1c4f375 commit 9667f7c

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

src/checks/zcl_aoc_check_22.clas.abap

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
CLASS zcl_aoc_check_22 DEFINITION
22
PUBLIC
33
INHERITING FROM zcl_aoc_super
4-
CREATE PUBLIC.
4+
CREATE PUBLIC .
55

66
PUBLIC SECTION.
77

8-
METHODS constructor.
8+
METHODS constructor .
99

1010
METHODS check
11-
REDEFINITION.
12-
METHODS get_message_text
13-
REDEFINITION.
11+
REDEFINITION .
1412
PROTECTED SECTION.
1513

1614
DATA mo_scan TYPE REF TO zcl_aoc_scan .
@@ -149,23 +147,11 @@ CLASS ZCL_AOC_CHECK_22 IMPLEMENTATION.
149147

150148
enable_rfc( ).
151149

152-
ENDMETHOD.
153-
154-
155-
METHOD get_message_text.
156-
157-
CLEAR p_text.
150+
insert_scimessage(
151+
iv_code = '001'
152+
iv_text = 'Conditions contain identical code, &1'(m01) ).
158153

159-
CASE p_code.
160-
WHEN '001'.
161-
p_text = 'Conditions contain identical code, &1'. "#EC NOTEXT
162-
WHEN OTHERS.
163-
super->get_message_text( EXPORTING p_test = p_test
164-
p_code = p_code
165-
IMPORTING p_text = p_text ).
166-
ENDCASE.
167-
168-
ENDMETHOD. "GET_MESSAGE_TEXT
154+
ENDMETHOD.
169155

170156

171157
METHOD loop.

src/checks/zcl_aoc_check_22.clas.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
<RSTAT>P</RSTAT>
1414
<WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>
1515
</VSEOCLASS>
16+
<TPOOL>
17+
<item>
18+
<ID>I</ID>
19+
<KEY>M01</KEY>
20+
<ENTRY>Conditions contain identical code, &amp;1</ENTRY>
21+
<LENGTH>74</LENGTH>
22+
</item>
23+
</TPOOL>
1624
<LINES>
1725
<TLINE>
1826
<TDFORMAT>*</TDFORMAT>

0 commit comments

Comments
 (0)