Display SAP Icons using ABAP Icon Code - SAP Icon List and ABAP Icons
In this ABAP tutorial, we will build a small ABAP report to display SAP icons list using ABAP icon code.
This ABAP program can be considered to supply the SAP icon list used in ABAP programs.
A screenshot from an SAP icon code which lists the SAP icons in ABAP.
Display SAP Icon List using ABAP Code - ABAP Example Code 1
Here is an ABAP sample report with ABAP source code for ABAP developers displaying the all list of SAP icons.
This ABAP code is very simple. There is just a SELECT query on ABAP table Icon where the returned rows are stored in the internal table gt_icon.
Then I used the ABAP WRITE command and Write ID of the icon workarea gs_icon in order to print the ABAP icon picture on the ABAP screen.
The above SAP icon code is showing how easy it is go get the the SAP icons list.
Display SAP Icons List using ABAP Icon Code - ABAP Example Code 2
Here is an other ABAP code example for displaying list of SAP icons or ABAP icons.
This ABAP program ZSAPIconsList uses Icon type pool and uses field-symbols in order to write the sap icon list on screen.
Again within the ABAP icon code, we execute a SELECT query from SAP table icon and store the return set as an internal ABAP table gt_icon.
In this ABAP report, I used the ABAP WRITE syntax : WRITE 'sap-icon-name' AS ICON.
I hope you find useful these two ABAP programs and ABAP code in order to get ABAP icon list or SAP icon list.