Add icons to report selection screen
Would you like to have icons appear with parameters or select-options on the selection screen of a report?
Would you like to have icons appear with parameters or select-options on the selection screen of a report? Use...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
the following code to get it! Please note that SAP automatically generates screen #1000 for any report program.
The code was written in 4.6C and should work wherever Icon is supported by SAP.
REPORT Z_ICON_SELECTION_SCREEN. INCLUDE <ICON>. * TEXT-001 : Icon on selection screen * TEXT-002 : Posting date * TEXT-003 : Posting time SELECTION-SCREEN BEGIN OF BLOCK ADD WITH FRAME TITLE TEXT-001. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(28) G_DATE FOR FIELD P_DATE. PARAMETERS: P_DATE LIKE SY-DATUM. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN BEGIN OF LINE. SELECTION-SCREEN COMMENT 1(25) G_TIME FOR FIELD P_TIME. SELECT-OPTIONS: P_TIME FOR SY-UZEIT. SELECTION-SCREEN END OF LINE. SELECTION-SCREEN END OF BLOCK ADD. INITIALIZATION. CONCATENATE ICON_DATE TEXT-002 INTO G_DATE SEPARATED BY SPACE. CONCATENATE ICON_TIME TEXT-003 INTO G_TIME SEPARATED BY SPACE. START-OF-SELECTION.