Monday 6 June 2016

Selection Screen Formatting

Selection Screen Formatting

  •     SELECTION-SCREEN SKIP
  1. Syntax: SELECTION-SCREEN SKIP [<n>].
  2. Generates <n> blank lines, where <n> = 1..9, 1 is default. 
  • SELECTION-SCREEN ULINE
  1. Syntax :  SELECTION-SCREEN ULINE [<format>] [MODIF ID <key>]
  2. Generates an underline.
  3. <format> is [[/]<pos>](<len>): "/" generates a new line and therefore is not allowed inside BEGIN OF LINE...END OF LINE. 
  4. (<len>) without <pos> uses current position and only allowed inside BEGIN OF LINE...END OF LINE.
  5.  <pos> can be a number (in this case it is relative to the frame if inside BEGIN OF BLOCK WITH FRAME...END OF BLOCK) or POS_LOW|POS_HIGH
  • SELECTION-SCREEN COMMENT
  1. Syntax : SELECTION-SCREEN COMMENT <format> <text> [FOR FIELD <f>|<selopt>] [MODIF ID <key>]
  2. Writes <text>.
  3. text symbol text-<nnn>;
  4. A field name with a maximum length of 8 characters. This character field must not be declared with (for example) the DATA statement, but is generated with length <len> automatically and must be filled dynamically during the INITIALIZATION. 
  5. FOR FIELD option has as a result, if the user requests help on the comment on the selection screen, the help text for the assigned field is displayed.  


  • SELECTION-SCREEN BEGIN OF LINE
  • Syntax :   
                           SELECTION-SCREEN BEGIN OF LINE.  
                                        ...

                           SELECTION-SCREEN END OF LINE.
  1. Places several elements on a single line. Note that the selection text (name of the parameter or text element) is not displayed when this option used. To display a selection text COMMENT option must be used.

  • SELECTION-SCREEN POSITION
  1. Syntax :   SELECTION-SCREEN POSITION <pos>.
  2. <pos> can be a number (in this case it is relative to the frame if inside BEGIN OF BLOCK WITH FRAME...END OF BLOCK) or POS_LOW|POS_HIGH.

  • SELECTION-SCREEN BEGIN OF BLOCK

  • Syntax
            SELECTION-SCREEN BEGIN OF BLOCK <block> [WITH FRAME [TITLE <text>]] [NO INTERVALS].
    ...
SELECTION-SCREEN END OF BLOCK <block>.
  1. Creates a logical block. Blocks can be nested. Only 5 blocks with frames can be nested. NO INTERVALS displays all SELECT-OPTIONS within the block as with NO INTERVALS addition; inherited by subordinate blocks with frames and does not by subordinates blocks without frames. 

No comments:

Post a Comment