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
it's me again. I have a problem with an old programme. When I run the ABAP Cleaner, the declaration is moved to the top and the variable in the MODULE loses its reference to it. So i can't activate it anymore. I think the variable should be moved to the very beginning. I have narrowed down the programme as much as possible so that the error continues to occur. Enclosed is the profile I am using. The ABAP Cleaner version is 1.30.1.
REPORT.
DATA lv_any TYPEsy-ucomm.
PARAMETER variante TYPE slis_vari.
INITIALIZATION.
ATSELECTION-SCREENOUTPUT.
ATSELECTION-SCREEN ONVALUE-REQUESTFOR variante.
MODULEtestINPUT.
DATA lv_problem TYPE cLENGTH20.
lv_problem ='Something'.
ENDMODULE.
this will be fixed with the next release. A side-effect of this bug was that ABAP cleaner indented MODULE ... ENDMODULE by 2 spaces, which was also wrong (and differs from PrettyPrinter behavior).
Activity
JoachimEck commentedon Feb 27, 2024
If i put a "START-OF-SELECTION" between the Value-Request and the Module it works fine.
jmgrassau commentedon Feb 27, 2024
Hi Joachim,
thanks very much for reporting this. This is indeed an error in how ABAP cleaner handles MODULE ... ENDMODULE sections, will fix asap!
Kind regards,
Jörg-Michael
jmgrassau commentedon Feb 27, 2024
Hi Joachim,
this will be fixed with the next release. A side-effect of this bug was that ABAP cleaner indented MODULE ... ENDMODULE by 2 spaces, which was also wrong (and differs from PrettyPrinter behavior).
Kind regards,
Jörg-Michael
fix LocalDeclarationOrderRule for MODULE ... ENDMODULE (SAP#258)
fix LocalDeclarationOrderRule for MODULE ... ENDMODULE (#258)
jmgrassau commentedon Feb 27, 2024
Hi Joachim,
thanks again for reporting this bug – this should now be fixed with version 1.13.2, which was just released!
Kind regards,
Jörg-Michael
JoachimEck commentedon Feb 28, 2024
Hello Jörg-Michael,
that went very quickly again 👍. I am happy if I can help.
Kind regards,
Joachim