Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alih-b authored Apr 16, 2024
1 parent af424c1 commit c542694
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/#mbtools#cl_command__show.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,32 @@ CLASS /mbtools/cl_command__show IMPLEMENTATION.
report_structure = ls_report
EXCEPTIONS
no_report_transaction = 1
OTHERS = 2.
others = 2.

Check failure on line 168 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Keyword should be upper case: "others"

https://rules.abaplint.org/keyword_case
IF sy-subrc = 0 AND ls_report-report IS NOT INITIAL.
rs_tadir_key-object = 'PROG'.
rs_tadir_key-obj_name = ls_report-report.
CASE ls_report-reporttype.
WHEN INITIAL.

Check failure on line 172 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

"INITIAL" not found, findTop

https://rules.abaplint.org/check_syntax

Check failure on line 172 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Identifiers should be lower case: "INITIAL"

https://rules.abaplint.org/keyword_case
rs_tadir_key-obj_name = ls_report-report.
WHEN 'TR'.
" It is very unlikely to have a parameter t-code for
" another parameter t-code
" and SAP discourages it with warning
" so this is sufficient
lv_tcode = ls_report-report.

Check failure on line 179 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Indentation problem, expected 10 spaces

https://rules.abaplint.org/indentation
CALL FUNCTION 'SRT_GET_REPORT_OF_TCODE'

Check failure on line 180 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Indentation problem, expected 10 spaces

https://rules.abaplint.org/indentation
EXPORTING
tcode = lv_tcode
IMPORTING
report_structure = ls_report
EXCEPTIONS
no_report_transaction = 1
others = 2.

Check failure on line 187 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Keyword should be upper case: "others"

https://rules.abaplint.org/keyword_case

rs_tadir_key-obj_name = ls_report-report.
WHEN OTHERS.

Check failure on line 190 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Empty block, add code: When

https://rules.abaplint.org/empty_structure

Check failure on line 190 in src/#mbtools#cl_command__show.clas.abap

View check run for this annotation

abaplint / abaplint

Indentation problem, expected 8 spaces

https://rules.abaplint.org/indentation
ENDCASE.
RETURN.
ENDIF.

" Parameter Transaction
SELECT SINGLE param INTO lv_param FROM tstcp WHERE tcode = lv_tcode.
IF sy-subrc <> 0.
Expand Down

0 comments on commit c542694

Please sign in to comment.