Code: Alles auswählen.
SELECT *
FROM dbtable
INTO ...
WHERE key = vc_key
AND feld IS NOT NULL.
Code: Alles auswählen.
SELECT SINGLE feld
FROM dbtable
INTO vc_feld
WHERE key = vc_key.
IF sy-subrc = 0.
IF vc_feld IS INITIAL.
" Feld initial.
ELSE.
" Feld nicht initial
ENDIF.
ELSE.
" Kein Datensatz gefunden
ENDIF.