Skip to content

Inaccurate Error Message in Projection Behavior Definition #483

Closed

Description

@MarcSAP

When attempting to utilize the ABAP-Cleaner in a Projection BDEF, an error message appears:
Image
It seems that the ABAP-Cleaner is incompatible with all kinds of BDEF. Therefore, a more general error message would be appropriate.

Current behavior:

ABAP-Cleaner displays the following error message in Projection BDEF:
Image

Expected Behavior:

The error message should indicate (Like shown in a normal BDEF):
"This language is not supported by ABAP cleaner!"

Activity

  1. jmgrassau commented on Feb 27, 2026

    @jmgrassau
    Member

    Hi MarcSAP,

    thanks for reporting this! Could you please provide at least the beginning of the code of this projection BDEF? If it starts with "projection;" as suggested by RAP - BehaviorDefinitionHeader, Projection BDEF, ABAP cleaner should recognize this as unsupported already now.

    Kind regards,
    Jörg-Michael

  2. MarcSAP commented on Mar 2, 2026

    @MarcSAP
    Author

    Hi Jörg-Michael,

    an example is this one:

    projection implementation in class /dmo/bp_c_traveltp_cd unique;
    strict ( 2 );
    extensible;
    use collaborative draft;
    use side effects;
    
    define behavior for /DMO/C_TravelTP_CD alias Travel
    extensible
    use etag
    {
      use create;
      use update;
      use delete;
    
      use action Activate;
      use action Discard;
      use action Edit;
      use action Resume;
      use action Prepare;
      use action Share;
    
      use association _Booking { create; with draft; }
    }
    
    define behavior for /DMO/C_BookingTP_CD alias Booking
    extensible
    use etag
    {
      use update;
      use delete;
    
      use association _Travel { with draft; }
    }
    

    you can also find this example inside the reference scenario package /DMO/FLIGHT_COLLDRAFT: abap-platform-refscen-flight

    BR Marc

  3. self-assigned this
    on Mar 4, 2026
  4. jmgrassau commented on Mar 4, 2026

    @jmgrassau
    Member

    Hi Marc,

    thanks for this example, this header is indeed not yet correctly recognized by ABAP cleaner – will fix it! The RAP - BehaviorDefinitionHeader, Projection BDEF documentation, which wrongly suggests that there must always be a semicolon after "projection", will also be adjusted.

    Kind regards,
    Jörg-Michael

  5. jmgrassau commented on Mar 4, 2026

    @jmgrassau
    Member

    Hi Marc,

    thanks again for reporting this bug – this should now be fixed with version 1.24.2, which was just released!

    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