Date 今天选择选项';默认日期是多少?
我正在尝试将todays date显示为选定日期中的默认值Date 今天选择选项';默认日期是多少?,date,selection,abap,sap-selection-screens,Date,Selection,Abap,Sap Selection Screens,我正在尝试将todays date显示为选定日期中的默认值 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. 但这不起作用。有什么想法吗?您必须在开始选择前设置值: select-O
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.
但这不起作用。有什么想法吗?您必须在开始选择前设置值:
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.
我认为它应该可以工作(不能测试实际情况)。它没有显示当前日期,只是空白字段