Skip to content

Wrong formatting for keyword DEFAULT in CORRESPONDING ... MAPPING #102

Closed

Description

@AlexMFrank

Hi,

The keyword DEFAULT in CORRESPONDING ... MAPPING gets lower cased when using ABAP Cleaner. Pretty Printer would then upper case it again, if you use it after ABAP Cleaner.
The following code:

FINAL(p1) = VALUE I_Plant( Plant = '0001' ).
FINAL(p2) = CORRESPONDING I_Plant( p1 MAPPING PlantSupplier = DEFAULT '1234567890' ).

gets formatted by ABAP Cleaner to:

FINAL(p1) = VALUE I_Plant( Plant = '0001' ).
FINAL(p2) = CORRESPONDING I_Plant( p1 MAPPING PlantSupplier = default '1234567890' ).

I've used the latest ABAP Cleaner version 1.5.3 with the default profile.

Activity

  1. self-assigned this
    on Sep 22, 2023
  2. jmgrassau commented on Sep 22, 2023

    @jmgrassau
    Member

    Hi Alex,

    thanks a lot for reporting this! Apparently this happened because the ABAP grammar file included in ABAP cleaner was outdated. Will fix this in the next ABAP cleaner release!

    Kind regards,
    Jörg-Michael

  3. jmgrassau commented on Sep 22, 2023

    @jmgrassau
    Member

    Hi Alex,

    thanks again for reporting this – this should now be fixed in version 1.5.4 which was just released and contains the current ABAP grammar!

    Kind regards,
    Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions