Skip to content

Commit

Permalink
Fix wrong syntax ABAP 7.50 p23
Browse files Browse the repository at this point in the history
syntax 
a += 1. 
not accepted
  • Loading branch information
igdies committed Aug 22, 2024
1 parent b2cda22 commit ddd56ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
18 changes: 12 additions & 6 deletions CODE/zcl_falv.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -2358,8 +2358,10 @@ CLASS zcl_falv IMPLEMENTATION.
" Nur Spalte setze komplette Spalte
LOOP AT mt_data ASSIGNING <data>

Check failure on line 2359 in CODE/zcl_falv.clas.abap

View check run for this annotation

abaplint / abaplint

"mt_data" not found, findTop

https://rules.abaplint.org/check_syntax
WHERE col_pos = col.
<data>-style += style.
<data>-style2 += style2.
* <data>-style += style.
* <data>-style2 += style2.
ADD style TO <data>-style.
ADD style2 TO <data>-style2.
ENDLOOP.
IF sy-subrc = 0.
call_redraw_after_merging = abap_true.
Expand All @@ -2370,8 +2372,10 @@ CLASS zcl_falv IMPLEMENTATION.
" Nur Zeile eingegeben -> komplette Zeile setzen
LOOP AT mt_data ASSIGNING <data>

Check failure on line 2373 in CODE/zcl_falv.clas.abap

View check run for this annotation

abaplint / abaplint

"mt_data" not found, findTop

https://rules.abaplint.org/check_syntax
WHERE row_pos = row.
<data>-style += style.
<data>-style2 += style2.
* <data>-style += style.
* <data>-style2 += style2.
ADD style TO <data>-style.
ADD style2 TO <data>-style2.
ENDLOOP.
IF sy-subrc = 0.
call_redraw_after_merging = abap_true.
Expand All @@ -2380,8 +2384,10 @@ CLASS zcl_falv IMPLEMENTATION.
ASSIGN mt_data[ row_pos = row

Check failure on line 2384 in CODE/zcl_falv.clas.abap

View check run for this annotation

abaplint / abaplint

"mt_data" not found, findTop

https://rules.abaplint.org/check_syntax
col_pos = col ] TO <data>.
IF sy-subrc = 0.
<data>-style += style.
<data>-style2 += style2.
* <data>-style += style.
* <data>-style2 += style2.
ADD style TO <data>-style.
ADD style2 TO <data>-style2.
call_redraw_after_merging = abap_true.
ELSE.
EXIT.
Expand Down
3 changes: 2 additions & 1 deletion CODE/zcl_falv_column.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,8 @@ CLASS zcl_falv_column IMPLEMENTATION.
DATA(original_pos) = <current_column>-col_pos.
SORT falv->fcat BY col_pos ASCENDING.
LOOP AT falv->fcat ASSIGNING FIELD-SYMBOL(<fcat>) WHERE col_pos >= iv_value.
<fcat>-col_pos += 1.
* <fcat>-col_pos += 1.
add 1 to <fcat>-col_pos.
ENDLOOP.
<current_column>-col_pos = iv_value.
SORT falv->fcat BY col_pos ASCENDING.
Expand Down

0 comments on commit ddd56ac

Please sign in to comment.