日期-select-option的多项起始默认值 和最大项最小

当前位置 : 首页 > 网页制作 > CSS > 日期-select-option的多项起始默认值 和最大项最小

日期-select-option的多项起始默认值 和最大项最小

来源: 作者: 时间:2016-02-17 10:24
最大项最小项:************* 选择屏幕定义 ****************************************SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001. 选择屏幕块SELECT-OPTIONS: s_xianb F...
最大项最小项:
************* 选择屏幕定义 ****************************************
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.  "选择屏幕块
SELECT-OPTIONS: s_xianb FOR zppr003-xianb OBLIGATORY.
SELECT-OPTIONS: s_date FOR zppr001-riqi OBLIGATORY .
SELECTION-SCREEN END OF BLOCK block1 .
 
*******************************************************************
* INITIALIZATION
INITIALIZATION.
  DATA p_i_day_start LIKE sy-datum.
  DATA p_i_day_end LIKE sy-datum.
  CONCATENATE sy-datum+0(6) '01' INTO p_i_day_start.
  CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
    EXPORTING
      day_in            = p_i_day_start
    IMPORTING
      last_day_of_month = p_i_day_end.
  s_date-low =   p_i_day_start.
  s_date-high =  p_i_day_end.
  APPEND s_date.
 
多项起始默认值:
************* 选择屏幕定义 ****************************************
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.  "选择屏幕块
SELECT-OPTIONS: s_xianb FOR zppr003-xianb OBLIGATORY.
SELECT-OPTIONS: s_date FOR zppr001-riqi OBLIGATORY .
SELECTION-SCREEN END OF BLOCK block1 .
 
*******************************************************************
* INITIALIZATION
INITIALIZATION.
  s_xianb-low =  '10‘.
  s_xianb-option = 'EQ'.
  s_xianb-sign = 'I'.
  append s_xianb.
  s_xianb-low =  '20'.
 s_xianb-option = 'EQ'.
  s_xianb-sign = 'I'.
  append s_xianb.
Tag:
网友评论

<