You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code between WITH ... ENDWITH currently doesn't get indented but is aligned with the WITH and ENDWITH keywords. I'd expect that it would be indented. Between SELECT ... ENDSELECT it is working fine.
Formatted with Pretty Printer (shift+F1):
CLASSzcl_test IMPLEMENTATION.
METHODif_oo_adt_classrun~main.
WITH +a AS ( SELECT*FROM I_Plant ) SELECT*FROM +a INTO @FINAL(row).
out->write( row ).
ENDWITH.
SELECT*FROM I_Plant INTO @FINAL(row2).
out->write( row2 ).
ENDSELECT.
ENDMETHOD.
ENDCLASS.
Formatted with ABAP Cleaner (ctrl+4):
CLASSzcl_test IMPLEMENTATION.
METHODif_oo_adt_classrun~main.
WITH +a AS ( SELECT*FROM I_Plant ) SELECT*FROM +a INTO @FINAL(row).
out->write( row ).
ENDWITH.
SELECT*FROM I_Plant INTO @FINAL(row2).
out->write( row2 ).
ENDSELECT.
ENDMETHOD.
ENDCLASS.
I've used the latest ABAP Cleaner version 1.5.2 with the default profile.
The text was updated successfully, but these errors were encountered:
thanks for reporting this! The question whether or not WITH starts a loop (and therefore requires ENDWITH), is not a trivial one, but this issue should be fixed with the next release.
Kind regards,
Jörg-Michael
jmgrassau
added a commit
to jmgrassau/abap-cleaner
that referenced
this issue
Sep 4, 2023
Hi,
The code between WITH ... ENDWITH currently doesn't get indented but is aligned with the WITH and ENDWITH keywords. I'd expect that it would be indented. Between SELECT ... ENDSELECT it is working fine.
Formatted with Pretty Printer (shift+F1):
Formatted with ABAP Cleaner (ctrl+4):
I've used the latest ABAP Cleaner version 1.5.2 with the default profile.
The text was updated successfully, but these errors were encountered: