1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
*1.屏幕定义* SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001. PARAMETERS SC_WERKS TYPE ZPPR060-werks DEFAULT 2000 OBLIGATORY MEMORY ID wrk."工厂下拉 SELECT-OPTIONS SC_AUFNR FOR ZPPR060-AUFNR MATCHCODE OBJECT orde. "生产订单 SELECT-OPTIONS SC_MATNR FOR ZPPR060-matnr."物料号 SELECT-OPTIONS SC_BUDAT FOR ZPPR060-BUDAT_MKPF default sy-datum MODIF ID bl2."领料日期 SELECT-OPTIONS SC_WEMPF FOR ZPPWNA-WEMPF MODIF ID bl1."生产车间 SELECT-OPTIONS SC_USNAM FOR SUID_ST_BNAME-BNAME default SY-UNAME NO-EXTENSION NO INTERVALS."领料人 SELECTION-SCREEN END OF BLOCK b. *2.范围控件默认值* SELECT-OPTIONS: s_aedat FOR ekko-aedat default '20100000' to sy-datum. 或 INITIALIZATION . s_aedat-sign = 'I'. s_aedat-option = 'BT'. s_aedat-low(6) = sy-datum(6). s_aedat-low+6(2) = '01'. s_aedat-high = sy-datum. append s_aedat. *3.动态显示条件窗口 在屏幕设计中,设置需显示/隐藏的元素的group1属性* AT SELECTION-SCREEN OUTPUT . LOOP AT SCREEN . IF radio1 = 'X' AND screen-group1 = 'DT1'. screen-active = '0' . ELSEIF radio2 = 'X' AND screen-group1 = 'DT2'. screen-active = '0' . ELSE . screen-active = '1' . ENDIF . MODIFY SCREEN . ENDLOOP . INITIALIZATION. *4.报表使用说明* SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-002. SELECTION-SCREEN COMMENT 1(50) text-003. SELECTION-SCREEN SKIP 1. SELECTION-SCREEN COMMENT 1(50) text-004. SELECTION-SCREEN SKIP 1. SELECTION-SCREEN COMMENT 1(50) text-005. SELECTION-SCREEN END OF BLOCK c. *5.多选框* PARAMETERS show_all AS CHECKBOX DEFAULT 'X'. *6.单选框* PARAMETERS radio1 RADIOBUTTON GROUP rd DEFAULT 'X'. PARAMETERS radio2 RADIOBUTTON GROUP rd . |
© 2017, ITJOY.NET. 版权所有. 如未注明,均为原创,转载请注明出处。