Code: Alles auswählen.
select x y z from table
into itab
where datum+0(4) = '2005'.
Code: Alles auswählen.
DATA:
lr_datum TYPE RANGE OF d, "oder anderen D-Typ
ls_datum LIKE LINE OF lr_datum.
MOVE:
'I' TO ls_datum-sign,
'CP' TO ls_datum-option.
CONCATENATE
sy-datum(4) "wenn aktuelles Jahr gewünscht.
'*'
INTO ls_datum-low.
APPEND lr_datum FROM ls_datum.
* ich bevorzuge:
* INSERT ls_datum INTO TABLE lr_datum.
SELECT x y z
FROM tabelle
INTO TABLE itab "gleich als ARRAY-Fetch
WHERE datum IN lr_datum.