Skip to content

Commit

Permalink
check 26, bugfix (#743)
Browse files Browse the repository at this point in the history
* check 26, bugfix

closes #742

* Update abaplint.json
  • Loading branch information
larshp committed Jul 30, 2019
1 parent ce725eb commit 5a889c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abaplint.json
Expand Up @@ -4,7 +4,7 @@
"skipGeneratedGatewayClasses": true,
"skipGeneratedPersistentClasses": true,
"skipGeneratedFunctionGroups": true,
"applyUnspecifiedRules": true
"applyUnspecifiedRules": false
},
"rules": {
"7bit_ascii": {
Expand Down
4 changes: 3 additions & 1 deletion src/checks/zcl_aoc_check_26.clas.abap
Expand Up @@ -168,7 +168,9 @@ CLASS ZCL_AOC_CHECK_26 IMPLEMENTATION.
RETURN.
ENDIF.

rv_as4user = ls_dd02v-as4user.
IF ls_dd02v-tabclass = 'TRANSP'.
rv_as4user = ls_dd02v-as4user.
ENDIF.

ENDMETHOD.

Expand Down
16 changes: 14 additions & 2 deletions src/checks/zcl_aoc_check_26.clas.testclasses.abap
Expand Up @@ -22,7 +22,8 @@ CLASS ltcl_test DEFINITION FOR TESTING
test001_02 FOR TESTING,
test001_03 FOR TESTING,
test001_04 FOR TESTING,
test001_05 FOR TESTING.
test001_05 FOR TESTING,
test001_06 FOR TESTING.

ENDCLASS. "lcl_Test

Expand Down Expand Up @@ -104,4 +105,15 @@ CLASS ltcl_test IMPLEMENTATION.

ENDMETHOD.

ENDCLASS. "lcl_Test
METHOD test001_06.
* ===========

_code 'INSERT itab INTO itab INDEX sy-tabix.'.

ms_result = zcl_aoc_unit_test=>check( mt_code ).

cl_abap_unit_assert=>assert_initial( ms_result ).

ENDMETHOD.

ENDCLASS.

0 comments on commit 5a889c4

Please sign in to comment.