Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when constant is used to specify variable size #350

@MDagni

Description

@MDagni

Did you know that you can use constants to specify the size of a char typed variable? The following code generates an error in Abap Cleaner:

report ztest.

constants c_size type i value 10.

data lv_text(c_size) type c.

lv_text = '1234567890'.

This is the error:

image

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