Skip to content

Unused variable with EXPORT ...TO DATA BUFFER #415

Closed

Description

@Kaszub09

The following method gives "unused variable" warning, event though it is assigned a value.

  METHODS: 
get_binary_from_messages IMPORTING messages TYPE tt_messages RETURNING VALUE(binary) TYPE xstring.
  

METHOD get_binary_from_messages.
    " TODO: parameter BINARY is never assigned (ABAP cleaner)

    EXPORT messages = messages TO DATA BUFFER binary COMPRESSION ON.
  ENDMETHOD.

Activity

  1. self-assigned this
    on Jul 3, 2025
  2. jmgrassau commented on Jul 3, 2025

    @jmgrassau
    Member

    Hi Marcin,

    thanks very much for reporting this bug! This will be fixed with the next release and wrongly inserted TODO comments will be removed with the next cleanup:

    Image

    Kind regards,
    Jörg-Michael

  3. jmgrassau commented on Jul 8, 2025

    @jmgrassau
    Member

    Hi Marcin,

    thanks again – this should now be fixed with version 1.21.2!

    Kind regards,
    Jörg-Michael

  4. Kaszub09 commented on Jul 9, 2025

    @Kaszub09
    Author

    It's fixed, thanks.

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