Skip to content

Commit

Permalink
Refactor: scimessages CHECK 22 (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnbr authored and larshp committed Nov 15, 2019
1 parent 1c4f375 commit 9667f7c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
28 changes: 7 additions & 21 deletions src/checks/zcl_aoc_check_22.clas.abap
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
CLASS zcl_aoc_check_22 DEFINITION
PUBLIC
INHERITING FROM zcl_aoc_super
CREATE PUBLIC.
CREATE PUBLIC .

PUBLIC SECTION.

METHODS constructor.
METHODS constructor .

METHODS check
REDEFINITION.
METHODS get_message_text
REDEFINITION.
REDEFINITION .
PROTECTED SECTION.

DATA mo_scan TYPE REF TO zcl_aoc_scan .
Expand Down Expand Up @@ -149,23 +147,11 @@ CLASS ZCL_AOC_CHECK_22 IMPLEMENTATION.

enable_rfc( ).

ENDMETHOD.


METHOD get_message_text.

CLEAR p_text.
insert_scimessage(
iv_code = '001'
iv_text = 'Conditions contain identical code, &1'(m01) ).

CASE p_code.
WHEN '001'.
p_text = 'Conditions contain identical code, &1'. "#EC NOTEXT
WHEN OTHERS.
super->get_message_text( EXPORTING p_test = p_test
p_code = p_code
IMPORTING p_text = p_text ).
ENDCASE.

ENDMETHOD. "GET_MESSAGE_TEXT
ENDMETHOD.


METHOD loop.
Expand Down
8 changes: 8 additions & 0 deletions src/checks/zcl_aoc_check_22.clas.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
<RSTAT>P</RSTAT>
<WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>
</VSEOCLASS>
<TPOOL>
<item>
<ID>I</ID>
<KEY>M01</KEY>
<ENTRY>Conditions contain identical code, &amp;1</ENTRY>
<LENGTH>74</LENGTH>
</item>
</TPOOL>
<LINES>
<TLINE>
<TDFORMAT>*</TDFORMAT>
Expand Down

0 comments on commit 9667f7c

Please sign in to comment.