选择屏幕中CheckBox正常默认是同列的,有小伙伴问如何改成一行。
话不多说上代码。
示例
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-101.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: p1 AS CHECKBOX.
SELECTION-SCREEN COMMENT (30) text-102.
PARAMETERS: p2 AS CHECKBOX.
SELECTION-SCREEN COMMENT (30) text-103.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK bk1.
文本元素维护,在菜单栏转到(goto)->Text Elements(文本元素)中维护对应的text。
结果
小伙伴希望两个CheckBox前面再加一个纯文本。
那在第一个CheckBox前加一行代码。
SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-101.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-104.
PARAMETERS: p1 AS CHECKBOX.
SELECTION-SCREEN COMMENT (30) text-102.
PARAMETERS: p2 AS CHECKBOX.
SELECTION-SCREEN COMMENT (30) text-103.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK bk1.
结果
具体位置调整可以通过控制起始位置和括号内的长度实现。