Code: Alles auswählen.
parameters: p_year type dbtab-year
select * from dbtab
into corresponding fields of table it_tab where year = p_year.Code: Alles auswählen.
parameters: p_jahr type gjahr.
select * from dbtab
into corresponding fields of table it_tab where jahr = p_jahr.Code: Alles auswählen.
p_jahr = '2005'.
Ranges: r_date for sy-datum.
r_date-low = '20050101'.
r_date-high = 20051231'.
r_date-option = 'BT'.
r_date-sign = 'I'.
append r_date.
select * from dbtab
into corresponding fields of table it_tab where jahr in r_dateCode: Alles auswählen.
DATA: g_date_low LIKE sy-datum VALUE '99990101',
g_date_high LIKE sy-datum VALUE '99991231'.
parameters: p_jahr type gjahr obligatory.
ranges: r_jahr for dbtab-jahr.
r_jahr-low = r_jahr-high = p_jahr.
OVERLAY r_jahr-low WITH g_date_low.
OVERLAY r_jahr-high WITH g_date_high.
r_jahr-sign = 'I'.
r_jahr-option = 'EQ'.
APPEND r_jahr.
select * from dbtab
into corresponding fields of table it_tab where jahr in r_jahr.