当前位置:编程学习 > html/css >>

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

最大项最小项:
************* 选择屏幕定义 ****************************************
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.
补充:web前端 , HTML/CSS  ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,