手动赋值增加多条件选择
RANGES: S_BUDAT FOR AFRU-BUDAT. PARAMETERS: P_RPMAX(6) TYPE N DEFAULT SY-DATUM+0(6) CONCATENATE P_RPMAX '01' INTO G_FIRST. CALL FUNCTION 'DATE_GET_MONTH_LASTDAY' EXPORTING I_DATE = G_FIRST IMPORTING E_DATE = G_LAST. CLEAR S_BUDAT. S_BUDAT-SIGN = 'I'. S_BUDAT-OPTION = 'BT'. S_BUDAT-LOW = G_FIRST. S_BUDAT-HIGH = G_LAST. APPEND S_BUDAT.
屏幕使用固定的月份选择,程序里再单独赋值月初到月底的日期。