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

Skip to content

LINE_EXISTS not proposed for read table transporting no fields #443

@sandraros

Description

@sandraros

I'm using this rule introduced by #36:
Image
(full configuration: sandra.zip)

Code to reproduce (whatever it's in class or report):

REPORT.
TYPES:
  BEGIN OF ty_jest,
    objnr TYPE jest-objnr,
    stat  TYPE jest-stat,
  END OF ty_jest.
DATA t_jest   TYPE SORTED TABLE OF ty_jest WITH UNIQUE KEY objnr stat.
DATA lv_objnr TYPE jest-objnr.
READ TABLE t_jest WITH TABLE KEY objnr = lv_objnr
                                 stat  = 'I0002'
     TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
  WRITE / 'OK'.
ENDIF.

Why isn't it changed into:

IF line_exists( t_jest[ objnr = lv_objnr
                        stat  = 'I0002' ] ).
  WRITE / 'OK'.
ENDIF.

ADT version: 3.52.2
Backend: 7.58 SP1

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