我试图在选择日期中将今天的日期显示为默认值。
INITIALIZATION.
select-OPTIONS: so_date FOR sy-datlo.
START-OF-SELECTION.
so_date-sign = 'I'.
so_date-option = 'BT'.
so_date-low = sy-datum.
so_date-high = sy-datum.
APPEND so_date.
这不是工作虽然。什么好主意吗?
必须在START-OF_SELECTION:
select-OPTIONS: so_date FOR sy-datlo.
INITIALIZATION.
so_date-sign = 'I'.
so_date-option = 'EQ'.
so_date-low = sy-datum.
CLEAR so_date-high.
APPEND so_date.
你有没有试过简单的版本:
select-OPTIONS: so_date FOR sy-datlo default SY-DATUM.
我认为它应该工作(不能测试是实际的)。