ABAPQuickFix icon indicating copy to clipboard operation
ABAPQuickFix copied to clipboard

comma at begin of new line in combined declaration breaks the split fix

Open AndreaBorgia-Abo opened this issue 1 year ago • 3 comments

Trying to fix this:

  DATA:
    lr_tabdescr TYPE REF TO cl_abap_structdescr
  , lr_data     TYPE REF TO data
  , lt_dfies    TYPE ddfields
  , ls_dfies    TYPE dfies
  , ls_fieldcat TYPE lvc_s_fcat
  .

leads to:

  DATA lr_tabdescr TYPE REF TO cl_abap_structdescr
DATA .
  lr_data     type ref to data
data .
  lt_dfies    type ddfields
data .
  ls_dfies    type dfies
data .
  ls_fieldcat type lvc_s_fcat.

AndreaBorgia-Abo avatar Jul 01 '24 14:07 AndreaBorgia-Abo

FWIW abap cleaner deals with this properly

AndreaBorgia-Abo avatar Jul 02 '24 11:07 AndreaBorgia-Abo

It makes more stress then xD

fidley avatar Jul 02 '24 11:07 fidley

Even better example... In the past I've replaced the text split here from comma based to end of line base, in order to not have troubles with comments. But of course it was not perfect solution. I need to deep dive on in some evening.

DATA: lr_tabdescr TYPE REF TO cl_abap_structdescr "comment , with comma , lr_data TYPE REF TO data , lt_dfies TYPE ddfields "comment , with comma , ls_dfies TYPE dfies , ls_fieldcat TYPE lvc_s_fcat .

fidley avatar Jul 02 '24 12:07 fidley

Should be now solved.

fidley avatar Mar 10 '25 14:03 fidley