Problem solve Get help with specific problems with your technologies, process and projects.

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...

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.
This was last published in February 2003

Dig Deeper on SAP ABAP

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchHRSoftware

Close