Skip to Content
0
Former Member
Mar 18, 2009 at 02:54 PM

Superfluous Statements: Select statement has an empty body.

302 Views

I do an extented check for a program, at part Superfluous Statements i saw some messages that say 'Select statement has an empty body', for example these select statements:

SELECT ddtext INTO dd07t-ddtext
  FROM dd07t
  WHERE domname LIKE 'CO_WRTTP'
  AND ddlanguage = 'EN'
  AND valpos = p_valu.


SELECT post1 INTO w_post1
       FROM proj WHERE pspid = w_project.
      ENDSELECT.


SELECT posnr
     INTO w_posnr
     FROM impr
     WHERE posid = st_linerec-imposid
     AND gjahr >= p_year.
  ENDSELECT.

These select statements have a body obviously but why it says they have an empty body? and how to fix it? Thanks.