ABAP选择屏幕笔记(三)

*&---------------------------------------------------------------------*
*& Report Z_SCREEN_1
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT z_screen_1.
TABLES: zemployees2.

DATA: my_employees LIKE zemployees2-eenum.
*DATA: COMM1 TYPE C.
*data: my_ee LIKE zemployees2-eenum.
*PARAMETERS: my_ee    LIKE zemployees-eenum,
PARAMETERS: my_ee    LIKE zemployees2-eenum DEFAULT '20000001' OBLIGATORY.

SELECTION-SCREEN BEGIN OF LINE.

  SELECTION-SCREEN POSITION 40.
  PARAMETERS ABC(5).
*SELECTION-SCREEN ULINE /40(8).
*SELECTION-SCREEN SKIP 2.
*SELECTION-SCREEN COMMENT /40(15) TEXT-001.
*SELECTION-SCREEN COMMENT /40(15) comm1.


SELECTION-SCREEN end of line.

INITIALIZATION.
  "comm1 = 'Hello SAP'.
*&---------------------------------------------------------------------*
*& Report Z_SCREEN_1
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT z_screen_1.
TABLES: zemployees2.

SELECTION-SCREEN BEGIN OF BLOCK block1  WITH FRAME TITLE TEXT-002.


* 输出内容将在同一行内
SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN POSITION POS_LOW.
SELECTION-SCREEN POSITION POS_HIGH.
PARAMETERS abc(5).
SELECTION-SCREEN COMMENT 1(8) TEXT-001.
SELECTION-SCREEN COMMENT 9(8) TEXT-001.

SELECTION-SCREEN END OF LINE.



*SELECTION-SCREEN COMMENT 1(15) TEXT-001.
*SELECTION-SCREEN COMMENT 20(15) comn1.

SELECTION-SCREEN  END OF BLOCK block1.

INITIALIZATION.