Skip to content

Commit

Permalink
Correct position for checksum calculation in check 57 (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-huetkoeper authored Feb 3, 2025
1 parent cbcf580 commit 0f215d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/checks/zcl_aoc_check_57.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ CLASS ZCL_AOC_CHECK_57 IMPLEMENTATION.
* MIT License

DATA: lt_statements TYPE zcl_aoc_scan=>ty_statements,
lv_position LIKE sy-tabix,
lv_index TYPE i,
lv_code TYPE sci_errc,
ls_prev LIKE LINE OF lt_statements.
Expand All @@ -50,7 +49,6 @@ CLASS ZCL_AOC_CHECK_57 IMPLEMENTATION.
lt_statements = io_scan->build_statements( ).

LOOP AT lt_statements ASSIGNING <ls_statement>.
lv_position = sy-tabix.
lv_index = sy-tabix - 1.
CLEAR ls_prev.
READ TABLE lt_statements INDEX lv_index INTO ls_prev. "#EC CI_SUBRC
Expand Down Expand Up @@ -86,7 +84,7 @@ CLASS ZCL_AOC_CHECK_57 IMPLEMENTATION.
ENDIF.

inform( p_sub_obj_name = <ls_statement>-include
p_position = lv_position
p_position = <ls_statement>-index
p_line = <ls_statement>-start-row
p_kind = mv_errty
p_test = myname
Expand Down

0 comments on commit 0f215d6

Please sign in to comment.