我正在尝试将今天的日期显示为选择日期的默认值。
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.
这不行。有什么想法吗?
答案 0 :(得分:6)
您必须在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.
我认为它应该有用(不能测试是实际的)。