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

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close