SELECTION-SCREEN用来调节系统生成的画面
REPORT z437_test_2024.TABLES: mara, zdbt_sch_437.SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE TEXT-001. " Title1
PARAMETERS:p_1 DEFAULT 'A',p_2 TYPE char10.
SELECTION-SCREEN END OF BLOCK b1.SELECTION-SCREEN SKIP 1. " 设置1行空格SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE TEXT-002. " Title2
SELECT-OPTIONS:s_1 FOR mara-matnr,s_2 FOR zdbt_sch_437-schid OBLIGATORY. " 设置为必填字段
SELECTION-SCREEN END OF BLOCK b2.
在程序中双击TEXT-001 和 TEXT-002,分别在文本符号页签填写Title1和Title2,激活并进行保存
执行程序,输出结果: