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.